Multi-channel different-rate noise source acquisition device based on FPGA gigabit Ethernet
Patent Information
- Application Number
- CN202420512746.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-15
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2034-03-15
AI Technical Summary
Traditional noise source acquisition devices can only collect noise source signals at one rate, cannot flexibly process multiple noise source signals at different rates, and cannot satisfy the continuous sampling of multiple random numbers.
A multi-channel noise source acquisition device with different rates based on FPGA Gigabit Ethernet is designed. Through the FPGA chip, PHY chip and clock chip, real-time sampling and merging of multi-channel random numbers are realized. The Gigabit network port is used to upload detection to achieve High-speed, efficient multi-channel continuous acquisition.
It achieves real-time sampling and merging of multi-channel noise source signals with different rates, and uploads detection through the Gigabit network port to achieve high-speed and efficient multi-channel continuous acquisition, meeting the collection needs of high-rate and multi-channel signals.
Smart Images

Figure CN221827217U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the field of data processing technology and equipment, and in particular to a multi-channel different-rate noise source acquisition device based on FPGA Gigabit Ethernet. Background Art
[0002] Random numbers play a role in generating keys, increasing uniqueness, and increasing security in cryptographic algorithms. They are an important component of ensuring the security of cryptographic systems and one of the foundations of information security. Commercial cryptographic products with strict grade requirements require that random numbers be generated using physical noise source chips approved by the National Cryptography Administration. Therefore, when performing random number quality testing, the random numbers generated by the noise source chip must be sampled to determine whether the random numbers meet the requirements. Existing devices for noise source acquisition generally use SoC chips through high-speed interfaces or FPGA chips for single-channel random number acquisition. The acquisition rate and amount of data collected are low. When the physical noise source generates random numbers at a high rate or has a large number of channels, the use of general random number acquisition devices cannot meet the continuous sampling of random numbers in each channel. Utility Model Content
[0003] The technical problem to be solved by the utility model is: to overcome the defect that the traditional noise source acquisition device can only acquire noise source signals of one rate and cannot flexibly process multiple noise source signals of different rates, and to provide a multi-channel different rate noise source acquisition device based on FPGA Gigabit Ethernet, which can realize real-time sampling of multi-channel random numbers and different rates of each channel, and merge multi-channel low-rate random numbers into one high-speed random number, upload and detect through the Gigabit network port, thereby realizing high-speed and efficient multi-channel continuous acquisition.
[0004] The multi-channel different-rate noise source acquisition device based on FPGA Gigabit Ethernet includes several noise source data input connectors RNG1 to RNGn for connecting to the external noise source circuit board interface, an FPGA chip, a PHY chip, a first clock chip and a second clock chip for providing input clocks to the FPGA chip and the PHY chip respectively, an RJ45 Gigabit Ethernet port connector for connecting to the host computer, and a power chip for powering the above chips, wherein the noise source data input connector adopts a three-core aviation plug for clock, data and signal ground signals, and each noise source data input connector is connected to the signal input end of the FPGA chip through a clock and data signal line; the PHY chip is connected to the FPGA chip through an RGMII interface, and the output end of the PHY chip is connected to the RJ45 Gigabit Ethernet port connector; the first clock chip and the second clock chip are connected to the FPGA chip and the PHY chip respectively; the power chip supplies power to the FPGA chip, the PHY chip, the first clock chip, and the second clock chip respectively.
[0005] Specifically, the FPGA chip uses the Ziguang Tongchuang PGL25G_6IMBG324 chip.
[0006] Specifically, the PHY chip adopts Realtek Electronics RTL8211EG.
[0007] Specifically, the first clock chip uses a 50 MHz active crystal oscillator, and the second clock chip uses a 25 MHz active crystal oscillator.
[0008] Specifically, the RJ45 connector uses a gigabit network port connector.
[0009] Specifically, the power chip adopts Belling Electronics BL8033CB6TRDC-DC chip.
[0010] The utility model discloses a multi-channel different-rate noise source acquisition device based on FPGA Gigabit Ethernet, which can realize real-time sampling of multi-channel random numbers and different rates of each channel, and merge multi-channel low-rate random numbers into one high-speed random number, which is uploaded and tested via the Gigabit network port, thereby realizing high-speed and efficient multi-channel continuous acquisition. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The following is a further description of a multi-channel noise source acquisition device with different rates based on FPGA Gigabit Ethernet of the utility model in conjunction with the accompanying drawings:
[0012] Figure 1 This is a wireframe diagram of the logic structure and connection relationship of the multi-channel noise source acquisition device with different rates based on FPGA Gigabit Ethernet;
[0013] Figure 2 This is a logic wireframe diagram of the internal integrated functional modules and signal trends of the FPGA chip PGL25G_6IMBG324 in the multi-channel noise source acquisition device with different rates based on FPGA Gigabit Ethernet;
[0014] Figure 3 This is a circuit diagram of the FPGA A chip and the upstream noise source data input connector of the multi-channel different-rate noise source acquisition device based on FPGA Gigabit Ethernet;
[0015] Figure 4 This is the circuit diagram of the FPGA A chip and the downstream PHY chip in the multi-channel different-rate noise source acquisition device based on FPGA Gigabit Ethernet;
[0016] Figure 5 This is the RJ45 connector circuit diagram of the multi-channel different rate noise source acquisition device based on FPGA Gigabit Ethernet;
[0017] Figure 6The figure is a circuit diagram of the power supply part of the multi-channel different-rate noise source acquisition device based on FPGA Gigabit Ethernet.
[0018] In the figure:
[0019] 1-noise source data input connector, 2-FPGA chip, 3-PHY chip, 4-RJ45 Gigabit network port connector, 5-power chip; 21-first clock chip, 23-RGMII interface, 31-second clock chip. DETAILED DESCRIPTION
[0020] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be directly connected or indirectly connected through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0021] In the description of the present invention, it should be understood that the terms "left", "right", "front", "back", "top", "bottom", "inside", "outside", etc., indicating directions or positional relationships, are based on the directions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore cannot be understood as a limitation on the present invention.
[0022] The technical solution of the utility model is further described below with specific embodiments, but the protection scope of the utility model is not limited to the following embodiments.
[0023] Implementation method 1: Figure 1As shown, the multi-channel different rate noise source acquisition device based on FPGA Gigabit Ethernet The multi-channel different rate noise source acquisition device based on FPGA Gigabit Ethernet includes several noise source data input connectors 1, RNG1 to RNGn for connecting to the external noise source circuit board interface, FPG A chip 2, PHY chip 3, first clock chip 21 and second clock chip 31 that provide input clock for FPGA chip 2 and PHY chip 3 respectively, RJ45 Gigabit Ethernet port connector 4 for connecting to the host computer, power chip 5 for powering the above chips, wherein the noise source data input connector 1 adopts a three-core aviation plug for clock, data and signal ground signals, and each noise source data input connector 1 is connected to the signal input end of FPGA chip 2 through clock and data signal lines; the PHY chip 3 is connected to FPGA chip 2 through RGMII interface 23, and the output end of PHY chip 3 is connected to RJ45 Gigabit Ethernet port connector 4; the first clock chip 21 and the second clock chip 31 are connected to FPGA chip 2 and PHY chip 3 respectively; the power chip 5 supplies power to FPGA chip 2, PHY chip 3, first clock chip 21, and second clock chip 31 respectively. The FPGA chip 2 adopts Ziguang Tongchuang PGL25G_6IMBG324 chip. The PGL25G_6IMBG324 chip integrates a PLL phase-locked loop for outputting clock signals of the same source but different frequencies, a FIFO_1 to FIFO_n memory for storing noise source data input connectors as data acquisition channels for collecting noise source data of different frequencies, a control module for reading data in FIFO_1 to FIFO_n in order from high to low according to the operating frequency of each noise source signal, a FIFO storage module for storing the data to be added by the control module and the data to be read from the data FIFO, a UDP top-level module for encapsulating the data in the data FIFO to be sent into UDP data packets in a size of 1028 bytes per packet, and an Ethernet control module for receiving UDP data packets encapsulated by the UDP top-level module and sending them to the PHY chip through the RGMII interface for uploading via the R J45 Gigabit Ethernet port. In specific operation, the control module integrated in the PGL25G_6IMBG324 chip reads the data in the data FIFO in order from high to low according to the operating frequency of each noise source signal, and controls the destination port number of the UDP send packet output by the corresponding channel. Each time, it reads a data packet of 1024 bytes of valid data from the data FIFO, and adds a 4-byte packet sequence number before each packet of data to facilitate the host computer to check whether the received data is continuous. The control module configures FIFO_1 to FIFO_n according to the corresponding algorithm and calculates how much noise source data of the corresponding channel is read in each round to send.The corresponding algorithm must meet the requirement that each channel has a minimum data packet of 1024 bytes collected in each round of reading, and that the FIFO space is sufficient to store the noise source data to be collected in the second round of reading. For example, when there are 8 noise source signals with different rates, and the noise source data rates are nMbps, nMbps, nMbps, nMbps, nMbps, 2nMbps, 3nMbps and 4nMbps respectively, the control module polls and reads the noise source data of the corresponding channel at the rate from high to low. First, read the data of the 4nMbps channel. According to the speeds of the eight channels, calculate the greatest common divisor of the speeds as n. The corresponding 4nMbps channel needs to read 4 packets (channel rate / greatest common divisor of the speed) of 1KB data packets; then read 3 packets (channel rate / greatest common divisor of the speed) of 1KB data packets from the 3nMbps channel; read 2 packets (channel rate / greatest common divisor of the speed) of 1KB from the 2nMbps channel; finally, read the data of the remaining 5 channels with a speed of nMbps respectively, and read 1 packet (channel rate / greatest common divisor of the speed) of data from each channel; repeat the above steps until the amount of data output from each channel reaches the set target value and then stop working. In order to prevent any data in data FIFO_1 to FIFO_8 from overflowing and causing discontinuity of noise source data, the storage space of FIFO should meet the following requirements. When reading the data in FIFO according to the above five different noise source signal control methods, 8 channels read 14k bytes of data in one cycle. The maximum reading rate of FPGA is based on the effective data rate of the Ethernet interface (about 940Mbps). Therefore, the time to read 14k bytes is 0.0001164s. During this period, the amount of data collected by the noise source data channel with the highest operating frequency is 0.0001164s*4nMbps. Therefore, the space size of FIFO of any acquisition channel must be larger than the first round of data collection of the highest rate channel 4KB plus the amount of noise source data generated again after all channels are collected (4KB+0.0001164s*4nMbps).
[0024] Implementation method 2: Figure 1As shown, the PHY chip 3 of the multi-channel different-rate noise source acquisition device based on FPGA Gigabit Ethernet adopts Realtek Electronics RTL8211EG. RTL8211EG supports the Gigabit Ethernet chip of RGMII interface. The first clock chip 21 adopts a 50MHz active crystal oscillator, and the second clock chip 31 adopts a 25MHz active crystal oscillator. The RJ45 connector 4 adopts a Gigabit network port connector. The RJ45 connector is connected to the PHY chip through an MDI differential signal, and a Category 6 network cable is used to connect to the RJ45 Gigabit network port of the host computer through the RJ45 connector. The power chip 5 adopts the Belling Electronics BL8033CB6TRDC-DC chip. The BL8033CB6TRDC-DC chip can provide driving power supply of different voltages for each functional chip and integrated circuit. The remaining structures and components are as described in Implementation 1 and will not be repeated.
[0025] This multi-channel different-rate noise source acquisition device based on FPGA Gigabit Ethernet can realize real-time sampling of multi-channel random numbers and different rates of each channel, and merge multi-channel low-rate random numbers into one high-speed random number, which is uploaded and tested through the Gigabit network port, realizing high-speed and efficient multi-channel continuous acquisition.
[0026] The above description shows the main features, basic principles, and advantages of the utility model. For those skilled in the art, it is obvious that the utility model is not limited to the details of the above exemplary embodiments or embodiments, and the utility model can be implemented in other specific forms without departing from the spirit or basic features of the utility model. Therefore, the above embodiments or embodiments should be regarded as exemplary and non-restrictive. The scope of the utility model is defined by the attached claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the utility model. Any figure mark in the claims should not be regarded as limiting the claims involved.
[0027] In addition, it should be understood that although the present specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.
Claims
1. A multi-channel different-rate noise source acquisition device based on FPGA Gigabit Ethernet, characterized by: The invention comprises a plurality of noise source data input connectors (1) from RNG1 to RNGn for connecting to an external noise source circuit board interface, an FPGA chip (2), a PHY chip (3), a first clock chip (21) and a second clock chip (31) for providing input clocks to the FPGA chip (2) and the PHY chip (3), an RJ45 gigabit network port connector (4) for connecting to a host computer, and a power supply chip (5) for supplying power to the above chips, wherein: The noise source data input connector (1) adopts a three-core aviation plug for clock, data and signal ground signals, and each noise source data input connector (1) is connected to the signal input end of the FPGA chip (2) through clock and data signal lines; the PHY chip (3) is connected to the FPGA chip (2) through an RGMII interface (23), and the output end of the PHY chip (3) is connected to the RJ45 Gigabit Ethernet port connector (4); the first clock chip (21) and the second clock chip (31) are respectively connected to the FPGA chip (2) and the PHY chip (3); the power chip (5) supplies power to the FPGA chip (2), the PHY chip (3), the first clock chip (21), and the second clock chip (31).
2. The multi-channel different-rate noise source acquisition device based on FPGA Gigabit Ethernet according to claim 1 is characterized in that: The FPGA chip (2) adopts a PGL25G_6IMBG324 chip.
3. The multi-channel different-rate noise source acquisition device based on FPGA Gigabit Ethernet according to claim 2 is characterized in that: The PHY chip (3) adopts RTL8211EG.
4. The multi-channel different-rate noise source acquisition device based on FPGA Gigabit Ethernet according to claim 3 is characterized in that: The first clock chip (21) uses a 50 MHz active crystal oscillator, and the second clock chip (31) uses a 25 MHz active crystal oscillator.
5. The multi-channel different-rate noise source acquisition device based on FPGA Gigabit Ethernet according to claim 4 is characterized in that: The RJ45 connector (4) is a gigabit network port connector.
6. The multi-channel different-rate noise source acquisition device based on FPGA Gigabit Ethernet according to claim 5 is characterized in that: The power chip (5) adopts a BL8033CB6TRDC-DC chip.
