CN110866369A - System and device for verification of electric energy meter management chip - Google Patents
System and device for verification of electric energy meter management chip Download PDFInfo
- Publication number
- CN110866369A CN110866369A CN201911297412.5A CN201911297412A CN110866369A CN 110866369 A CN110866369 A CN 110866369A CN 201911297412 A CN201911297412 A CN 201911297412A CN 110866369 A CN110866369 A CN 110866369A
- Authority
- CN
- China
- Prior art keywords
- fpga
- electric energy
- energy meter
- chip
- management chip
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
- 238000012795 verification Methods 0.000 title claims abstract description 29
- 238000012545 processing Methods 0.000 claims abstract description 17
- 238000013461 design Methods 0.000 claims abstract description 12
- 238000004891 communication Methods 0.000 claims description 23
- 230000002093 peripheral effect Effects 0.000 claims description 9
- 238000005070 sampling Methods 0.000 claims description 8
- 238000002955 isolation Methods 0.000 claims description 6
- 238000010200 validation analysis Methods 0.000 claims 2
- 238000011161 development Methods 0.000 abstract description 4
- 238000012360 testing method Methods 0.000 abstract description 4
- 230000006870 function Effects 0.000 description 18
- 238000000034 method Methods 0.000 description 4
- 238000001514 detection method Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 238000005259 measurement Methods 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000012827 research and development Methods 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 239000003990 capacitor Substances 0.000 description 1
- 230000008094 contradictory effect Effects 0.000 description 1
- 238000012938 design process Methods 0.000 description 1
- 238000012942 design verification Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000036039 immunity Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Images
Landscapes
- Tests Of Electronic Circuits (AREA)
Abstract
本发明公开了一种用于电能表管理芯片验证的系统及装置。所述用于电能表管理芯片验证的系统包括内置有待检验芯片程序的FPGA及与FPGA连接的FPGA子板;其中,FPGA子板包括与FPGA连接的信号处理模块,用于采集电压信号及电流信号,并将电压信号及电流信号转换为数字信号后发送至FPGA;FPGA根据待检验芯片程序及数字信号验证待检验芯片的功能是否满足设计要求。其中,通过将电能表管理芯片的运行程序放置于FPGA中,配合FPGA子板模拟电能表正常运行环境,从而对运行程序进行仿真验证,使得在设计电能表管理芯片的过程中可以反复调试,解决了在开发电能表管理芯片时无专用测试装置的技术问题,降低了开发成本。
The invention discloses a system and a device for verification of an electric energy meter management chip. The system for verification of electric energy meter management chips includes an FPGA with built-in chip programs to be inspected and an FPGA sub-board connected to the FPGA; wherein the FPGA sub-board includes a signal processing module connected to the FPGA for collecting voltage signals and current signals , and convert the voltage and current signals into digital signals and send them to the FPGA; the FPGA verifies whether the function of the chip to be inspected meets the design requirements according to the program of the chip to be inspected and the digital signal. Among them, by placing the running program of the power meter management chip in the FPGA, and cooperating with the FPGA daughter board to simulate the normal operating environment of the power meter, the running program can be simulated and verified, so that the power meter management chip can be repeatedly debugged and solved. The technical problem that there is no special test device when developing the electric energy meter management chip is solved, and the development cost is reduced.
Description
技术领域technical field
本发明涉及芯片设计验证领域,尤其涉及一种用于电能表管理芯片验证的系统及装置。The invention relates to the field of chip design verification, in particular to a system and device for verification of an electric energy meter management chip.
背景技术Background technique
电能表中常见的芯片有计量芯片及管理芯片,虽然一直以来国外的管理芯片在电能表中处于领先地位,但随着国际形势的变化以及技术的发展,越来越多厂商具有自主研发的能力,试图使用自主研发的电能表管理芯片取代国外进口芯片,打破国外垄断局面。而电能表管理芯片的研发周期较长,研发费用较高,为了减少流片次数,需要在芯片设计过程中对芯片反复进行验证。Common chips in electric energy meters include metering chips and management chips. Although foreign management chips have always been in the leading position in electric energy meters, with the changes in the international situation and the development of technology, more and more manufacturers have the ability to independently develop , trying to use self-developed energy meter management chips to replace foreign imported chips and break the foreign monopoly. However, the research and development cycle of the electric energy meter management chip is long, and the research and development cost is high. In order to reduce the number of tape-outs, the chip needs to be repeatedly verified during the chip design process.
目前为了验证电能表管理芯片是否满足电能表的所有需求,通常在设计电能表管理芯片时需要将实体芯片应用于真实的电能表中进行验证,当芯片不满足要求时只能重新设计,无法继续用于调试和验证,提高了设计成本。At present, in order to verify whether the electric energy meter management chip meets all the requirements of the electric energy meter, it is usually necessary to apply the physical chip to the real electric energy meter for verification when designing the electric energy meter management chip. When the chip does not meet the requirements, it can only be redesigned and cannot continue. Used for debugging and verification, increasing design cost.
发明内容SUMMARY OF THE INVENTION
本发明的主要目的在于提供一种用于电能表管理芯片验证的系统及装置,旨在解决现有技术中在开发电能表管理芯片时无专用测试装置的技术问题。The main purpose of the present invention is to provide a system and device for verification of an electric energy meter management chip, which aims to solve the technical problem in the prior art that there is no special testing device when developing an electric energy meter management chip.
为实现上述目的,本发明提供一种用于电能表管理芯片验证的系统,所述用于电能表管理芯片验证的系统包括内置有待检验芯片程序的FPGA及与所述FPGA连接的FPGA子板;其中,In order to achieve the above object, the present invention provides a system for verification of an electric energy meter management chip, the system for verification of an electric energy meter management chip includes an FPGA with a built-in chip program to be inspected and an FPGA sub-board connected to the FPGA; in,
所述FPGA子板包括信号处理模块,所述信号处理模块与所述FPGA连接,用于采集电压信号及电流信号,并将所述电压信号及所述电流信号转换为数字信号后发送至所述FPGA;The FPGA sub-board includes a signal processing module, the signal processing module is connected to the FPGA, and is used to collect voltage signals and current signals, convert the voltage signals and the current signals into digital signals, and send them to the FPGA. FPGA;
所述FPGA,用于根据所述待检验芯片程序及所述数字信号验证待检验芯片的功能是否满足设计要求。The FPGA is used for verifying whether the function of the chip to be inspected meets the design requirements according to the program of the chip to be inspected and the digital signal.
优选地,所述信号处理模块包括电压电流采样电路、模数转换器、随机存取存储器及计量电路;所述电压电流采样电路,分别与母线及所述模数转换器连接,所述模数转换器与所述随机存取存储器连接,所述随机存取存储器与所述计量电路连接,所述计量电路与所述FPGA连接。Preferably, the signal processing module includes a voltage and current sampling circuit, an analog-to-digital converter, a random access memory and a metering circuit; the voltage and current sampling circuit is respectively connected to the bus bar and the analog-to-digital converter, and the analog-to-digital A converter is connected to the random access memory, the random access memory is connected to the metering circuit, and the metering circuit is connected to the FPGA.
优选地,所述FPGA子板还包括FPGA接口,所述FPGA接口上设置有与所述待检验芯片的功能对应的引脚,所述信号处理模块通过所述FPGA接口与所述FPGA连接。Preferably, the FPGA sub-board further includes an FPGA interface, the FPGA interface is provided with pins corresponding to the functions of the chip to be tested, and the signal processing module is connected to the FPGA through the FPGA interface.
优选地,所述FPGA接口的引脚数量大于所述待检验芯片的引脚数量。Preferably, the number of pins of the FPGA interface is greater than the number of pins of the chip to be inspected.
优选地,所述FPGA子板还包括电能表外设模块,所述电能表外设模块包括按键、显示屏、指示灯及通信电路;所述按键、所述显示屏、所述指示灯及所述通信电路分别与所述FPGA连接;其中,Preferably, the FPGA daughter board further includes an electric energy meter peripheral module, and the electric energy meter peripheral module includes a button, a display screen, an indicator light and a communication circuit; the button, the display screen, the indicator light and all the The communication circuits are respectively connected with the FPGA; wherein,
所述按键,用于接收用户的输入信号,并将所述输入信号发送至所述FPGA,以使所述FPGA根据所述输入信号向所述显示屏输出对应的显示信号;The button is used to receive an input signal from a user and send the input signal to the FPGA, so that the FPGA outputs a corresponding display signal to the display screen according to the input signal;
所述显示屏,用于接收所述显示信号,并进行显示;The display screen is used to receive the display signal and display it;
所述指示灯,用于接收所述FPGA发送的指示信号,并指示电能表的电能脉冲;The indicator light is used to receive the indication signal sent by the FPGA and indicate the electric energy pulse of the electric energy meter;
所述通信电路,用于与所述FPGA进行通信,获取用户的电量数据,并发送所述用电量至电力系统。The communication circuit is configured to communicate with the FPGA, obtain the power data of the user, and send the power consumption to the power system.
优选地,所述指示灯及所述通信电路均通过电阻与所述FPGA连接。Preferably, both the indicator light and the communication circuit are connected to the FPGA through a resistor.
优选地,所述FPGA包括可配置逻辑模块及输入模块,所述可配置逻辑模块内置有所述待检验芯片程序,且所述可配置逻辑模块与所述输入模块连接,所述FPGA接口包括功能接口及输出接口;所述可配置逻辑模块与所述功能接口连接,所述输入模块与所述输出接口连接。Preferably, the FPGA includes a configurable logic module and an input module, the configurable logic module has a built-in chip program to be tested, and the configurable logic module is connected to the input module, and the FPGA interface includes a function an interface and an output interface; the configurable logic module is connected to the functional interface, and the input module is connected to the output interface.
优选地,所述FPGA还包括安全模块,所述安全模块与所述可配置逻辑模块连接,所述安全模块内置具有加密算法的安全引擎。Preferably, the FPGA further includes a security module, the security module is connected to the configurable logic module, and the security module has a built-in security engine with an encryption algorithm.
优选地,还包括用于给FPGA供电的供电电源,所述供电电源与所述FPGA之间设置有隔离器件。Preferably, it also includes a power supply for supplying power to the FPGA, and an isolation device is provided between the power supply and the FPGA.
本发明还提出一种用于电能表管理芯片验证的装置,所述用于电能表管理芯片验证的装置包括如上所述的用于电能表管理芯片验证的系统。The present invention also provides an apparatus for verification of an electric energy meter management chip, and the apparatus for verification of an electric energy meter management chip includes the above-mentioned system for verification of an electric energy meter management chip.
本发明通过在用于电能表管理芯片验证的系统中设置内置有待检验芯片程序的FPGA及与FPGA连接的FPGA子板;其中,FPGA子板包括与FPGA连接的信号处理模块,用于采集电压信号及电流信号,并将电压信号及电流信号转换为数字信号后发送至FPGA;FPGA根据待检验芯片程序及数字信号验证待检验芯片的功能是否满足设计要求。其中,通过将电能表管理芯片的运行程序放置于FPGA中,配合FPGA子板模拟电能表正常运行环境,从而对运行程序进行仿真验证,使得在设计电能表管理芯片的过程中可以反复调试,解决了在开发电能表管理芯片时无专用测试装置的技术问题,降低了开发成本。In the present invention, an FPGA with a built-in chip program to be tested and an FPGA sub-board connected to the FPGA are arranged in a system for verification of an electric energy meter management chip; wherein, the FPGA sub-board includes a signal processing module connected to the FPGA for collecting voltage signals and current signal, and convert the voltage signal and current signal into digital signal and send to FPGA; FPGA verifies whether the function of the chip to be inspected meets the design requirements according to the program of the chip to be inspected and the digital signal. Among them, by placing the running program of the power meter management chip in the FPGA, and cooperating with the FPGA daughter board to simulate the normal operating environment of the power meter, the running program can be simulated and verified, so that the power meter management chip can be repeatedly debugged and solved. The technical problem that there is no special test device when developing the electric energy meter management chip is solved, and the development cost is reduced.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图示出的结构获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention, and for those of ordinary skill in the art, other drawings can also be obtained according to the structures shown in these drawings without creative efforts.
图1是本发明用于电能表管理芯片验证的系统一实施例的结构示意图;1 is a schematic structural diagram of an embodiment of a system for verification of an electric energy meter management chip according to the present invention;
图2是图1中FPGA接口一实施例的结构示意图。FIG. 2 is a schematic structural diagram of an embodiment of an FPGA interface in FIG. 1 .
附图标号说明:Description of reference numbers:
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional characteristics and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明的一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
需要说明,若本发明实施例中有涉及方向性指示(诸如上、下、左、右、前、后……),则该方向性指示仅用于解释在某一特定姿态(如附图所示)下各部件之间的相对位置关系、运动情况等,如果该特定姿态发生改变时,则该方向性指示也相应地随之改变。It should be noted that if there are directional indications (such as up, down, left, right, front, back, etc.) involved in the embodiments of the present invention, the directional indications are only used to explain a certain posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication also changes accordingly.
另外,若本发明实施例中有涉及“第一”、“第二”等的描述,则该“第一”、“第二”等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本发明要求的保护范围之内。In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only used for the purpose of description, and should not be construed as indicating or implying Its relative importance or implicitly indicates the number of technical features indicated. Thus, a feature delimited with "first", "second" may expressly or implicitly include at least one of that feature. In addition, the technical solutions between the various embodiments can be combined with each other, but must be based on the realization by those of ordinary skill in the art. When the combination of technical solutions is contradictory or cannot be realized, it should be considered that the combination of such technical solutions does not exist. , is not within the protection scope of the present invention.
本发明提供一种用于电能表管理芯片验证的系统。The invention provides a system for verifying a management chip of an electric energy meter.
参照图1,在一实施例中,所述用于电能表管理芯片验证的系统包括内置有待检验芯片程序的FPGA10及与所述FPGA10连接的FPGA子板20;其中,所述FPGA子板20包括信号处理模块210,所述信号处理模块210与所述FPGA10连接,用于采集电压信号及电流信号,并将所述电压信号及所述电流信号转换为数字信号后发送至所述FPGA10;所述FPGA10,用于根据所述待检验芯片程序及所述数字信号验证待检验芯片的功能是否满足设计要求。Referring to FIG. 1 , in one embodiment, the system for verification of an electric energy meter management chip includes an
需要说明的是,待检验芯片指待检验的电能表管理芯片,待检验芯片程序指待检测的电能表管理芯片的运行程序,FPGA(Field-Programmable Gate Array,现场可编程门阵列)10中内置有待检测电能表管理芯片的运行程序,FPGA子板20则模拟电能表中除电能表管理芯片的其他部分,两者配合可以作为一个仿真电能表,通过FPGA子板20可以模拟电能表运行环境获取数字信号,FPGA10根据数字信号运行程序,进行计算、存储、显示等操作,以验证与运行程序对应的电能表管理芯片的各项功能是否满足设计要求。It should be noted that the chip to be inspected refers to the electric energy meter management chip to be inspected, and the program of the chip to be inspected refers to the running program of the electric energy meter management chip to be inspected. The FPGA (Field-Programmable Gate Array, field programmable gate array) 10 is built in The running program of the electric energy meter management chip is to be detected, and the
具体地,所述信号处理模块210包括电压电流采样电路(未标示)、模数转换器(未标示)、随机存取存储器(未标示)及计量电路(未标示);所述电压电流采样电路,分别与母线及所述模数转换器连接,用于对电压及电流进行采样,获得电压信号和电流信号,并发送电压信号和电流信号至模数转换器,所述模数转换器与所述随机存取存储器连接,用于将电压信号和电流信号转换为初始数字信号,并发送初始数字信号至随机存取存储器进行存储,所述随机存取存储器与所述计量电路连接,将初始数字信号发送至计量电路,所述计量电路与所述FPGA10连接,计量电路根据初始数字信号进行计量运算,获得最终数字信号,并将最终数字信号发送至FPGA10中。Specifically, the
应当理解的是,上述计量电路,可以是集成在计量芯片中的计量电路或未集成的计量电路,对于其硬件形式,本实施例不加以限制。It should be understood that, the above-mentioned metering circuit may be a metering circuit integrated in a metering chip or an unintegrated metering circuit, and its hardware form is not limited in this embodiment.
在具体实现中,所述FPGA子板20还包括FPGA接口(未标示),所述FPGA接口上设置有与所述待检验芯片的功能对应的引脚,所述信号处理模块210通过所述FPGA接口与所述FPGA10连接。In a specific implementation, the
应当理解的是,FPGA子板20应当按照电能表实际的需求设计,其可靠性和功能不低于现有的产品,为了使FPGA10与FPGA子板20连接后可以用于电能表管理芯片的验证,需要在FPGA子板20上设置FPGA接口,实现与FPGA10之间的通信,FPGA接口上应当设置有与电能表管理芯片的功能对应的引脚,请一并参照图2,图2是FPGA接口的一实施例的结构示意图。FPGA接口上的引脚可以包括外置负荷开关控制、计量芯片串口通信接收、计量芯片串口通信发送、液晶电源控制、继电器检测输入电源控制等功能。It should be understood that the
进一步地,为了使该验证系统适用于大部分种类的电能表管理芯片,FPGA接口的引脚数量可以大于所述待检验芯片的引脚数量。如实际的电能表管理芯片设计时大约只有80个引脚,但在设计FPGA接口时可以设置120个引脚,对于不用的引脚可以空着备用。Further, in order to make the verification system suitable for most types of electric energy meter management chips, the number of pins of the FPGA interface may be greater than the number of pins of the chip to be checked. For example, the actual energy meter management chip has only about 80 pins when it is designed, but 120 pins can be set when designing the FPGA interface, and the unused pins can be left blank.
进一步地,所述FPGA子板20还包括电能表外设模块220,所述电能表外设模块220包括按键(未标示)、显示屏(未标示)、指示灯(未标示)及通信电路(未标示);所述按键、所述显示屏、所述指示灯及所述通信电路分别与所述FPGA10连接;其中,所述按键,用于接收用户的输入信号,并将所述输入信号发送至所述FPGA10,以使所述FPGA10根据所述输入信号向所述显示屏输出对应的显示信号;所述显示屏,用于接收所述显示信号,并进行显示;所述指示灯,用于接收所述FPGA发送的指示信号,并指示电能表的电能脉冲;所述通信电路,用于与所述FPGA10进行数据交互,读取用户用电量数据并发送所述用电量数据至电力系统。Further, the
需要说明的是,所述指示灯及所述通信电路均通过电阻与所述FPGA10连接,或者通过电阻、电容等器件与所述FPGA10连接。为满足FPGA板的插拔性,需要增加防止FPGA10异常后的设计方法,如在外置开关控制、漏电电流检测、载波通信、继电器控制、脉冲输出等信号上增加电阻,用于分压,提升抗干扰性。It should be noted that, the indicator light and the communication circuit are both connected to the
应当理解的是,所述显示屏优选为液晶显示屏,可以显示电能、时钟等数据;所述通信电路优选为RS485通信电路;除此之外,所述电能表外设模块还可以包括EEPROM(Electrically Erasable Programmable read only memory,带电可擦可编程只读存储器)、FLASH(闪存)和继电器等,与FPGA共同实现脉冲输出、继电器输出控制等。It should be understood that the display screen is preferably a liquid crystal display screen, which can display data such as power and clock; the communication circuit is preferably an RS485 communication circuit; in addition, the power meter peripheral module may also include EEPROM ( Electrically Erasable Programmable read only memory, electrically erasable programmable read only memory), FLASH (flash memory) and relays, etc., together with FPGA to realize pulse output, relay output control, etc.
在具体实现中,由于电能表有3种运行模式:工作、低功耗、超低功耗。工作模式是指电能表处于正常计量情况下后电能表管理芯片才全速运行,其它两种模式都是电能表在掉电情况下,由电池供电,电能表管理芯片只需运行部分功能。电能表在低功耗情况下,需要接受按键唤醒;在超低功耗下则只需要维持内存中的数据不丢失即可。因此,本实施例中,用户可以通过按键实现电能表工作模式切换信号的输入,最终使FPGA10实现电能表工作模式的切换。In the specific implementation, since the electric energy meter has three operating modes: work, low power consumption, and ultra-low power consumption. The working mode means that the electric energy meter management chip only runs at full speed after the electric energy meter is under normal measurement conditions. In the case of low power consumption, the electric energy meter needs to accept the key to wake up; in the case of ultra-low power consumption, it only needs to maintain the data in the memory without loss. Therefore, in this embodiment, the user can input the working mode switching signal of the electric energy meter by pressing a button, and finally the
进一步地,所述FPGA10包括可配置逻辑模块(图未示)及输入模块(图未示),所述可配置逻辑模块内置有所述待检验芯片程序,且所述可配置逻辑模块与所述输入模块连接,所述FPGA接口包括功能接口(图未示)及输出接口(图未示);所述可配置逻辑模块与所述功能接口连接,所述输入模块与所述输出接口连接。Further, the
应当理解的是,FPGA10上的可配置逻辑模块与FPGA子板20上的功能接口连接在一起,通过可配置逻辑模块实现FPGA子板20各种模式的切换和功能实现。FPGA10上的输入模块与FPGA子板20上各个输出接口连接在一起,形成回路,控制继电器输出、脉冲输出和通信控制。It should be understood that the configurable logic module on the
进一步地,所述FPGA10还包括安全模块(图未示),所述安全模块与所述可配置逻辑模块连接,所述安全模块内置具有加密算法的安全引擎。Further, the
应当理解的是,所述加密算法可以是国密算法或其他算法,本实施例对此不加以限制,通常为了保障电能表管理芯片的安全性,会使用集成了加密算法的安全引擎,使该芯片同时具有主动免疫能力。本实施例中在FPGA10中通过安全模块模拟加密的电能表管理芯片,进一步还原了电能表管理芯片的真实应用场景,使验证结果更加准确。It should be understood that the encryption algorithm may be a national secret algorithm or other algorithms, which is not limited in this embodiment. Generally, in order to ensure the security of the electric energy meter management chip, a security engine integrated with an encryption algorithm is used, so that the The chip also has active immunity. In this embodiment, the encrypted electric energy meter management chip is simulated by the security module in the
进一步地,用于电能表管理芯片验证的系统还包括用于给FPGA 10供电的供电电源(图未示),所述供电电源与所述FPGA10之间设置有隔离器件。Further, the system for verification of the electric energy meter management chip further includes a power supply (not shown) for supplying power to the
应当理解的是,FPGA10的供电是外部电源供电,因此需要在供电电源上考虑隔离,避免外部电源的干扰,在电路设计上需要增加隔离器件,如光耦等。It should be understood that the power supply of the
以下,结合图1和图2说明本实施例的系统设计步骤:Hereinafter, the system design steps of this embodiment will be described with reference to FIG. 1 and FIG. 2:
步骤1、首先按照电能表管理芯片最终排布进行设计,电能表上使用到的PIN全部体现出来,结合FPGA10的功能,把电能表管理芯片上的PIN与FPGA接口对应起来,FPGA接口的排布具体可参照图2,FPGA接口的引脚要多于电能表管理芯片上的引脚。Step 1. First, design according to the final arrangement of the electric energy meter management chip. All PINs used on the electric energy meter are reflected. Combined with the function of FPGA10, the PIN on the electric energy meter management chip is corresponding to the FPGA interface, and the arrangement of the FPGA interface Specifically, referring to FIG. 2 , the pins of the FPGA interface are more than the pins on the power meter management chip.
步骤2、FPGA子板20上设计的电路要完全符合电能表所有功能的需求,其中,信号处理模块210中设计电压电流采样电路、模数转换器、随机存取存储器及计量电路,对电流及电流进行采样,最终转换为数字信号传到FPGA10,FPGA10可根据具体的功能需求进行计算、存储、显示等操作;电能表外设模块220中设计按键、显示屏、指示灯、按键及通信电路等电路,实现计量、显示、存储、按键、通信等功能。Step 2. The circuit designed on the
步骤3、FPGA10通过FPGA接口分别与计量电路、按键、显示屏、指示灯、按键及通信电路等连接,并且在外置开关控制、漏电电流检测、载波通信、继电器控制、脉冲输出等信号上增加电阻,用于分压,提升抗干扰性。Step 3. FPGA10 is connected with metering circuit, button, display screen, indicator light, button and communication circuit through FPGA interface, and resistance is added to external switch control, leakage current detection, carrier communication, relay control, pulse output and other signals , used to divide the voltage and improve the anti-interference.
步骤4、FPGA10的供电电源与FPGA10之间增加隔离器件。Step 4. An isolation device is added between the power supply of the
步骤5、运行FPGA10内置待检验芯片程序,实现对芯片的验证。Step 5. Run the program of the chip to be tested built in the
本实施例通过在所述用于电能表管理芯片验证的系统中设置内置有待检验芯片程序的FPGA及与FPGA连接的FPGA子板;其中,FPGA子板包括与FPGA连接的信号处理模块,用于采集电压信号及电流信号,并将电压信号及电流信号转换为数字信号后发送至FPGA;FPGA根据待检验芯片程序及数字信号验证待检验芯片的功能是否满足设计要求。其中,通过将电能表管理芯片的运行程序放置于FPGA中,配合FPGA子板模拟电能表正常运行环境,从而对运行程序进行仿真验证,使得在设计电能表管理芯片的过程中可以反复调试,解决了在开发电能表管理芯片时无专用测试装置的技术问题,降低了开发成本。In this embodiment, an FPGA with a built-in chip program to be checked and an FPGA sub-board connected to the FPGA are provided in the system for verification of an electric energy meter management chip; wherein, the FPGA sub-board includes a signal processing module connected to the FPGA for Collect voltage and current signals, convert the voltage and current signals into digital signals and send them to the FPGA; the FPGA verifies whether the function of the chip to be tested meets the design requirements according to the program of the chip to be tested and the digital signal. Among them, by placing the running program of the power meter management chip in the FPGA, and simulating the normal operating environment of the power meter with the FPGA daughter board, the running program can be simulated and verified, so that in the process of designing the power meter management chip, it can be repeatedly debugged to solve the problem. The technical problem that there is no special test device when developing the electric energy meter management chip is solved, and the development cost is reduced.
本发明还提出一种用于电能表管理芯片验证的装置,所述用于电能表管理芯片验证的装置包括如上所述的用于电能表管理芯片验证的系统,所述用于电能表管理芯片验证的装置的系统结构可参照上述实施例,在此不再赘述;可以理解的是,由于本实施例的用于电能表管理芯片验证的装置采用了上述用于电能表管理芯片验证的系统的技术方案,因此所述用于电能表管理芯片验证的装置具有上述所有的有益效果。The present invention also provides a device for verifying an electric energy meter management chip, the device for verifying an electric energy meter management chip includes the above-mentioned system for verifying an electric energy meter management chip, and the device for verifying an electric energy meter management chip For the system structure of the verification device, refer to the above-mentioned embodiments, which will not be repeated here; Therefore, the device for verification of the electric energy meter management chip has all the above-mentioned beneficial effects.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the description and drawings of the present invention, or directly or indirectly applied in other related technical fields , are similarly included in the scope of patent protection of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911297412.5A CN110866369A (en) | 2019-12-16 | 2019-12-16 | System and device for verification of electric energy meter management chip |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911297412.5A CN110866369A (en) | 2019-12-16 | 2019-12-16 | System and device for verification of electric energy meter management chip |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110866369A true CN110866369A (en) | 2020-03-06 |
Family
ID=69659672
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911297412.5A Pending CN110866369A (en) | 2019-12-16 | 2019-12-16 | System and device for verification of electric energy meter management chip |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110866369A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113625151A (en) * | 2021-07-08 | 2021-11-09 | 南方电网科学研究院有限责任公司 | Test system for special module of electric power |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101900799A (en) * | 2009-09-30 | 2010-12-01 | 广东电网公司电力科学研究院 | Digital electric energy meter checking device based on analog source tracing method |
CN103617140A (en) * | 2013-11-25 | 2014-03-05 | 北京航空航天大学 | Electroneurographic signal compressed sensing processing verification system and construction method thereof |
CN105720563A (en) * | 2014-12-05 | 2016-06-29 | 国家电网公司 | Multi-principle relay protection chip based on FPGA and method |
CN210666782U (en) * | 2019-12-16 | 2020-06-02 | 深圳供电局有限公司 | System and device for verification of electric energy meter management chip |
-
2019
- 2019-12-16 CN CN201911297412.5A patent/CN110866369A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101900799A (en) * | 2009-09-30 | 2010-12-01 | 广东电网公司电力科学研究院 | Digital electric energy meter checking device based on analog source tracing method |
CN103617140A (en) * | 2013-11-25 | 2014-03-05 | 北京航空航天大学 | Electroneurographic signal compressed sensing processing verification system and construction method thereof |
CN105720563A (en) * | 2014-12-05 | 2016-06-29 | 国家电网公司 | Multi-principle relay protection chip based on FPGA and method |
CN210666782U (en) * | 2019-12-16 | 2020-06-02 | 深圳供电局有限公司 | System and device for verification of electric energy meter management chip |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113625151A (en) * | 2021-07-08 | 2021-11-09 | 南方电网科学研究院有限责任公司 | Test system for special module of electric power |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102592068B (en) | The method and its system of malice circuit in fpga chip are detected using power consumption analysis | |
CN107077409B (en) | Method and apparatus for multi-interface debugging in an electronic system | |
CN102854877A (en) | Function test system and test method of automobile body control module | |
CN113254284B (en) | Chip testing method, device, apparatus, storage medium and program product | |
CN210666782U (en) | System and device for verification of electric energy meter management chip | |
CN204789908U (en) | Circuit board automatic test system based on labVIEW | |
CN116746064A (en) | Lock step comparator and related method | |
CN112034410A (en) | Detection tool module of multi-core modular electric energy meter | |
CN202362865U (en) | IC card prepaid energy meter fault detection device | |
CN106569166A (en) | Testing method for legal metering part of double-core electric energy meter | |
CN107271895A (en) | A kind of the time reference device and check system of the verification of primary cut-out test system | |
CN110866369A (en) | System and device for verification of electric energy meter management chip | |
CN113918396B (en) | System, method, device and medium for testing touch panel | |
CN216209684U (en) | MCU testing arrangement and electronic equipment | |
CN207764782U (en) | The detecting system of peripheral component interconnection express standard slots | |
TWI743851B (en) | Pcie slot detection system | |
US8775691B1 (en) | Detecting firmware version for an input/output adapter | |
CN111104279A (en) | SAS connector conduction detection system and method thereof | |
CN108254644A (en) | ESD detection device, system and method | |
CN113806148B (en) | Quick peripheral component interconnect socket detection system | |
CN208110030U (en) | A kind of communication test plate of ammeter communication module | |
CN217385736U (en) | MCU's ATE equipment and system thereof | |
CN116070564A (en) | Simulation communication method and device based on chip to-be-tested design | |
CN203722646U (en) | Testing system of very high frequency (VHF) transceiver | |
Elnaggar et al. | OPAL: On-the-go physical attack lab to evaluate power side-channel vulnerabilities on FPGAs |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |