A system for continuously collecting and analyzing the quality of random number chips
By designing a separate continuous acquisition and analysis system, we solve the problem of difficulty in conducting efficient random number chip testing in harsh environments, achieve automated noise entropy quality assessment, reduce testing costs and risks, and are suitable for multiple chips. automated quality inspection.
Patent Information
- Application Number
- CN202410917077.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-07-10
AI Technical Summary
It is difficult to achieve fast, continuous, efficient and reliable quality inspection of random number generator modules (chips) with existing technology, especially in harsh environments where signal interference is difficult to ensure. Traditional methods require a lot of manual participation and are costly.
Design a system that continuously collects and analyzes the quality of random number chips. It adopts a separate design. The chip under test is placed in a high and low temperature chamber and connected to the test device through a shielded cable. The collection unit, control unit, analysis unit and The storage unit performs automatic collection, storage and quality analysis, including DDR and SD cards. It uses a dual-core asymmetric architecture control unit and a pseudo-random number generator for data verification. It supports multiple inputs and a ring buffer pool structure to achieve automated testing.
It realizes automatic, continuous and parallel collection of random number data from multiple chips in harsh environments, automatically analyzes noise entropy quality, reduces test costs and risks, replaces high-precision equipment, and improves efficiency and applicability.
Smart Images

Figure CN118467274B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of information security and data acquisition, and in particular to a universal multi-channel random number module (chip) real-time acquisition and random number quality analysis device. Background Art
[0002] Information security has become a vital issue in today's society. In the digital age, a large amount of sensitive information, including financial transactions, personal privacy, corporate secrets, etc., needs to be transmitted and stored in networks and computer systems. It is crucial to protect this information from malicious attacks and theft, and random number design plays a key role in this.
[0003] Random numbers play an important role in cryptography, encrypted communications, and data integrity verification. Traditional pseudo-random number generation algorithms may be subject to prediction attacks, while true random numbers are unpredictable and therefore more secure and reliable. In information security systems, the importance of true random number generation is becoming increasingly prominent.
[0004] The true random number generator module (chip) often collects and calculates the noise of the chip itself, so the chip noise entropy quality is very important. Noise entropy is difficult to guarantee due to process and material reasons, and often requires chip manufacturers and designers to screen and test. The screening of true random numbers requires a large amount of data and calculations. The general traditional method is to collect a large amount of data through high-bandwidth oscilloscopes and logic analyzers, and then test and screen through mathematical calculations. The whole process requires a lot of manual participation, high time and equipment costs, and it is difficult to achieve parallel automated processing.
[0005] For specific industries that require testing in harsh environments, existing testing methods are easily affected by environmental noise, signal interference, and the safety of precision instruments is difficult to ensure, making it impossible to propose a fast, continuous, efficient and reliable random number generator module (chip) quality inspection method. Summary of the invention
[0006] The technical problem to be solved by the present invention is to provide a system for continuously collecting and analyzing the quality of random number chips. The system adopts a separate design, can place the chip under test in a harsh temperature and humidity environment, and provide voltage bias conditions. Under the above conditions, the reliability of the device for continuous and parallel data collection can be verified, and the output data of multiple random number chips can be continuously collected and stored, and quality analysis can be performed. By automatically analyzing the data quality and then evaluating the noise entropy quality of the random number chip, automatic and efficient random number chip testing and screening can be achieved.
[0007] In order to solve the technical problem, the technical solution adopted by the present invention is: a system for continuously collecting and analyzing the quality of random number chips, including a chip under test and a test device, the chip under test is located in a high and low temperature box, the test device is located outside the high and low temperature box, the test device and the chip under test are connected through a shielded cable, and a power supply is provided to provide different test voltages for the chip under test;
[0008] The test device includes an acquisition unit, a control unit, an analysis unit, a storage unit and a self-test unit. The storage unit includes a DDR and an SD card. The acquisition unit includes an acquisition module, a segmented FIFO and a register. There are multiple acquisition modules. Each acquisition module is connected to a chip under test and is used to acquire random numbers generated by the chip under test. Multiple acquisition modules are connected to the segmented FIFO and are used to transmit the acquired random numbers to the segmented FIFO. The segmented FIFO and the register are connected to the control unit.
[0009] The control unit adopts a dual-core asymmetric architecture, including CPU0, CPU1 and on-chip SRAM. CPU0 is the main control unit. CPU0 is connected to the segmented FIFO and registers to collect and cache multiple random number inputs in real time, set collection parameters, and manage collection modules.
[0010] CPU1 is an auxiliary control unit, which is connected to the SD card and is used to store the collected random numbers into the SD card;
[0011] CPU0 and CPU1 share the on-chip SRAM and DDR. The DDR is divided into multiple buffers, which form a circular buffer pool. The on-chip SRAM stores the state of the circular buffer pool. CPU0 writes data to the circular buffer pool, and CPU1 reads data from the circular buffer pool.
[0012] The analysis unit analyzes the random numbers in the SD card to screen and verify the entropy source quality of the random number chip; the self-test unit includes a pseudo-random number generator connected to CPU0 and the acquisition unit respectively, the pseudo-random number generator has a communication rate and interface timing consistent with the chip under test, and the pseudo-random number generator is used to generate an excitation signal under the target test conditions and perform CRC verification to verify the test environment of the test device, the transmission connection and the functional validity of the SD card.
[0013] Furthermore, the pseudo-random number generator is controlled by CPU0 to generate pseudo-random numbers and perform output CRC verification. The acquisition module collects the pseudo-random numbers generated by the pseudo-random number generator and performs input CRC verification. After collecting data of a specified length, the output function of the pseudo-random generator is stopped. CPU0 compares whether the output CRC is consistent with the input CRC, confirms whether the connection and acquisition environment are reliable; reads the random data binary file stored in the SD card, calculates the CRC checksum, compares the calculated CRC sum with the input / output CRC to confirm whether the SD card connection and the SD card are reliable.
[0014] Furthermore, the acquisition unit and the chip under test are connected through a two-wire SIO interface, which includes a clock interface RNG_CLK and a data interface RNG_BIT. The clock interface RNG_CLK is a bidirectional interface with the ability to output and receive clocks, and the data interface RNG_BIT is a unidirectional input interface with the ability to acquire data from the chip under test. The two-wire SIO interface supports both active and passive transmission modes. The active transmission mode refers to that the acquisition unit provides a clock, the chip under test generates data, and the acquisition unit actively acquires data. The passive transmission mode refers to that the chip under test generates a clock and data, and the acquisition unit passively acquires data.
[0015] Furthermore, the two-wire SIO interface supports four sampling timings, including: idle high level, rising edge sampling and falling edge latching; idle high level, falling edge sampling and rising edge latching; idle low level, rising edge sampling and falling edge latching; idle low level, falling edge sampling and rising edge latching.
[0016] Furthermore, the segmented FIFO includes an internal cache space and an AXI slave interface. The internal cache space adopts fixed address allocation, single-channel 32KB grouping, each grouping has a CRC accumulation check function, and the AXI interface is connected to CPU0.
[0017] Furthermore, multiple circular buffer pools are designed for each input, and the circular buffer pools are used cyclically and in parallel.
[0018] Furthermore, each buffer includes two states: ready state and idle state. A corresponding state identifier is set in the on-chip SRAM. By default, all buffers are in the idle state. When working, CPU0 finishes writing data to the buffer, CPU1 reads data from the buffer, and the buffer is in the ready state. CPU0 has not finished writing data to the buffer, CPU1 has finished reading data, and the buffer is in the idle state. When the corresponding buffer in the on-chip SRAM is in the idle state, CPU0 can write, and CPU1 is prohibited from reading. CPU0 detects the segmented FIFO state in the acquisition unit. When the segmented FIFO reaches the threshold, the corresponding address FIFO data is read and written into the buffer. When the buffer data is full, the buffer is set to the ready state. When the corresponding buffer in the on-chip SRAM is in the ready state, CPU0 is prohibited from writing, and CPU1 can read. CPU1 reads 1MB of data from the buffer at one time and writes it to the SD card. After the SD writing is completed, the buffer is set to the idle state.
[0019] Furthermore, CPU1 is connected to the SD card through the SDIO module, CPU1 loads the FatFS file system, identifies and initializes the SD card through the SDIO interface, and stores the valid data in the buffer pool in the form of a binary file in the SD card.
[0020] Furthermore, the acquisition unit supports 1-8 inputs, with a maximum single-channel sampling rate of 100Mbps and a maximum total sampling rate of 400Mbps.
[0021] Furthermore, the process of data control by the control unit is as follows:
[0022] S01), CPU0 is turned on and initialized, and determines whether to start acquisition. If yes, execute step S02);
[0023] S02), determine whether the segment FIFO is full, if so, execute step S03);
[0024] S03), collect 2KB data and write it into the buffer pool, and determine whether the buffer pool is full. If so, set a flag in the on-chip SRAM and switch the buffer pool. After receiving the flag indicating that the buffer pool is full, CPU1 calls the FatFS driver and writes the corresponding chip file of the SD card;
[0025] S04) Determine whether all chips have completed the collection. If yes, check the quality of random numbers in the SD card, count and display the results.
[0026] Beneficial effects of the present invention: The present invention adopts a separate design, which can place the chip under test in a harsh temperature and humidity environment, and provide voltage bias conditions. Under the above conditions, the reliability of the device's continuous and parallel data collection can be self-proven, and it can further continuously collect and store the output data of multiple random number chips, and perform quality analysis. By automatically analyzing the data quality, and then evaluating the noise entropy quality of the random number chip, automatic and efficient random number chip testing and screening can be achieved. The present invention can eliminate the interference of environmental factors, replace expensive high-speed data acquisition equipment such as high-precision oscilloscopes and logic analyzers, and reduce testing risks and costs. The device has significant advantages in efficiency, economy, applicability and safety, and is suitable for the research and development, design, analysis and calibration of random number modules (chips), and has broad application prospects. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 is a schematic diagram of the usage scenario and connection method of the system described in Example 1;
[0028] Figure 2 is a functional block diagram of the system described in Example 1;
[0029] Figure 3 This is the principle block diagram of the acquisition unit;
[0030] Figure 4 This is the principle block diagram of the self-test unit;
[0031] Figure 5 This is a schematic diagram of the acquisition unit data flow and dual-core synchronization mechanism.
[0032] Figure 6 It is the working flow chart of the control unit;
[0033] In the figure: 1. Test device, 2. Chip under test, 3. Chip carrier board, 4. High and low temperature chamber. DETAILED DESCRIPTION
[0034] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.
[0035] Example 1
[0036] This embodiment discloses a system for continuously collecting and analyzing the quality of random number chips, including a chip under test 2 and a test device 1, such as Figure 1As shown, multiple chips 2 to be tested are placed in the Socket slot of the wafer carrier board 3, and the wafer carrier board 3 is placed in the high and low temperature box 4. The test device 1 is located outside the high and low temperature box 4, that is, in a normal temperature environment. The test device 1 is connected to the chip 2 to be tested through a shielded cable. The test device 1 supports the real-time acquisition requirements of 8 channels / chips of random number chips at the same time. The test device 1 is powered by a power adapter. By setting a high and low temperature box controller, the temperature and humidity of the high and low temperature experimental box are adjusted to construct a high temperature and low temperature test environment.
[0037] In this embodiment, the test device 1 can provide 3.3V voltage for the wafer carrier 3 and the chip under test 2, and can also be switched to a DC power supply through a jumper. The DC power supply has voltage regulation capability and is used to construct a voltage bias test environment such as high voltage and low voltage. That is, the chip under test can be supplied with voltage sources of different sizes.
[0038] like Figure 2 As shown in the figure, the test device includes an acquisition unit (in the figure and below, it is marked with TRNG Gather), a control unit, an analysis unit, a storage unit, and a self-test unit. The storage unit includes DDR and SD card. DDR is a hardware structure for building a buffer pool, which is used to temporarily store the data collected by the acquisition unit; the SD card is used as a FatFS file system storage module for long-term storage of a large amount of collected data for randomness analysis. The control unit uses ZYNQ FPGA hardware and adopts a dual-core asymmetric architecture. The random number module (chip) is installed on the socket of the carrier daughter board. CPU0 controls the TRNG Gather module to collect the socket output data and stores the data in the buffer pool on the DDR. CPU1 loads the FatFS file system, identifies and initializes the SD card through the SDIO interface, and stores the valid data in the buffer pool in the form of a binary file in the SD card. The file is named according to the socket position. According to the device settings, the collected data is accumulated and appended to the file on the specified socket. The buffer pool status is controlled by the on-chip SRAM, and CPU0 and CPU1 jointly manage the SRAM space.
[0039] like Figure 3As shown, the acquisition unit TRNG Gather includes 8 acquisition modules, segmented FIFO and registers. The 8 acquisition modules are connected to 8 chips under test, which are used to detect and collect random numbers generated by the chips under test. Multiple acquisition modules are connected to the segmented FIFO to transmit the collected random numbers to the segmented FIFO. The segmented FIFO is controlled by the acquisition module and temporarily stores the collected data of each acquisition module through the address; the segmented FIFO and the register are connected to the control unit. The register is the control and feedback module of TRNGGather, which is controlled by CPU0 and feedback is given according to the state of TRNG Gather, that is, CPU0 controls the register of TRNG_Gather, and the register feeds back the state of TRNG_Gather in real time.
[0040] In this embodiment, each acquisition module is connected using a two-wire SIO interface, which includes a clock interface RNG_CLK and a data interface RNG_BIT. The clock interface RNG_CLK is a bidirectional interface with the ability to output and receive clocks, and the data interface RNG_BIT is a unidirectional input interface with the ability to acquire the chip under test. The acquisition module stores the input into a segmented FIFO according to the acquisition timing. The two-wire SIO interface supports two transmission modes, active and passive. The active transmission mode refers to the acquisition unit providing a clock, the chip under test generating data, and the acquisition unit actively acquiring. The passive transmission mode refers to the chip under test generating clocks and data, and the acquisition unit passively acquiring.
[0041] The two-wire SIO interface supports four sampling timings, including: idle high level, rising edge sampling and falling edge latching; idle high level, falling edge sampling and rising edge latching; idle low level, rising edge sampling and falling edge latching; idle low level, falling edge sampling and rising edge latching.
[0042] In this embodiment, the segmented FIFO includes an internal cache space and an AXI slave interface. The internal cache space adopts a fixed address allocation, a single-channel 32KB group, each group has a CRC accumulation check function, and the AXI interface is connected to CPU0. In this embodiment, the segmented FIFO supports 8 input and output interfaces, and each acquisition module is divided according to the 32KB boundary. CPU0 reads the corresponding acquisition module acquisition data through the AXI Slave1 interface. CPU0 controls and reads registers through the AXI Slave0 interface. The acquisition unit supports 1-8 inputs, and the maximum single-channel sampling rate is 100Mbps. CPU0 controls the register of TRNG_Gather, and the register feeds back the status of TRNG_Gather in real time. The maximum total sampling rate is 400Mbps.
[0043] like Figure 4As shown, the self-test unit includes a pseudo-random number generator connected to CPU0 and the acquisition unit respectively. The pseudo-random number generator has a communication rate and interface timing consistent with the chip under test. The pseudo-random number generator is used to generate an excitation signal under the target test conditions and perform a CRC check to verify the test environment of the test device, the transmission connection, and the functional validity of the SD card.
[0044] Specifically, in order to verify the reliability of the device, an 8-channel pseudo-random number generator is designed, and the device self-test function is performed by connecting the pseudo-random generator and the TRNG Gather external loopback. The output interface of the pseudo-random generator is PRNG_CLK and PRNG_OUT, which simulates the timing of the random number module (chip) and can provide an interface output speed of 1Mbps~100Mbps.
[0045] The pseudo-random number module is controlled by CPU0, and the output data is output in a cycle of [0x000000, 0xFFFFFF]. The pseudo-random number has an output CRC check function, and performs cumulative check calculations on all output data.
[0046] The acquisition module simultaneously acquires 8 inputs according to the output of the pseudo-random generator, performs input CRC check on each output, and temporarily stores the acquired data in the FIFO.
[0047] After collecting data of the specified length, the pseudo-random generator output function is stopped, and CPU0 compares the output CRC and input CRC to see if they are consistent, and confirms whether the connection and collection environment are reliable.
[0048] Read the random data binary file stored in the SD card, calculate the CRC checksum, compare the calculated CRC and the input / output CRC to see if they are consistent, and confirm whether the SD card connection and the SD card are reliable.
[0049] like Figure 5 As shown, the control unit in this embodiment uses ZYNQ FPGA hardware, adopts a dual-core asymmetric architecture, including CPU0, CPU1 and on-chip SRAM. CPU0 is the main control unit, which is connected to the segmented FIFO and registers, and is used to collect and cache multiple random number inputs in real time, set collection parameters, and manage collection modules; CPU1 is the auxiliary control unit, which is connected to the SD card and is used to store the collected random numbers in the SD card. CPU0 and CPU1 share the on-chip SRAM and DDR, and the DDR is divided into multiple buffers, which constitute a circular buffer pool. The on-chip SRAM stores the status of the circular buffer pool, and CPU0 writes data to the circular buffer pool, and CPU1 reads data from the circular buffer pool.
[0050] This embodiment takes the input of a single random number module (chip) as an example. The buffer area is grouped according to 1MB. Multiple buffers logically constitute a circular buffer pool. Each circular buffer pool structure is exclusively used by a designated acquisition module. The state of the circular buffer pool has a corresponding relationship in the on-chip SRAM. CPU0 and CPU1 share the on-chip SRAM state and occupy or release the circular buffer pool according to the interactive protocol to achieve time-sharing multiplexing and continuous acquisition storage.
[0051] When working, CPU0 inputs the collected data into the circular buffer pool, and CPU1 stores the collected data from the circular buffer pool to the SD card. CPU1 loads the FatFS file system and controls the SDIO interface to continuously append the circular buffer pool data to the corresponding binary file in the SD card until the preset data volume is collected.
[0052] Each buffer includes two states: ready state and idle state. The corresponding state identifier is set in the on-chip SRAM. By default, all buffers are in idle state. When working, CPU0 finishes writing data to the buffer, CPU1 reads data from the buffer, and the buffer is in ready state. CPU0 has not finished writing data to the buffer, but CPU1 has finished reading data, and the buffer is in idle state; when the corresponding buffer in the on-chip SRAM is in idle state, CPU0 can write, and CPU1 is prohibited from reading. CPU0 detects the segmented FIFO state in the acquisition unit. When the segmented FIFO reaches the threshold, the corresponding address FIFO data is read and written into the buffer. When the buffer data is full, the buffer is set to ready state; when the corresponding buffer in the on-chip SRAM is in ready state, CPU0 is prohibited from writing, and CPU1 can read. CPU1 reads 1MB of data from the buffer at one time and writes it to the SD card. After the SD write is completed, the buffer is set to idle state.
[0053] like Figure 6 As shown, the process of data control by the control unit is:
[0054] S01), CPU0 is turned on and initialized, and determines whether to start acquisition. If yes, execute step S02);
[0055] S02), determine whether the segment FIFO is full, if so, execute step S03);
[0056] S03), collect 2KB data and write it into the buffer pool, and determine whether the buffer pool is full. If so, set a flag in the on-chip SRAM and switch the buffer pool. After receiving the flag indicating that the buffer pool is full, CPU1 calls the FatFS driver and writes the corresponding chip file of the SD card;
[0057] S04) Determine whether all chips have completed the collection. If yes, check the quality of random numbers in the SD card, count and display the results.
[0058] During this process, the device has multiple indicator lights to indicate the working status of the device. After all random number modules (chips) are collected, CPU1 loads the randomness detection and analysis program, which includes: single-bit detection, poker detection, frequency detection, repeatability detection, run detection, binary derivation and other test standards required by "GMT 0005-2021 Randomness Detection Specification" and "NISTSP-800-90B". After the analysis is completed, the indicator light shows whether the random number module (chip) meets the requirements, and the test results are stored in the SD card.
[0059] The test device described in this embodiment supports the function of random number on-site analysis. According to the "GMT 0005-2021 Randomness Detection Specification" and "NIST SP-800-90B" test standards, a randomness analysis program is designed. After the data collection is completed, CPU1 loads the randomness analysis program, reads the random data stored in the SD card, and analyzes and counts the quality of the random number module (chip) noise source. If the test result is higher than the standard, the quality of the random number module (chip) is qualified; if it is lower than the standard, the quality of the random number module (chip) is unqualified. The device gives an alarm prompt.
[0060] The above description is only the basic principle and preferred embodiments of the present invention. Improvements and substitutions made by those skilled in the art based on the present invention belong to the protection scope of the present invention.
Claims
1. A system for continuously collecting and analyzing the quality of random number chips, characterized by: It includes a chip under test and a test device. The chip under test is located in a high and low temperature box, and the test device is located outside the high and low temperature box. The test device is connected to the chip under test through a shielded cable, and a power supply is provided to provide different test voltages for the chip under test. The test device includes an acquisition unit, a control unit, an analysis unit, a storage unit and a self-test unit. The storage unit includes a DDR and an SD card. The acquisition unit includes an acquisition module, a segmented FIFO and a register. There are multiple acquisition modules. Each acquisition module is connected to a chip under test and is used to acquire random numbers generated by the chip under test. Multiple acquisition modules are connected to the segmented FIFO and are used to transmit the acquired random numbers to the segmented FIFO. The segmented FIFO and the register are connected to the control unit. The control unit adopts a dual-core asymmetric architecture, including CPU0, CPU1 and on-chip SRAM. CPU0 is the main control unit. CPU0 is connected to the segmented FIFO and registers to collect and cache multiple random number inputs in real time, set collection parameters, and manage collection modules. CPU1 is an auxiliary control unit, which is connected to the SD card and is used to store the collected random numbers into the SD card; CPU0 and CPU1 share the on-chip SRAM and DDR. The DDR is divided into multiple buffers, which form a circular buffer pool. The on-chip SRAM stores the state of the circular buffer pool. CPU0 writes data to the circular buffer pool, and CPU1 reads data from the circular buffer pool. The analysis unit analyzes the random numbers in the SD card to screen and verify the entropy source quality of the random number chip; the self-test unit includes a pseudo-random number generator connected to CPU0 and the acquisition unit respectively, the pseudo-random number generator has a communication rate and interface timing consistent with the chip under test, and the pseudo-random number generator is used to generate an excitation signal under the target test conditions and perform CRC verification to verify the test environment of the test device, the transmission connection and the functional validity of the SD card.
2. The system for continuously collecting and analyzing the quality of random number chips according to claim 1, characterized in that: The pseudo-random number generator is controlled by CPU0 to generate pseudo-random numbers and perform output CRC verification. The acquisition module collects the pseudo-random numbers generated by the pseudo-random number generator and performs input CRC verification. After collecting data of a specified length, the pseudo-random number generator output function is stopped. CPU0 compares the output CRC and input CRC to see if they are consistent, and confirms whether the connection and acquisition environment are reliable; reads the random data binary file stored in the SD card, calculates the CRC checksum, compares the calculated CRC and the input / output CRC to see if they are consistent, and confirms whether the SD card connection and the SD card are reliable.
3. The system for continuously collecting and analyzing the quality of random number chips according to claim 1, characterized in that: The acquisition unit and the chip under test are connected through a two-wire SIO interface. The two-wire SIO interface includes a clock interface RNG_CLK and a data interface RNG_BIT. The clock interface RNG_CLK is a bidirectional interface with the ability to output and receive clocks. The data interface RNG_BIT is a unidirectional input interface with the ability to acquire data from the chip under test. The two-wire SIO interface supports both active and passive transmission modes. The active transmission mode refers to that the acquisition unit provides the clock, the chip under test generates data, and the acquisition unit actively acquires data. The passive transmission mode refers to that the chip under test generates clock and data, and the acquisition unit passively acquires data.
4. The system for continuously collecting and analyzing the quality of random number chips according to claim 3, characterized in that: The two-wire SIO interface supports four sampling timings, including: idle high level, rising edge sampling and falling edge latching; idle high level, falling edge sampling and rising edge latching; idle low level, rising edge sampling and falling edge latching; idle low level, falling edge sampling and rising edge latching.
5. The system for continuously collecting and analyzing the quality of random number chips according to claim 1, characterized in that: The segmented FIFO includes an internal cache space and an AXI slave interface. The internal cache space uses fixed address allocation, single-channel 32KB grouping, each group has a CRC accumulation check function, and the AXI interface is connected to CPU0.
6. The system for continuously collecting and analyzing the quality of random number chips according to claim 1, characterized in that: Multiple circular buffers are designed for each input channel, and the circular buffers are used in parallel in a circular manner.
7. The system for continuously collecting and analyzing the quality of random number chips according to claim 1, characterized in that: Each buffer includes two states: ready state and idle state. The corresponding state identifier is set in the on-chip SRAM. By default, all buffers are in the idle state. When working, CPU0 finishes writing data to the buffer, CPU1 reads data from the buffer, and the buffer is in the ready state. CPU0 has not finished writing data to the buffer, CPU1 has finished reading data, and the buffer is in the idle state. When the corresponding buffer in the on-chip SRAM is in the idle state, CPU0 can write, CPU1 is prohibited from reading, CPU0 detects the segmented FIFO state in the acquisition unit, when the segmented FIFO reaches the threshold, reads the corresponding address FIFO data and writes it into the buffer, when the buffer data is full, the buffer is set to the ready state; when the corresponding buffer in the on-chip SRAM is in the ready state, CPU0 is prohibited from writing, CPU1 can read, CPU1 reads 1MB of data from the buffer at one time and writes it to the SD card, after the SD write is completed, the buffer is set to the idle state.
8. The system for continuously collecting and analyzing the quality of random number chips according to claim 1, characterized in that: CPU1 is connected to the SD card through the SDIO module. CPU1 loads the FatFS file system, identifies and initializes the SD card through the SDIO interface, and stores the valid data in the buffer pool in the form of a binary file to the SD card.
9. The system for continuously collecting and analyzing the quality of random number chips according to claim 1, characterized in that: The acquisition unit supports 1-8 input channels, with a maximum single-channel sampling rate of 100Mbps and a maximum total sampling rate of 400Mbps.
10. The system for continuously collecting and analyzing the quality of random number chips according to claim 1, characterized in that: The process of data control by the control unit is as follows: S01), CPU0 is turned on and initialized, and determines whether to start acquisition. If yes, execute step S02); S02), determine whether the segment FIFO is full, if so, execute step S03); S03), collect 2KB data and write it into the buffer pool, and determine whether the buffer pool is full. If so, set a flag in the on-chip SRAM and switch the buffer pool. After receiving the flag indicating that the buffer pool is full, CPU1 calls the FatFS driver and writes the corresponding chip file of the SD card; S04) Determine whether all chips have completed the collection. If yes, check the quality of random numbers in the SD card, count and display the results.
