Secure storage unit test system
By setting up encryption and decryption units in the test machine and chip to process test sequences and data, the problem of difficult data security during chip manufacturing is solved, and effective protection of chip data is achieved.
Patent Information
- Application Number
- CN202420477320.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-12
- Publication Date
- 2024-11-01
- Estimated Expiration
- Not applicable · inactive patent
Smart Images

Figure CN221946797U_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of chip information security technology, and in particular to a security storage unit testing system. Background Art
[0002] In the process of generating and manufacturing chips, embedded chips with storage units need to be tested to screen out chips with manufacturing defects. The test process is as follows: the machine sends a digital waveform sequence to a specific pin of the chip being tested; the chip outputs a digital waveform through other specific pins to represent the content of the storage unit; the machine compares the digital waveform output by the chip to see if it meets expectations to confirm whether there are manufacturing defects in the storage unit in the chip. However, since the digital waveform sequence input by chips of the same model is exactly the same, and the production and manufacturing process involves many operators from many companies. When the digital waveform sequence is recorded by the operator using an instrument and sent to an unauthorized environment, the data in the storage unit of all chips of this model will be illegally read out. Utility Model Content
[0003] In view of this, the present application proposes a safety storage unit testing system to solve the above problems.
[0004] According to one aspect of the present application, a secure storage unit testing system is provided, comprising: a testing machine, a chip, a first encryption unit and a first decryption unit; the testing machine is electrically connected to the chip through the first encryption unit, and the testing machine is electrically connected to the chip through the first decryption unit; an output sequence module and a comparison value module are arranged inside the testing machine; the output sequence module is electrically connected to the first encryption unit, and the comparison value module is electrically connected to the first decryption unit; a memory, a second encryption unit and a second decryption unit are arranged inside the chip, the memory is electrically connected to the second encryption unit, and the memory is electrically connected to the second decryption unit; the first encryption unit is electrically connected to the second decryption unit, and the first decryption unit is electrically connected to the second encryption unit; the first encryption unit matches the second decryption unit, and the first decryption unit matches the second encryption unit.
[0005] In a possible implementation, the output end of the first encryption unit is electrically connected to the input end of the second decryption unit, and the input end of the first decryption unit is electrically connected to the output end of the second encryption unit.
[0006] In a possible implementation, an output end of the output sequence module is electrically connected to an input end of the first encryption unit, and an input end of the comparison value module is electrically connected to an output end of the first decryption unit.
[0007] In a possible implementation manner, the output end of the memory is electrically connected to the input end of the second encryption unit, and the output end of the second decryption unit is electrically connected to the input end of the memory.
[0008] In one possible implementation, the second encryption unit in the chip of the same model is electrically connected to the first decryption unit in the corresponding authorized test machine in a one-to-one correspondence, and the second decryption unit in the chip of the same model is electrically connected to the first encryption unit in the corresponding authorized test machine in a one-to-one correspondence.
[0009] In a possible implementation, the chip further has a CPU processor, a PMU power management unit, a counter, a reset circuit, a clock circuit, communication peripherals, an analog ADC, an IO port, an analog comparator and a reference voltage.
[0010] Beneficial effects of this application:
[0011] The security storage unit test system proposed in the present application adds a first encryption unit and a first decryption unit inside the test machine; adds a second encryption unit and a second decryption unit inside the chip; so that the waveform sequence of a chip recorded by the operator in the production and manufacturing process cannot be used for another chip, thereby protecting the storage information in the chip. Specifically, the plaintext test sequence sent by the test machine is encrypted by the first encryption unit to generate a ciphertext test sequence; the ciphertext test sequence received by the tested chip is decrypted by the second decryption unit and restored to a plaintext test sequence and transmitted to the memory; after receiving the plaintext test sequence, the memory outputs the plaintext data sequence in the memory; the plaintext data sequence is encrypted by the second encryption unit to generate a ciphertext data sequence and transmitted to the first decryption unit; the first decryption unit decrypts the ciphertext data sequence and generates a plaintext data sequence; the test machine compares the data of the plaintext data sequence to detect whether there are manufacturing defects in the storage unit in the tested chip.
[0012] Other features and aspects of the present application will become apparent from the following detailed description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate exemplary embodiments, features, and aspects of the present application and, together with the description, serve to explain the principles of the present application.
[0014] Figure 1 A schematic diagram showing the principle of a safety storage unit testing system according to an embodiment of the present application;
[0015] Figure 2 A chip architecture diagram of a secure storage unit testing system according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0016] Various exemplary embodiments, features and aspects of the present application will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.
[0017] Among them, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application or simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.
[0018] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0019] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.
[0020] In addition, in order to better illustrate the present application, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present application can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present application.
[0021] Figure 1 A schematic diagram showing the principle of a safety storage unit testing system according to an embodiment of the present application; Figure 2 The chip architecture diagram of the secure storage unit test system according to the embodiment of the present application is shown. Figure 1 and Figure 2As shown, the security storage unit test system includes: a test machine 100, a chip 200, a first encryption unit 300 and a first decryption unit 400; the test machine 100 is electrically connected to the chip 200 through the first encryption unit 300, and the test machine 100 is electrically connected to the chip 200 through the first decryption unit 400; an output sequence module 110 and a comparison value module 120 are arranged inside the test machine 100; the output sequence module 110 is electrically connected to the first encryption unit 300, and the comparison value module 120 is electrically connected to the first decryption unit 400 is electrically connected; the chip 200 is internally provided with a memory 210, a second encryption unit 220 and a second decryption unit 230, the memory 210 is electrically connected to the second encryption unit 220, and the memory 210 is electrically connected to the second decryption unit 230; the first encryption unit 300 is electrically connected to the second decryption unit 230, and the first decryption unit 400 is electrically connected to the second encryption unit 220; the first encryption unit 300 matches the second decryption unit 230, and the first decryption unit 400 matches the second encryption unit 220.
[0022] The security storage unit test system proposed in this embodiment adds a first encryption unit 300 and a first decryption unit 400 inside the test machine 100; adds a second encryption unit 220 and a second decryption unit 230 inside the chip 200; so that the waveform sequence of a chip 200 recorded by the operator in the production process cannot be used for another chip 200, thereby protecting the storage information in the chip 200. Specifically, the plaintext test sequence sent by the test machine 100 is encrypted by the first encryption unit 300 to generate a ciphertext test sequence; the ciphertext test sequence received by the tested chip is decrypted by the second decryption unit 230 and restored to a plaintext test sequence and transmitted to the memory; after receiving the plaintext test sequence, the memory outputs the plaintext data sequence in the memory; the plaintext data sequence is encrypted by the second encryption unit 220 to generate a ciphertext data sequence and transmitted to the first decryption unit 400; the first decryption unit 400 decrypts the ciphertext data sequence and generates a plaintext data sequence; the test machine 100 compares the data of the plaintext data sequence to detect whether there is a manufacturing defect in the storage unit in the tested chip. It should also be noted that the first encryption unit 300, the first decryption unit 400, the second encryption unit 220 and the second decryption unit 230 may adopt but are not limited to commonly used cryptographic algorithms, such as the DES algorithm, the AES algorithm and the SM7 algorithm.
[0023] In addition, it should be noted that the software parts involved in this application can all be implemented through existing technologies, so they will not be described in detail in this application.
[0024] In one specific embodiment, the output end of the first encryption unit 300 is electrically connected to the input end of the second decryption unit, and the input end of the first decryption unit is electrically connected to the output end of the second encryption unit 220 .
[0025] In one specific embodiment, the output end of the output sequence module 110 is electrically connected to the input end of the first encryption unit 300 , and the input end of the comparison value module 120 is electrically connected to the output end of the first decryption unit 400 .
[0026] In one specific embodiment, the output end of the memory is electrically connected to the input end of the second encryption unit 220, and the output end of the second decryption unit 230 is electrically connected to the input end of the memory.
[0027] In summary, it should be noted that in the process of testing the chip 200, the output sequence module 110 of the test machine 100 first sends out a digital waveform sequence, and the waveform sequence is processed from the plaintext sequence by the first encryption unit 300 inside the test machine 100 to form a ciphertext digital sequence that cannot be checked by the operator; the ciphertext numerical sequence is processed by the second decryption unit 230 of the chip under test to obtain a corresponding plaintext digital sequence; the plaintext digital sequence is transmitted to the memory of the chip to be tested 200, and the memory receives the plaintext test sequence sent by the test machine 100, and then outputs the plaintext data sequence in the memory; the second encryption unit 220 encrypts the plaintext data sequence in the memory and converts it into a ciphertext data sequence, and transmits the ciphertext data sequence of the memory to the test machine 100; the first decryption unit 400 decrypts the ciphertext data sequence of the memory to obtain the plaintext sequence transmitted by the memory; the test machine 100 compares the data of the plaintext data sequence to detect whether there are manufacturing defects in the storage unit in the chip under test. Since the first encryption unit 300 and the first decryption unit 400 are both arranged inside the test machine 100, and the second encryption unit 220 and the second decryption unit 230 are both arranged inside the chip 200, the data of the memory in the tested chip 200 cannot be known by the operator during the testing process, thereby preventing outsiders from illegally stealing valid information for transmission.
[0028] In one specific embodiment, the second encryption unit 220 in the chip 200 of the same type is electrically connected to the first decryption unit 400 in the corresponding authorized test machine 100 in a one-to-one correspondence, and the second decryption unit 230 in the chip 200 of the same type is electrically connected to the first encryption unit 300 of the corresponding authorized test machine 100 in a one-to-one correspondence. In this embodiment, it should be noted that the digital waveform sequence input by the existing chip 200 of the same type is exactly the same, and many operators of many companies will be involved in the production and manufacturing process. When the digital waveform sequence is recorded by the operator using an instrument and sent to an unauthorized environment, all data in the storage unit of the chip 200 of this model can be illegally read out. In the secure storage unit test system of the present application, the corresponding second encryption unit 220 and the second decryption unit 230 are set for the same type of chip under test, and the corresponding first encryption unit 300 and the first decryption unit 400 are set for the test machine 100 required by the same type of chip under test. When the test machine 100 tests the data in the memory of the chip under test, the information leakage is effectively avoided. Even if the operator in the manufacturing link records the test waveform sequence of one chip 200, it cannot be used for another chip 200. At the same time, unauthorized equipment will not be able to read the data in the memory of other chips 200 of the same model, so that the data in the memory of the chip 200 is further protected.
[0029] In one specific embodiment, the chip 200 also has a CPU processor, a PMU power management unit, a counter, a reset circuit, a clock circuit, a communication peripheral, an analog ADC, an IO port, an analog comparator and a reference voltage. In this embodiment, it should be noted that it is not limited to the general MCU architecture shown in this patent, and can include any MCU with a CPU, an ASIC, an MPU in the form of an integrated circuit.
[0030] It should be noted that although the present application is used as an example to introduce the safety storage unit test system as above, those skilled in the art will appreciate that the present application should not be limited thereto. In fact, the user can flexibly set it according to personal preferences and / or actual application scenarios, as long as it is reasonable.
[0031] Various embodiments of the present application have been described, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A safety storage unit testing system, characterized in that: include: A test machine, a chip, a first encryption unit and a first decryption unit; The test machine is electrically connected to the chip via the first encryption unit, and the test machine is electrically connected to the chip via the first decryption unit; The test machine is provided with an output sequence module and a comparison value module inside; the output sequence module is electrically connected to the first encryption unit, and the comparison value module is electrically connected to the first decryption unit; The chip is provided with a memory, a second encryption unit and a second decryption unit inside. The memory is electrically connected to the second encryption unit, and the memory is electrically connected to the second decryption unit; the first encryption unit is electrically connected to the second decryption unit, and the first decryption unit is electrically connected to the second encryption unit; the first encryption unit matches the second decryption unit, and the first decryption unit matches the second encryption unit.
2. The safety storage unit testing system according to claim 1, characterized in that: The output end of the first encryption unit is electrically connected to the input end of the second decryption unit, and the input end of the first decryption unit is electrically connected to the output end of the second encryption unit.
3. The safety storage unit testing system according to claim 1, characterized in that: The output end of the output sequence module is electrically connected to the input end of the first encryption unit, and the input end of the comparison value module is electrically connected to the output end of the first decryption unit.
4. The safety storage unit testing system according to claim 1, characterized in that: The output end of the memory is electrically connected to the input end of the second encryption unit, and the output end of the second decryption unit is electrically connected to the input end of the memory.
5. The safety storage unit testing system according to claim 1, characterized in that: The second encryption unit in the chip of the same model is electrically connected to the first decryption unit in the corresponding authorized test machine in a one-to-one correspondence, and the second decryption unit in the chip of the same model is electrically connected to the first encryption unit in the corresponding authorized test machine in a one-to-one correspondence.
6. The safety storage unit testing system according to claim 1, characterized in that: The chip also has a CPU processor, a PMU power management unit, a counter, a reset circuit, a clock circuit, a communication peripheral, an analog ADC, an IO port, an analog comparator and a reference voltage.
