TWI696069B - Wide-range power measurement device for PCIe equipment - Google Patents

Wide-range power measurement device for PCIe equipment Download PDF

Info

Publication number
TWI696069B
TWI696069B TW108104802A TW108104802A TWI696069B TW I696069 B TWI696069 B TW I696069B TW 108104802 A TW108104802 A TW 108104802A TW 108104802 A TW108104802 A TW 108104802A TW I696069 B TWI696069 B TW I696069B
Authority
TW
Taiwan
Prior art keywords
current
pcie
measurement
power
control unit
Prior art date
Application number
TW108104802A
Other languages
Chinese (zh)
Other versions
TW202030610A (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

Abstract

本發明涉及一種用於PCIe設備的大範圍功率量測裝置,該裝置係包括一微控制單元、一量測電流單元、一切換器單元及作為來源端與輸出端之二組PCIe滙流連接埠,令該裝置可用來源端及輸出端之PCIe滙流連接埠分別連接一測試主機及一待測設備,藉此,供量測該PCIe待測設備於不同電源狀態下的功率,尤其可在省電模式下的超小電流及效能模式下大電流的大範圍進行量測,以確保該PCIe設備的工作正確性。 The invention relates to a large-scale power measurement device for PCIe equipment. The device includes a micro control unit, a measurement current unit, a switcher unit and two sets of PCIe bus connection ports as a source end and an output end. The device can be connected to a test host and a device under test by using the PCIe bus ports on the source end and the output end respectively, so as to measure the power of the PCIe device under test in different power states, especially in the power saving mode Measure the large range of ultra-low current and high current in performance mode to ensure the correctness of the PCIe device.

Description

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

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

電子產品都消耗功率,消耗功率愈低,使用越久。因此,陸續產生許多的省電規格,例如快速外部連接(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 it will be used. Therefore, many power-saving specifications have been successively produced, such as active-state power management (ASPM) for peripheral component interconnect express (PCIe). If you don't send data, enter the power saving mode to save power to increase the use time. For example, a non-volatile memory express (NVMe) is an optimized and efficient scalable host controller interface. The concept of NVMe is to provide a transmission circuit directly connected to the processor through the PCIe bus. Its biggest advantage is to provide ultra-low latency and high-frequency access. NVMe also has automatic power management state switching and dynamic energy management functions. For example, the device switches from PowerState 0 to PowerState 1 after being idle for 50 ms. Continue to idle, after 500ms, enter PowerState 2 (lower power consumption). 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 correct operation can only be guaranteed within the specified input voltage range. So take PCIe's NVMe device as an example, The power supply specification for this device is +3.3V with a voltage range of ±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, the PCIe power specification defines a maximum operating current of 3A, and the lowest power saving mode of PCIe NVMe devices can reach several uW, corresponding to uA. Therefore, it is necessary to effectively measure the power consumption of PCIe NVMe devices in different state specifications, especially in a large range (super small current in power saving mode and large current in operating mode), so that it can be accurately verified in the design PCIe NVMe devices consume power in high-performance power states or power-saving modes to ensure the correctness of their work.

常見的量測技術有二。其一是串接壓降量測方式。電流會在整個迴路上的所有電阻器產生壓降。於是,量測受測裝置(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 measurement method of series voltage drop. The current will cause a voltage drop across all resistors in the entire circuit. Then, 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-resistor is connected in series on the line during measurement. If the resistance is too large or the current is too large, the resulting voltage drop will be greater, making the voltage of the resistor of the object under test too low Exceeding the specifications leads to abnormal operation of the DUT. For example, with a resistor of 1Ω and a current range of about 1A, the voltage source DUT will be reduced by at most 1V during measurement. If the voltage of the power supply is 3.3V, the voltage entering the DUT due to measurement will become 3.3V-1V=2.3V, which is less than 3.003V in terms of PCIe power standards. That is, the voltage of the test object is less than the specified operating voltage. For example, with a resistor of 0.1 Ω and a current range of about 10 mA, the measurement voltage falls to 1 mV. A small measurement voltage will make the ADC unable to measure changes due to the range of the ADC scale during sampling.

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

換言之,現有的技術無法進行大範圍(包含省電模式的超小電流及高效能模式的大電流),尤其是量測PCIe的NVMe設備於不同狀態規格的電源功耗。如何解決前述問題,係業界的重要課題,也是本發明所探討者。 In other words, the existing technology cannot perform a wide range (including ultra-small current in power-saving mode and large current in high-efficiency mode), especially measuring 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 discussed by the present invention.

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

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

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

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

藉此,透過前述技術手段的具體實現,使本發明能透過來源端及輸出端之PCIe滙流連接埠分別連接測試主機及待測設備,供用其微控制單元執行指令,而由於量測電流單元有大、小電流量測迴路,使該裝置可分別導入對應的取樣大、小電流,並接受測試主機之主機指令,以依照預期量測的電流大小,進行切換不同的迴路,且接受指令對該待測設備進行上、下電,供量測該PCIe待測設備於不同電源狀態下的功率,尤其可在省電模式下的超小電流及效能模式下大電流的大範圍進行量測,以確保該PCIe設備的工作正確性,而能增加其 附加價值,並能提高其經濟效益。 Therefore, through the specific implementation of the foregoing technical means, the present invention can be connected to 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 instructions, and because the current measurement unit has Large and small current measurement loops, so that the device can import corresponding sampling large and small currents, and accept the host command of the test host, to switch different circuits according to the expected measured current size, and accept the command to the 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 large range of ultra-small current in power saving mode and large current in performance mode to Ensure the correctness of the work of the PCIe device, but can increase its Added value, and can improve its economic efficiency.

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

10‧‧‧裝置 10‧‧‧ installation

11‧‧‧微控制單元 11‧‧‧Micro Control Unit

12‧‧‧計時元件 12‧‧‧Timer

121‧‧‧類比數位轉換元件 121‧‧‧ Analog digital conversion element

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

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

14‧‧‧指示燈組 14‧‧‧ Indicator group

15‧‧‧量測電流單元 15‧‧‧Measure current 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 to be tested

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

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

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

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

第五圖:係本發明用於PCIe設備的大範圍功率量測裝置於實際運作時的另一動作示意圖,供說明其量測小電流的狀態。 Fig. 5 is another schematic diagram of the operation of the large-scale power measurement device for PCIe devices of the present invention during actual operation, for illustrating the state of measuring a small current.

參考第一圖,本發明之用於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, a 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 Switch unit 16 and two sets of PCIe bus ports 18 and 19 as source and output. Device 10 can use PCIe bus at 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, a PCIe NVMe device can be measured in a wide range (Including ultra-small current in power saving mode and large current in performance mode) to make 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 end, and is used to receive and reply to the commands sent by the test host 20 to complete the execution of various commands, including but not limited to switching different Measuring 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 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 use of the timer device 12 Continuously calculate and average the value of the current analog digital conversion element 121, and store the initial value as compensation in the memory device (MCU-flash) 122 without waiting for the measurement time of analog digital conversion. According to other embodiments, the micro control unit 11 has a power module 13 to provide power required by the micro control unit 11. According to other embodiments, the micro control unit 11 is electrically connected to an indicator light 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 measuring current unit 15 can be connected to the micro control unit 11 for executing the instructions of the micro control unit 11. The current measuring unit 15 is connected to the PCIe bus port 19 as the output terminal in the device 10 for the device under test 50 to be selectively connected to perform current power consumption sampling and measurement. The measurement current unit 15 has a large current measurement loop (LCP) 151 and a small current measurement loop (SCP) 152 connected to the micro control unit 11. Measuring current unit 15 The large and small current measurement 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 large current measuring circuit 151 and a second switching element 162 corresponding to the small current measuring circuit 152, respectively for introducing corresponding sampling high and small currents for receiving the test host The host command of 20 switches different circuits in accordance with the expected current measurement. The first and second switching elements 161 and 162 receive commands and switch between closed and open circuits to power off and power on the device under test 50.

藉此,裝置10可用來源端及輸出端之PCIe滙流連接埠18、19分別連接測試主機20及待測設備50,以量測該PCIe待測設備50於不同電源狀態下的功率,而組構成一種用於PCIe設備的大範圍功率量測裝置者。 In this way, the device 10 can use the PCIe bus ports 18 and 19 of the source end and the output end to connect the test host 20 and the device under test 50 respectively to measure the power of the PCIe device under test 50 in different power states A large-scale 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 still refer to the first figure. The device 10 can be used to measure a device under test 50 such as a PCIe NVMe device. The second figure shows the reference table of the link status and power specifications of the NVMe device in different power states. According to paragraph [0003], the current range of the PCIe and NVMe devices can be 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 measurement current unit 15 of the device 10 is set to 3A to 10mA by default, and the measurement of the small current measurement circuit 152 The sampling current is set from 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 at the output end of the device 10. The source PCIe bus port 19 in 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 connectable to the device 10 to provide corresponding commands to the system management bus 21 (SM bus).

之後,測試主機20依當作待測設備50的PCIe之NVMe設備的不同運作模式,例如省電模式、運行模式、怠機模式或高效能模式,提供電源經該裝置10給待測設備50,並依預期的電流透過裝置10之微控制單元11控制量測電流單元15之切換器單元16的第一、二切換元件161、162依接受之指令進行短路或開路的切換。如此,依不同的運作模式向待測設備50上電,且由該微控制單元11依預期的量測指令,對量測電流單元15中之大電流量測迴路151或小電流量測迴路152進行預期切換,並執行對應大、小電流量測迴路151、152的電流功耗取樣量測,且經微控制單元11功耗量測及運算後,把得到的量測數值傳給測試主機20。 Afterwards, the test host 20 provides power to the device under test 50 via the device 10 according to different operating modes of the NVMe device as the PCIe of the device under test 50, such as a power saving mode, an operating mode, an idle mode or a high performance mode. The first and second switching elements 161 and 162 of the switch unit 16 of the measuring current unit 15 are controlled by the micro control unit 11 of the current passing device 10 according to the expected current to switch the short circuit or the 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 measures the large current measurement circuit 151 or the small current measurement circuit 152 in the current measurement unit 15 according to the expected measurement instruction Perform the expected switching, and perform the current power consumption sampling measurement corresponding to the large and small current measurement loops 151, 152, and after the power control measurement and calculation of the micro control unit 11, transmit the obtained measurement value 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 specification, the current range can be from 3A to several uA. After calculation, the measurement current unit 15 of the device 10 selects the realized resistances as 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 has a loss of 0.15V at 0.05Ω. Taking 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 an amplifier of x20 times is used, the measuring range of the large current measuring circuit 151 of the measuring 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 in the current loop of 3Ω. With an x20-fold amplifier, the measurement range is 100mA to 10uA.

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

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

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

裝置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-to-digital conversion value, so that the test host 20 can read the current value at any time and increase the current measurement speed, so it can greatly improve its practicality.

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

10‧‧‧裝置 10‧‧‧ installation

11‧‧‧微控制單元 11‧‧‧Micro Control Unit

12‧‧‧計時元件 12‧‧‧Timer

121‧‧‧類比數位轉換元件 121‧‧‧ Analog digital conversion element

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

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

14‧‧‧指示燈組 14‧‧‧ Indicator group

15‧‧‧量測電流單元 15‧‧‧Measure current 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 to be tested

Claims (5)

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

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103412168A (en) * 2013-09-09 2013-11-27 扬州市万泰电器厂有限公司 High-precision current sampling circuit of intelligent electric meter
CN103529285A (en) * 2013-10-28 2014-01-22 深圳市杰和科技发展有限公司 Test equipment for automatically detecting power consumption of PCIE (Peripheral Component Interface Express) equipment
CN203535111U (en) * 2013-10-28 2014-04-09 深圳市杰和科技发展有限公司 Test device for PCIE device power consumption automation detection
TW201508463A (en) * 2013-03-14 2015-03-01 Lsi Corp Device power control
CN104422810A (en) * 2013-08-27 2015-03-18 恩智浦有限公司 Current measuring circuit
CN105301333A (en) * 2015-12-08 2016-02-03 恒宝股份有限公司 Power supply circuit capable of increasing measuring current dynamic scope
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
TW201803388A (en) * 2013-12-16 2018-01-16 高通公司 Power saving techniques in computing devices
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
TW201830028A (en) * 2016-09-16 2018-08-16 美商塞拉有限公司 Testing system and method
CN208384003U (en) * 2018-05-03 2019-01-15 中山市江波龙电子有限公司 A kind of test device and system

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201508463A (en) * 2013-03-14 2015-03-01 Lsi Corp Device power control
CN104422810A (en) * 2013-08-27 2015-03-18 恩智浦有限公司 Current measuring circuit
CN103412168A (en) * 2013-09-09 2013-11-27 扬州市万泰电器厂有限公司 High-precision current sampling circuit of intelligent electric meter
CN103529285A (en) * 2013-10-28 2014-01-22 深圳市杰和科技发展有限公司 Test equipment for automatically detecting power consumption of PCIE (Peripheral Component Interface Express) equipment
CN203535111U (en) * 2013-10-28 2014-04-09 深圳市杰和科技发展有限公司 Test device for PCIE device power consumption automation detection
TW201803388A (en) * 2013-12-16 2018-01-16 高通公司 Power saving techniques in computing devices
CN105301333A (en) * 2015-12-08 2016-02-03 恒宝股份有限公司 Power supply circuit capable of increasing measuring current dynamic scope
TW201830028A (en) * 2016-09-16 2018-08-16 美商塞拉有限公司 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
TW202030610A (en) 2020-08-16

Similar Documents

Publication Publication Date Title
CN204925331U (en) Two pulse switch capability test devices of IGBT power unit
CN201628763U (en) Power supply conversion efficiency test system
CN102116848A (en) System for testing conversion efficiencies of power supplies
CN204789908U (en) Circuit board automatic test system based on labVIEW
CN104280157A (en) Low-power-consumption transmitter
CN203396869U (en) Integrated test equipment
TWI696069B (en) Wide-range power measurement device for PCIe equipment
CN204679622U (en) With the three-phase intelligent electric-energy meter communication interface load capacity proving installation of communication module
CN201909987U (en) Constant-current supply networking system on basis of serial bus
CN202903852U (en) Digital multimeter with voice prompt function
CN104535875A (en) Electric power parameter wireless monitoring terminal for dynamic simulation experimental platform of electrical power system
CN111579864A (en) Wide-range power measurement device for PCIe equipment
CN202797865U (en) Short circuit protector of M-BUS communication bus
CN104198871A (en) Electronic device tester and testing method thereof
CN204405739U (en) Automatic on-line resistance measuring system
CN203616454U (en) High-precision battery management system (BMS) unit voltage acquisition circuit
CN201083810Y (en) Test card
CN204168001U (en) A kind of intelligent duplicate power supply automatic change-over based on DSP
CN204287285U (en) Capture card measured by a kind of multimeter
CN204389714U (en) A kind of weather monitoring instrument realizing Temperature and Humidity based on SHT2X chip
CN205942683U (en) Self -actuated control multichannel communication station receives / sends out operating time's platform
CN201266209Y (en) Electric energy meter
CN104502717A (en) Intelligent battery inner resistance measuring meter
CN214201591U (en) Dynamic current detection device of low-power consumption Internet of things equipment
CN202486301U (en) Configuration calibration system for cell electric quantity monitoring chip