TW202030610A - Wide-range power measurement device for PCIe equipment performing measurement in the ultra-low current mode in the power saving mode and the large current in the performance mode - Google Patents

Wide-range power measurement device for PCIe equipment performing measurement in the ultra-low current mode in the power saving mode and the large current in the performance mode Download PDF

Info

Publication number
TW202030610A
TW202030610A TW108104802A TW108104802A TW202030610A TW 202030610 A TW202030610 A TW 202030610A TW 108104802 A TW108104802 A TW 108104802A TW 108104802 A TW108104802 A TW 108104802A TW 202030610 A TW202030610 A TW 202030610A
Authority
TW
Taiwan
Prior art keywords
current
pcie
power
measurement
micro
Prior art date
Application number
TW108104802A
Other languages
Chinese (zh)
Other versions
TWI696069B (en
Inventor
張柏堅
李龍恩
謝博文
Original Assignee
睿寬智能科技有限公司
江蘇芯盛智能科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 睿寬智能科技有限公司, 江蘇芯盛智能科技有限公司 filed Critical 睿寬智能科技有限公司
Priority to TW108104802A priority Critical patent/TWI696069B/en
Application granted granted Critical
Publication of TWI696069B publication Critical patent/TWI696069B/en
Publication of TW202030610A publication Critical patent/TW202030610A/en

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Tests Of Electronic Circuits (AREA)

Abstract

The invention relates to a wide-range power measurement device for PCIe equipment. The device includes a micro-control unit, a current measurement unit, a switch unit and two sets of PCIe bus connection ports as a source end and an output end. The PCIe bus connection ports of the device have a source end and an output end respectively connected to a test host and a device under test. As a result, the power of the PCIe equipment under test in different power states is measured, especially a wide-range power measurement in the ultra-low current mode in the power saving mode and the large current in the performance mode to ensure operation correctness of the PCIe equipment.

Description

用於PCIe設備的大範圍功率量測裝置 Wide-range power measurement device for PCIe equipment

本發明係隸屬一種功率量測之技術領域,具體而言係指一種用於PCIe設備的大範圍功率量測裝置,藉以能在省電模式下的超小電流及效能模式下大電流之大範圍內進行量測。 The present invention belongs to the technical field of power measurement, and specifically refers to a large-range power measurement device for PCIe equipment, so that it can operate in ultra-small current in power saving mode and large current in high-efficiency mode. Measure inside.

電子產品都消耗功率,消耗功率愈低,使用越久。因此,陸續產生許多的省電規格,例如快速外部連接(peripheral component interconnect express:PCIe)的主動狀態電源管理(active-state power management:ASPM)。若不傳送資料,則進入省電模式,以保留電力來增加使用時間。舉例而言,非揮發性記憶體儲存設備(non-volatile memory express:NVMe)是優化且高效的可擴充之主機控制器介面。NVMe的概念是透過PCIe匯流排來提供直連處理器的傳輸迴路,其最大優點是提供超低延遲與高頻寬的存取。NVMe還有自動功耗管理狀態切換和動態能耗管理功能。舉例而言,設備閒置50ms後從PowerState 0切換到PowerState 1。繼續閒置,在500ms後,進入PowerState 2(功耗更低)。切換時會有短暫延遲。因此,NVMe在功耗管理上擁有較大優勢,這一點對移動裝置來說尤其重要,可顯着增加的續航能力。 Electronic products consume power, the lower the power consumption, the longer the use. Therefore, many power-saving specifications have been produced one after another, such as active-state power management (ASPM) for fast external interconnection (peripheral component interconnect express: PCIe). If you do not send data, enter the power saving mode to reserve power to increase usage time. For example, non-volatile memory express (NVMe) is an optimized and efficient expandable host controller interface. The concept of NVMe is to provide a transmission loop directly connected to the processor through the PCIe bus. Its greatest advantage is to provide ultra-low latency and high-bandwidth access. NVMe also has automatic power management state switching and dynamic power management functions. For example, the device switches from PowerState 0 to PowerState 1 after being idle for 50ms. Continue to idle and enter PowerState 2 (lower power consumption) after 500ms. There will be a short delay when switching. Therefore, NVMe has a greater advantage in power management, which is especially important for mobile devices, which can significantly increase battery life.

所有電子產品都有輸入電壓規格,在規定的輸入電壓範圍才能保證工作正確性。故以PCIe之NVMe設備為例, 該設備的電源規格為+3.3V電壓範圍為±9%。所以,最高電壓不可超過3.597V,最低電壓不可低於3.003V。若超過此範圍,則可能有異常現象。同時,PCIe的電源規格定義工作電流最大為3A,且PCIe之NVMe設備最低的省電模式可到數uW,對應uA。因此,須有效量測PCIe之NVMe設備於不同狀態規格的電源功耗,尤其是在大範圍(省電模式的超小電流及運作模式的大電流)進行量測,使在設計中可準確驗證PCIe之NVMe設備於高效能之電源狀態或省電模式的功耗,以確保其工作的正確性。 All electronic products have input voltage specifications, and the working accuracy can only be guaranteed within the specified input voltage range. So take the NVMe device of PCIe as an example, The power supply specification of this device is +3.3V and the voltage range is ±9%. Therefore, the highest voltage cannot exceed 3.597V, and the lowest voltage cannot be lower than 3.003V. If it exceeds this range, there may be abnormal phenomena. At the same time, PCIe’s power supply specifications define a maximum operating current of 3A, and the lowest power saving mode for PCIe NVMe devices can reach a few uW, corresponding to uA. Therefore, it is necessary to effectively measure the power consumption of PCIe NVMe devices in different states and specifications, especially in a large range (ultra-small current in power saving mode and large current in operation mode), so that the design can be accurately verified The power consumption of PCIe NVMe devices in high-efficiency power states or power-saving modes to ensure correct operation.

常見的量測技術有二。其一是串接壓降量測方式。電流會在整個迴路上的所有電阻器產生壓降。於是,量測受測裝置(device under test:DUT)的電阻器的電壓值。然後,用類比數位轉換器(analog to digital converter:ADC)把類比電壓值轉化成數位信號,並傳送至主機介面並呈現出來。其缺點是量測範圍和精準度無法平衡,因為量測時是在線路上串聯一個微電阻,若電阻過大或電流過大,則產生的壓降越大,使待測物的電阻器的電壓過低而超出規格,導致待測物工作異常。舉例而言,用1Ω且電流範圍約1A的電阻器,量測時電壓源端DUT最多會減少1V。若電源的電壓為3.3V,則因量測而進入待測物的電壓會變成3.3V-1V=2.3V,以PCIe的電源標準而言小於3.003V。亦即,待測物的電壓小於規定工作電壓。舉例而言,用0.1Ω且電流範圍約10mA的電阻器,量測時電壓落在1mV,量測電壓小會使ADC在取樣時因ADC刻度的範圍而無法量測變化。 There are two common measurement techniques. One is the series connection pressure drop measurement method. The current will cause a voltage drop across all resistors in the entire loop. Therefore, the voltage value of the resistor of the device under test (DUT) is measured. Then, an analog to digital converter (ADC) is used to convert the analog voltage value into a digital signal, which is transmitted to the host interface and presented. The disadvantage is that the measurement range and accuracy cannot be balanced, because a micro-resistance is connected in series during the measurement. If the resistance is too large or the current is too large, the greater the voltage drop will be, and the voltage of the resistor of the object under test will be too low. If the specifications are exceeded, the DUT will work abnormally. For example, using a 1Ω resistor with a current range of about 1A, the voltage source DUT will decrease by 1V at most during measurement. If the voltage of the power supply is 3.3V, the voltage entering the DUT due to the measurement will become 3.3V-1V=2.3V, which is less than 3.003V according to the PCIe power supply standard. That is, the voltage of the object under test is less than the specified working voltage. For example, with a resistor of 0.1Ω and a current range of about 10mA, the voltage falls at 1mV during measurement. A small measurement voltage will make the ADC unable to measure changes due to the ADC scale range during sampling.

其二是用霍爾效應之線性電流傳感器。電流通過載體時產生對應的磁場,以磁場的變化反轉回微小電壓來呈現通過的電流大小,並轉化成可讀取量化的線性數值,如電流勾 表。但一般的電流規格都非常的大且解析度低,屬於大電流的量測。磁場變化大才可被量測,所以常見的規格落在180到50mV/A,也就是說約1A的電流通過會產生約50到180mV。若須量測1mA等級,則量測電壓須是0.05到0.18mV。刻度的變化非常小,所以一般霍爾傳感器之產品都用於大電流低解析的量測,量測到mA等級已經非常困難。 The second is a linear current sensor using the Hall effect. When the current passes through the carrier, a corresponding magnetic field is generated, and the change in the magnetic field is reversed back to a small voltage to show the magnitude of the current passed, and converted into a readable and quantifiable linear value, such as current table. However, the general current specifications are very large and have low resolution, which is a large current measurement. It can be measured only when the magnetic field changes greatly, so the common specification falls between 180 to 50mV/A, which means that a current of about 1A will generate about 50 to 180mV. If it is necessary to measure 1mA level, the measurement voltage must be 0.05 to 0.18mV. The scale change is very small, so the general Hall sensor products are used for high current and low resolution measurement. It is very difficult to measure mA level.

換言之,現有的技術無法進行大範圍(包含省電模式的超小電流及高效能模式的大電流),尤其是量測PCIe的NVMe設備於不同狀態規格的電源功耗。如何解決前述問題,係業界的重要課題,也是本發明所探討者。 In other words, the existing technology cannot perform a wide range (including the ultra-low current in the power saving mode and the large current in the high-efficiency mode), especially for measuring the power consumption of PCIe NVMe devices in different state specifications. How to solve the aforementioned problems is an important issue in the industry and is also the subject of the present invention.

有鑑於此,本發明基於上述需求與問題深入探討,並藉由本發明人多年從事相關開發的經驗,而積極尋求解決之道。經不斷努力之研究與發展,終於成功的發展出一種用於PCIe設備的大範圍功率量測裝置,其能有效解決現有無法有效量測大範圍電流所造成的不便與困擾。 In view of this, the present invention is based on the above-mentioned needs and problems in an in-depth discussion, and actively seeks solutions based on the inventor's years of experience in related development. After continuous efforts in research and development, a wide-range power measurement device for PCIe equipment has finally been successfully developed, which can effectively solve the inconvenience and trouble caused by the existing inability to effectively measure a wide-range current.

因此,本發明之主要目的係在提供一種用於PCIe設備的大範圍功率量測裝置,能量測大範圍的電流,並量測微小電流,以滿足設計中可驗證PCIe設備在每個高效能狀態或是省電模式的功耗。 Therefore, the main purpose of the present invention is to provide a wide-range power measurement device for PCIe devices, which can measure a wide range of currents and measure small currents, so as to satisfy the design that can verify the high performance of PCIe devices in each Status or power consumption in power saving mode.

又,本發明之主要目的係在提供一種用於PCIe設備的大範圍功率量測裝置,尤其是可在省電模式下的超小電流及效能模式下大電流的大範圍進行量測,以確保該PCIe設備的工作正確性。 In addition, the main purpose of the present invention is to provide a wide-range power measurement device for PCIe devices, especially the ultra-low current in the power saving mode and the large current measurement in the high-current mode to ensure The working correctness of the PCIe device.

為此,本發明主要係透過下列的技術手段,來具 體實現上述的各項目的與效能,該裝置用來供一測試主機量測一PCIe待測設備於不同電源狀態下的功率,其包括;作為來源端與輸出端之二組PCIe滙流連接埠;一微控制單元,其與作為來源端之PCIe滙流連接埠形成電氣及訊號連結,供選擇性連接該測試主機,用於接受及回覆該測試主機傳送的指令;一量測電流單元,其與作為輸出端之PCIe滙流連接埠形成電氣及訊號連結,供該測試設備選擇性連接,且該量測電流單元可與微控制單元連接,又該量測電流單元中有連接該微控制單元之一大電流量測迴路及一小電流量測迴路,令該量測電流單元可依該微控制器指令由不同迴路進行電流取樣量測;及一切換器單元,其與連接測試主機的來源端之PCIe滙流連接埠連接,該切換器單元有一對應大電流量測迴路之第一切換元件及一對應小電流量測迴路之第二切換元件,用於接受測試主機指令使該切換器單元之第一、二切換元件可進行短路及開路的切換,供對該待測設備予以斷電或上電。 For this reason, the present invention is mainly implemented through the following technical means To achieve the above-mentioned objectives and performance, the device is used for a test host to measure the power of a PCIe device under test in different power states, including; two sets of PCIe bus ports as a source and an output; A micro-control unit, which forms an electrical and signal connection with the PCIe bus port as the source, for selectively connecting to the test host, for receiving and responding to commands sent by the test host; a measuring current unit, which is connected to The PCIe bus connection port at the output terminal forms electrical and signal connections for the selective connection of the test equipment, and the current measuring unit can be connected to the micro-control unit, and one of the micro-control units is connected to the current measuring unit. Current measurement circuit and a small current measurement circuit, so that the current measurement unit can perform current sampling and measurement from different circuits according to the microcontroller command; and a switch unit, which is connected to the PCIe of the source end of the test host The switch unit has a first switching element corresponding to a large current measurement circuit and a second switching element corresponding to a low current measurement circuit, which are used to receive instructions from the test host to make the first and The second switching element can switch between short circuit and open circuit for powering off or powering on the device under test.

藉此,透過前述技術手段的具體實現,使本發明能透過來源端及輸出端之PCIe滙流連接埠分別連接測試主機及待測設備,供用其微控制單元執行指令,而由於量測電流單元有大、小電流量測迴路,使該裝置可分別導入對應的取樣大、小電流,並接受測試主機之主機指令,以依照預期量測的電流大小,進行切換不同的迴路,且接受指令對該待測設備進行上、下電,供量測該PCIe待測設備於不同電源狀態下的功率,尤其可在省電模式下的超小電流及效能模式下大電流的大範圍進行量測,以確保該PCIe設備的工作正確性,而能增加其 附加價值,並能提高其經濟效益。 In this way, through the specific implementation of the aforementioned technical means, the present invention can connect the test host and the device under test through the PCIe bus ports of the source end and the output end, respectively, for the micro-control unit to execute commands, and because the current measurement unit has Large and small current measurement loops, so that the device can respectively import the corresponding sampling large and small currents, and accept the host command from the test host to switch between different loops according to the expected measured current, and accept the command to The device under test is powered on and off to measure the power of the PCIe device under test in different power states, especially in the ultra-low current mode in the power saving mode and the large current range in the high current mode in the performance mode. Ensure the correctness of the PCIe device, and increase its Added value, and can improve its economic benefits.

為使 貴審查委員能進一步了解本發明的構成、特徵及其他目的,以下乃舉本發明之若干較佳實施例,並配合圖式詳細說明如后,供讓熟悉該項技術領域者能夠具體實施。 In order to enable your reviewer to further understand the composition, features and other purposes of the present invention, the following are some preferred embodiments of the present invention, and detailed descriptions in conjunction with the drawings, for those who are familiar with the technical field to implement them in detail. .

10‧‧‧裝置 10‧‧‧Device

11‧‧‧微控制單元 11‧‧‧Micro control unit

12‧‧‧計時元件 12‧‧‧Timing element

121‧‧‧類比數位轉換元件 121‧‧‧Analog Digital Conversion Components

122‧‧‧記憶元件 122‧‧‧Memory element

13‧‧‧電力模組 13‧‧‧Power Module

14‧‧‧指示燈組 14‧‧‧Indicator Group

15‧‧‧量測電流單元 15‧‧‧Current measuring unit

151‧‧‧大電流量測迴路 151‧‧‧High current measurement circuit

152‧‧‧小電流量測迴路 152‧‧‧Small current measurement circuit

16‧‧‧切換器單元 16‧‧‧Switch unit

161‧‧‧第一切換元件 161‧‧‧First switching element

162‧‧‧第二切換元件 162‧‧‧Second switching element

18‧‧‧PCIe滙流連接埠 18‧‧‧PCIe bus port

19‧‧‧PCIe滙流連接埠 19‧‧‧PCIe bus port

20‧‧‧測試主機 20‧‧‧Test host

21‧‧‧系統管理匯流排 21‧‧‧System management bus

50‧‧‧待測設備 50‧‧‧Equipment under test

第一圖:係本發明用於PCIe設備的大範圍功率量測裝置的架構示意圖,供說明其主要配置狀態。 The first figure: is a schematic diagram of the architecture of the wide-range power measurement device for PCIe equipment of the present invention, for explaining its main configuration status.

第二圖:係本發明供用於NVMe設備之不同電源狀態下的鏈接狀態及功率規格參考表。 Figure 2: A reference table for the link state and power specifications of the present invention for NVMe devices in different power states.

第三圖:係本發明用於NVMe設備中顯示兩個以上迴路之可接受的電流範圍圖。 The third figure: It is a figure showing the acceptable current range of more than two loops in the NVMe device of the present invention.

第四圖:係本發明用於PCIe設備的大範圍功率量測裝置於實際運作時的動作示意圖,供說明其量測大電流的狀態。 The fourth figure: is a schematic diagram of the operation of the wide-range power measurement device for PCIe equipment of the present invention in actual operation, to illustrate the state of measuring high current.

第五圖:係本發明用於PCIe設備的大範圍功率量測裝置於實際運作時的另一動作示意圖,供說明其量測小電流的狀態。 The fifth figure: is another schematic diagram of the operation of the wide-range power measurement device for PCIe equipment of the present invention in actual operation, for explaining its low current measurement state.

參考第一圖,本發明之用於PCIe設備的大範圍功率量測裝置10包括一微控制單元(micro controller unit:MCU)11、一量測電流單元(power measurement unit:PMU)15、一切換器單元(switch unit)16及作為來源端與輸出端之二組PCIe滙流連接埠18、19。裝置10可用來源端及輸出端之PCIe滙流 連接埠18、19分別連接一測試主機20及一待測設備50,供量測該PCIe待測設備50於不同電源狀態(Powe State)下的功率,例如可量測PCIe之NVMe設備於大範圍(包括省電模式的超小電流及效能模式的大電流)進行量測,以確保該PCIe之NVMe設備的工作正確性。 Referring to the first figure, the wide-range power measurement device 10 for PCIe devices of the present invention includes a micro controller unit (MCU) 11, a power measurement unit (PMU) 15, and a switch A switch unit 16 and two sets of PCIe bus ports 18 and 19 as source and output terminals. Device 10 can use PCIe bus from source and output Ports 18 and 19 are respectively connected to a test host 20 and a device under test 50 for measuring the power of the PCIe device under test 50 in different power states (Powe State), for example, it can measure PCIe NVMe devices in a wide range (Including the ultra-low current in the power saving mode and the high current in the performance mode) perform measurements to ensure the correct operation of the PCIe NVMe device.

微控制單元11透過作為來源端之PCIe滙流連接埠18與測試主機20形成電氣及訊號連結,用於接受及回覆該測試主機20傳送的指令,以完成各種指令的執行,包含但不限於切換不同量測電流迴路、功耗量測及運算。微控制單元11進一步能在裝置10未連接待測設備50時,紀錄初始值並平均做為補償,並進行初始化類比數位轉換的位準校正。依某些實施例,微控制單元11有一計時元件(watch dog timer:WDT)12、一類比數位轉換元件(analog to digital converter:ACD)121及一記憶元件(MCU-flash)122,供用計時元件12不斷計算、且平均目前類比數位轉換元件121的數值,並將當作補償之初始值貯存於記憶元件(MCU-flash)122,而不需等待類比數位轉換的量測時間。依另一些實施例,微控制單元11有一電力模組(power module)13,以提供微控制單元11所需之電力。依另一些實施例,微控制單元11電氣連接一指示燈組14,供顯示不同量測模式之待測設備50電源的上、下電狀態指示。 The micro-control unit 11 forms an electrical and signal connection with the test host 20 through the PCIe bus port 18 as the source, and is used to receive and reply the commands sent by the test host 20 to complete the execution of various commands, including but not limited to different switching Measure current loop, power consumption measurement and calculation. The micro control unit 11 can further record the initial value and average it as compensation when the device 10 is not connected to the device under test 50, and perform the level correction of the initial analog-digital conversion. According to some embodiments, the micro-control unit 11 has a watch dog timer (WDT) 12, an analog to digital converter (ACD) 121, and a memory device (MCU-flash) 122 for the timing device 12 Constantly calculate and average the current value of the analog-digital conversion element 121, and store it in the memory element (MCU-flash) 122 as the initial value of compensation without waiting for the measurement time of the analog-digital conversion. According to other embodiments, the micro control unit 11 has a power module 13 to provide the power required by the micro control unit 11. According to other embodiments, the micro-control unit 11 is electrically connected to an indicator group 14 for displaying the power-on and power-off status indications of the power supply of the device under test 50 in different measurement modes.

量測電流單元15可與微控制單元11連接,供執行微控制單元11的指令。量測電流單元15連接裝置10中作為輸出端之PCIe滙流連接埠19,供待測設備50選擇性連接,以進行電流功耗取樣量測。量測電流單元15有連接該微控制單元11之一大電流量測迴路(large current path:LCP)151及一小電流量測迴路(small current path:SCP)152。量測電流單元15之 大、小電流量測迴路151、152透過一切換器單元16與連接測試主機20的來源端之PCIe滙流連接埠18連接。切換器單元16有一對應大電流量測迴路151之第一切換元件161及一對應小電流量測迴路152之第二切換元件162,供分別導入對應的取樣大、小電流,用於接受測試主機20之主機指令,以依預期量測的電流大小,切換不同的迴路。第一、二切換元件161、162接受指令而在閉路及開路之間切換來實現對待測設備50之斷電及上電。 The current measuring unit 15 can be connected to the micro control unit 11 for executing instructions of the micro control unit 11. The current measurement unit 15 is connected to the PCIe bus port 19 as the output end of the device 10 for the selective connection of the device under test 50 for current power consumption sampling measurement. The current measurement unit 15 has a large current measurement circuit (large current path: LCP) 151 and a small current measurement circuit (SCP) 152 connected to the micro-control unit 11. Measuring current unit 15 The high and low current measuring circuits 151 and 152 are connected to the PCIe bus port 18 connected to the source end of the test host 20 through a switch unit 16. The switch unit 16 has a first switching element 161 corresponding to the high-current measurement circuit 151 and a second switching element 162 corresponding to the low-current measurement circuit 152, for respectively introducing corresponding sampling currents and small currents for receiving the test host 20 host commands to switch different circuits according to the expected measured current. The first and second switching elements 161 and 162 accept instructions and switch between closed circuit and open circuit to realize power-off and power-on of the device under test 50.

藉此,裝置10可用來源端及輸出端之PCIe滙流連接埠18、19分別連接測試主機20及待測設備50,以量測該PCIe待測設備50於不同電源狀態下的功率,而組構成一種用於PCIe設備的大範圍功率量測裝置者。 Thereby, the device 10 can connect the test host 20 and the device under test 50 with the PCIe bus ports 18 and 19 at the source and output ends, respectively, to measure the power of the PCIe device under test 50 under different power states, and form A wide-range power measurement device for PCIe equipment.

關於本發明之實際運作,仍請參看第一圖,裝置10可用於量測如PCIe之NVMe設備的待測設備50。第二圖顯示該NVMe設備於不同電源狀態下的鏈接狀態及功率規格參考表。依段落【0003】所述,該PCIe與NVMe設備的電流範圍可從3A到數uA。如第二、三圖所示,透過預設方式將該裝置10之量測電流單元15中大電流量測迴路151的量測取樣電流設定為3A到10mA,小電流量測迴路152的量測取樣電流設定為100mA到10uA。 Regarding the actual operation of the present invention, please refer to the first figure. The device 10 can be used to measure the device under test 50 such as PCIe NVMe devices. The second figure shows the link status and power specification reference table of the NVMe device in different power states. According to paragraph [0003], the current range of the PCIe and NVMe devices can range from 3A to several uA. As shown in the second and third figures, the measurement sampling current of the large current measurement circuit 151 in the current measurement unit 15 of the device 10 is set to 3A to 10mA, and the measurement of the small current measurement circuit 152 is The sampling current is set to 100mA to 10uA.

如此,實際量測時,係將該作為待測設備50之PCIe的NVMe設備連接於裝置10中輸出端之PCIe滙流連接埠18。裝置10中來源端之PCIe滙流連接埠19連接測試主機20,供測試主機20提供電源和PCIe溝通信號予裝置10。測試主機20有一可連接裝置10的微控制單元11提供相對應指令給系統管理匯流排(SM bus)21。 In this way, in actual measurement, the NVMe device as the PCIe of the device under test 50 is connected to the PCIe bus port 18 of the output end of the device 10. The PCIe bus port 19 at the source end of the device 10 is connected to the test host 20 for the test host 20 to provide power and PCIe communication signals to the device 10. The test host 20 has a micro control unit 11 that can be connected to the device 10 to provide corresponding commands to the SM bus 21.

之後,測試主機20依當作待測設備50的PCIe之NVMe設備的不同運作模式,例如省電模式、運行模式、怠機模式或高效能模式,提供電源經該裝置10給待測設備50,並依預期的電流透過裝置10之微控制單元11控制量測電流單元15之切換器單元16的第一、二切換元件161、162依接受之指令進行短路或開路的切換。如此,依不同的運作模式向待測設備50上電,且由該微控制單元11依預期的量測指令,對量測電流單元15中之大電流量測迴路151或小電流量測迴路152進行預期切換,並執行對應大、小電流量測迴路151、152的電流功耗取樣量測,且經微控制單元11功耗量測及運算後,把得到的量測數值傳給測試主機20。 After that, the test host 20 provides power to the device under test 50 through the device 10 according to the different operation modes of the PCIe NVMe device as the device under test 50, such as power saving mode, operating mode, idle mode or high-efficiency mode, And according to the expected current through the micro-control unit 11 of the device 10, the first and second switching elements 161, 162 of the switch unit 16 of the measuring current unit 15 are switched to short-circuit or open-circuit according to the received command. In this way, the device under test 50 is powered on according to different operation modes, and the micro-control unit 11 controls the large current measurement circuit 151 or the small current measurement circuit 152 in the measurement current unit 15 according to the expected measurement command. Perform expected switching, and perform current power consumption sampling measurement corresponding to the large and small current measurement loops 151, 152, and after the power consumption measurement and calculation of the micro-control unit 11, the obtained measurement value is transmitted to the test host 20 .

故如第二、三圖所示,依PCIe之NVMe設備規範,電流範圍可從3A到數uA,經過計算後,裝置10之量測電流單元15以選擇的實現電阻為0.05Ω和3Ω。 Therefore, as shown in the second and third figures, according to the PCIe NVMe device specifications, the current range can be from 3A to several uA. After calculation, the current measurement unit 15 of the device 10 selects the realization resistance of 0.05Ω and 3Ω.

電阻為0.05Ω時,最大電流是3A,電流迴路0.05Ω上損耗0.15V。以3.3V規格為例,扣除壓降後會到3.15V,仍符合規範(3.003V)。若搭配x20倍的放大器,則量測電流單元15之大電流量測迴路151的量測範圍是3A到10mA。 When the resistance is 0.05Ω, the maximum current is 3A, and the current loop loses 0.15V at 0.05Ω. Take the 3.3V specification as an example, after deducting the voltage drop, it will reach 3.15V, which still meets the specification (3.003V). If it is equipped with a x20 times amplifier, the measurement range of the high current measurement loop 151 of the measurement current unit 15 is 3A to 10mA.

電阻為3Ω時,最小電流是30uA,在電流迴路3Ω上可產生約90uV。若搭配x20倍放大器,則其量測範圍是100mA到10uA。 When the resistance is 3Ω, the minimum current is 30uA, and about 90uV can be generated on the current loop 3Ω. If matched with x20 times amplifier, the measurement range is 100mA to 10uA.

如上述,本發明之裝置10藉來源端及輸出端之PCIe滙流連接埠18、19分別連接測試主機20及待測設備50,並用微控制單元11執行指令。量測電流單元15有大電流量測迴路151及小電流量測迴路152,使裝置10可分別導入對應的取樣大、小電流,並接受測試主機20之主機指令,以依照預期 量測的電流大小,進行切換不同的迴路,且接受指令對待測設備50進行上電,供量測待測設備50於不同電源狀態下的功率。本發明的特色在於突破大範圍的電流量測,尤其能使用兩個以上電流量測迴路做功率取樣,以加大可量測範圍,甚至可在省電模式下的超小電流及效能模式下大電流的大範圍進行量測,以確保該PCIe設備的工作正確性。 As mentioned above, the device 10 of the present invention is connected to the test host 20 and the device under test 50 via the PCIe bus ports 18 and 19 at the source and output ends, respectively, and the micro-control unit 11 executes commands. The measuring current unit 15 has a high current measuring circuit 151 and a low current measuring circuit 152, so that the device 10 can respectively import corresponding sampling high and low currents, and accept host commands from the test host 20 to comply with expectations To measure the magnitude of the current, switch between different circuits, and receive instructions to power on the device under test 50 to measure the power of the device under test 50 in different power states. The feature of the present invention is to break through a wide range of current measurement, in particular, it can use more than two current measurement loops for power sampling to increase the measurement range, even in the ultra-low current and performance mode in the power saving mode Measure the large current in a large range to ensure the correctness of the PCIe device.

透過切換器單元16能接收微控制單元11指令之設計,可供PCIe待測設備50的電源進行可程式化斷電和上電。 The switch unit 16 can receive instructions from the micro-control unit 11, which can be used for programmable power-off and power-on of the power supply of the PCIe device under test 50.

用微控制單元11快速取樣類比數位轉換取平均,提升電流量測精準度,並能做初始化校正,將校正值存入微控制單元11之記憶元件122中,可減少電流量測計算上誤差。 Using the micro-control unit 11 to quickly sample analog-digital conversion and average, improve the accuracy of current measurement, and perform initialization correction. The correction value is stored in the memory element 122 of the micro-control unit 11, which can reduce the current measurement calculation error.

裝置10之微控制單元11用計時元件12與類比數位轉換元件121不斷計算類比數位轉換值,讓測試主機20可隨時讀取電流值,提升電流量測速度,故可大幅增進其實用性。 The micro-control unit 11 of the device 10 uses the timing element 12 and the analog-to-digital conversion element 121 to continuously calculate the analog-digital conversion value, so that the test host 20 can read the current value at any time, which improves the current measurement speed, thereby greatly improving its practicality.

綜上所述,可理解到本發明有極佳創意,除有效解決習式者的問題,更大幅增進功效,且在相同的技術領域中未見相同或近似的產品創作或公開使用,故本發明已符合發明專利有關「新穎性」與「進步性」的要件,乃依法提出發明專利之申請。 In summary, it can be understood that the present invention has excellent originality. In addition to effectively solving the problems of habitants, it also greatly improves the efficacy. Also, there is no identical or similar product creation or public use in the same technical field. The invention has met the "novelty" and "progressive" requirements of an invention patent, and an application for an invention patent is filed in accordance with the law.

10‧‧‧裝置 10‧‧‧Device

11‧‧‧微控制單元 11‧‧‧Micro control unit

12‧‧‧計時元件 12‧‧‧Timing element

121‧‧‧類比數位轉換元件 121‧‧‧Analog Digital Conversion Components

122‧‧‧記憶元件 122‧‧‧Memory element

13‧‧‧電力模組 13‧‧‧Power Module

14‧‧‧指示燈組 14‧‧‧Indicator Group

15‧‧‧量測電流單元 15‧‧‧Current measuring unit

151‧‧‧大電流量測迴路 151‧‧‧High current measurement circuit

152‧‧‧小電流量測迴路 152‧‧‧Small current measurement circuit

16‧‧‧切換器單元 16‧‧‧Switch unit

161‧‧‧第一切換元件 161‧‧‧First switching element

162‧‧‧第二切換元件 162‧‧‧Second switching element

18‧‧‧PCIe滙流連接埠 18‧‧‧PCIe bus port

19‧‧‧PCIe滙流連接埠 19‧‧‧PCIe bus port

20‧‧‧測試主機 20‧‧‧Test host

21‧‧‧系統管理匯流排 21‧‧‧System management bus

50‧‧‧待測設備 50‧‧‧Equipment under test

Claims (5)

一種用於PCIe設備的大範圍功率量測裝置,連接測試主機而可量測PCIe待測設備於不同電源狀態下的功率,並包括;二組PCIe滙流連接埠,分別作為來源端與輸出端;一微控制單元,與作為來源端之PCIe滙流連接埠而形成電氣及訊號連結,供選擇性連接該測試主機,用於接受及回覆該測試主機傳送的指令;一量測電流單元,與作為輸出端之PCIe滙流連接埠而形成電氣及訊號連結,供該測試設備選擇性連接,且該量測電流單元可與微控制單元連接,又該量測電流單元有連接該微控制單元之一大電流量測迴路及一小電流量測迴路,令該量測電流單元可依該微控制器指令由不同迴路進行電流取樣量測;及一切換器單元,其與連接測試主機的來源端之PCIe滙流連接埠連接,該切換器單元有一對應大電流量測迴路之第一切換元件及一對應小電流量測迴路之第二切換元件,用於接受測試主機指令使該切換器單元之第一、二切換元件可進行短路及開路的切換,供對該待測設備予以斷電或上電。 A wide-range power measurement device for PCIe devices, which can be connected to a test host to measure the power of PCIe devices under test in different power states, and includes; two sets of PCIe bus ports, which are used as source and output ports; A micro-control unit, which forms an electrical and signal connection with the PCIe bus port as the source, for selectively connecting to the test host, for receiving and responding to commands sent by the test host; a measuring current unit, and as an output The PCIe bus connection port at the end forms an electrical and signal connection for the selective connection of the test equipment, and the current measuring unit can be connected to the micro-control unit, and the measuring current unit is connected to a large current of the micro-control unit Measuring circuit and a small current measuring circuit, so that the measuring current unit can perform current sampling and measurement from different circuits according to the instructions of the microcontroller; and a switch unit, which is connected to the PCIe source of the test host Port connection, the switch unit has a first switching element corresponding to a large current measurement circuit and a second switching element corresponding to a low current measurement circuit, for receiving instructions from the test host to make the first and second switching elements of the switch unit The switching element can switch between short circuit and open circuit for powering off or powering on the device under test. 如申請專利範圍第1項所述之用於PCIe設備的大範圍功率量測裝置,其中該PCIe設備可為NVMe設備。 The wide-range power measurement device for PCIe devices as described in the first item of the scope of patent application, wherein the PCIe device may be an NVMe device. 如申請專利範圍第1項所述之用於PCIe設備的大範圍功率量測裝置,其中該裝置之微控制單元有一計時元件、一類比數 位轉換元件及一記憶元件,供用該計時元件不斷計算、且平均目前類比數位轉換元件的數值,並存放在固定記憶元件之位址,可隨時讀取電流值。 The wide-range power measurement device for PCIe equipment as described in item 1 of the scope of patent application, wherein the micro-control unit of the device has a timing element and an analog number A bit conversion element and a memory element are used for the timing element to continuously calculate and average the current value of the analog-digital conversion element and store it in the address of the fixed memory element. The current value can be read at any time. 如申請專利範圍第1項所述之用於PCIe設備的大範圍功率量測裝置,其中該裝置之微控制單元有一電力模組,以提供微控制單元所需之電力。 The wide-range power measurement device for PCIe equipment as described in the first item of the scope of patent application, wherein the micro-control unit of the device has a power module to provide the power required by the micro-control unit. 如申請專利範圍第1項所述之用於PCIe設備的大範圍功率量測裝置,其中該裝置之微控制單元並電氣連接一指示燈組,供顯示不同量測模式之待測設備電源的上、下電狀態。 As described in item 1 of the scope of patent application, a wide-range power measurement device for PCIe equipment, wherein the micro-control unit of the device is electrically connected to an indicator group for displaying the power supply of the device under test in different measurement modes. , Power-off state.
TW108104802A 2019-02-13 2019-02-13 Wide-range power measurement device for PCIe equipment TWI696069B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW108104802A TWI696069B (en) 2019-02-13 2019-02-13 Wide-range power measurement device for PCIe equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW108104802A TWI696069B (en) 2019-02-13 2019-02-13 Wide-range power measurement device for PCIe equipment

Publications (2)

Publication Number Publication Date
TWI696069B TWI696069B (en) 2020-06-11
TW202030610A true TW202030610A (en) 2020-08-16

Family

ID=72176199

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108104802A TWI696069B (en) 2019-02-13 2019-02-13 Wide-range power measurement device for PCIe equipment

Country Status (1)

Country Link
TW (1) TWI696069B (en)

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014141140A1 (en) * 2013-03-14 2014-09-18 Lsi Corporation Device power control
EP2843425B1 (en) * 2013-08-27 2018-11-21 Nxp B.V. Current measuring circuit
CN103412168B (en) * 2013-09-09 2015-09-23 扬州万泰电子科技有限公司 A kind of high-precision current sampling circuit of intelligent electric meter
CN203535111U (en) * 2013-10-28 2014-04-09 深圳市杰和科技发展有限公司 Test device for PCIE device power consumption automation detection
CN103529285B (en) * 2013-10-28 2015-12-09 深圳市杰和科技发展有限公司 A kind of testing apparatus of automated detection PCIE device power consumption
US9535490B2 (en) * 2013-12-16 2017-01-03 Qualcomm Incorporated Power saving techniques in computing devices
CN105301333B (en) * 2015-12-08 2018-08-10 恒宝股份有限公司 It is a kind of that the power circuit for measuring current dynamic range can be improved
WO2018052944A1 (en) * 2016-09-16 2018-03-22 Xcerra Corporation Testing system and method
CN107357705A (en) * 2017-07-03 2017-11-17 郑州云海信息技术有限公司 The monitoring measuring system and method for a kind of PCIE outer plug-in cards power consumption
CN107942134A (en) * 2017-11-17 2018-04-20 郑州云海信息技术有限公司 A kind of apparatus and method for being suitable for measuring PCIe card power consumption under a variety of environment
CN208384003U (en) * 2018-05-03 2019-01-15 中山市江波龙电子有限公司 A kind of test device and system

Also Published As

Publication number Publication date
TWI696069B (en) 2020-06-11

Similar Documents

Publication Publication Date Title
US8324886B2 (en) Power supply testing system
CN201698013U (en) DC power supply testing device
CN101639669B (en) Power switching circuit
CN203396869U (en) Integrated test equipment
CN104122967B (en) A kind of power on and off reset control circuit and computer
CN100378461C (en) Single phase electric larceny preventing electricity meter and method for preventing electric larceny
TW202030610A (en) Wide-range power measurement device for PCIe equipment performing measurement in the ultra-low current mode in the power saving mode and the large current in the performance mode
CN206411602U (en) A kind of CPU power supply circuits
CN111579864A (en) Wide-range power measurement device for PCIe equipment
CN209911512U (en) Low-power consumption battery capacity detection circuit
US20140223236A1 (en) Device for testing a graphics card
CN102237709A (en) Rapid standby power supply switching apparatus
CN112769968B (en) Circuit breaker, cabinet, system, address acquisition method and equipment
CN201083810Y (en) Test card
CN201266209Y (en) Electric energy meter
CN204206279U (en) A kind of standby power consumption of mobile phone test circuit
CN202486301U (en) Configuration calibration system for cell electric quantity monitoring chip
CN106338699B (en) Dummy load circuit
CN204595160U (en) The simple batch-testing device of wireless transmit chip
US10990157B2 (en) Wide-range PCIe power-measuring apparatus
CN104502717A (en) Intelligent battery inner resistance measuring meter
CN211150968U (en) Intelligent circuit breaker test interface circuit and intelligent circuit breaker
CN204863258U (en) Heart sound analysis integrated circuit board
CN204731340U (en) A kind of portable Intelligent terminal for Internet of things equipment failure intelligent detecting instrument
CN104422867A (en) Chip device and testing method thereof