A chip simulation system
By using the direct communication between the host computer and the chip to be simulated and the high-speed serial-to-parallel conversion module in the chip simulation system, single-step, full-speed operation and interrupt simulation are realized, which solves the inconvenience caused by traditional EV chips and reduces the cost of the chip simulation system. type and improve user experience.
Patent Information
- Application Number
- CN202210122480.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-08-10
- Filing Date
- 2022-02-09
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2042-02-09
AI Technical Summary
In the existing technology, chip companies need to provide multiple EV chips for different types of chips, which makes the use, maintenance and management of the chip simulation system inconvenient, and the user experience is not good.
A chip simulation system is adopted. The system communicates with the chip to be simulated through the host computer, runs the simulation program, and realizes single-step, full-speed operation and interrupt simulation without writing into the chip memory. It uses high-speed serial-to-parallel conversion modules and multiplexing ports. Data transfer is performed, bypassing the original data path of the memory and processor modules.
It significantly reduces the types of chip simulation systems, eliminates the use of traditional EV chips, uses powerful computing devices to achieve multiple simulations, and improves user experience and management convenience.
Smart Images

Figure CN114492261B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of chips, and in particular relates to a chip simulation system. Background Art
[0002] In the chip field, when chip companies deliver chips to users, they often also provide EV chips so that users can simulate the functions of the delivered chips through the EV chips.
[0003] However, the chips provided by chip companies to the same or different users often include multiple different models. In the prior art, typically, a corresponding EV chip is provided for each different model of chip to simulate the chip of that model. This requires chip companies to provide enough different models of EV chips and even chip simulation systems, which further makes it inconvenient for chip companies and users to use, maintain and manage, and the experience is very bad.
[0004] The field is in urgent need of a chip simulation system that breaks away from traditional EV chips. Summary of the invention
[0005] In view of this, the present invention proposes a solution to eliminate the need for EV chips. To this end, the present invention discloses a chip simulation system, which is characterized by:
[0006] The chip simulation system is exempt from EV chip;
[0007] The chip simulation system comprises: a host computer, and a chip to be simulated connected to the host computer;
[0008] in,
[0009] The chip simulation system realizes the following three simulations of the chip to be simulated: single-step, full-speed operation, and interruption through the communication between the host computer and the chip to be simulated and the operation of the simulation program by the host computer.
[0010] Preferably,
[0011] During the three simulation processes, the simulation program does not need to be written into the memory of the chip to be simulated.
[0012] Preferably,
[0013] During the three simulation processes, the host computer transmits the simulation program to the processor module in the chip to be simulated.
[0014] Preferably,
[0015] Each time the host computer sends an instruction to the processor module in the chip to be simulated, and each time the processor module executes the instruction, the following simulation is implemented: single step.
[0016] Preferably,
[0017] Breakpoints are set for the simulation program in the host computer. Whenever the host computer sends instructions to the processor module in the chip to be simulated, when the breakpoint is reached by executing step by step, the processor module implements the following simulation: interruption.
[0018] Preferably,
[0019] The chip to be simulated further includes: a high-speed serial-to-parallel conversion module;
[0020] Wherein, the speed of the high-speed serial-to-parallel conversion module is higher than the speed of the memory in the chip to be simulated;
[0021] All instructions that need to be run at full speed for simulation are transmitted to the high-speed serial-to-parallel conversion module in a serial manner through the host computer, and finally temporarily stored in the high-speed serial-to-parallel conversion module in a parallel manner;
[0022] The high-speed serial-to-parallel conversion module sends all instructions of the full-speed operation simulation to the processor module at one time and continuously, so that the processor module implements the following simulation: full-speed operation.
[0023] Preferably,
[0024] The host computer is connected to the processor module of the chip to be simulated through two ports in the chip to be simulated.
[0025] Preferably,
[0026] For the memory in the chip to be simulated and the processor module in the chip to be simulated, the host computer bypasses the data transmission path of the memory and the processor module, thereby realizing the communication between the host computer and the chip to be simulated.
[0027] Preferably,
[0028] The memory is an OTP memory.
[0029] Preferably,
[0030] The two ports are multiplexed ports.
[0031] The present invention has the following technical effects:
[0032] Through the above scheme, the present invention achieves the purpose of significantly reducing the types of chip simulation systems, not only eliminating the use of traditional EV chips, but also facilitating the use of a host computer, such as a PC, an industrial computer and other powerful computing devices, to achieve three types of simulations for the chip to be simulated: single-step, full-speed operation, and interrupt (also called breakpoint). Even, by using the powerful computing power and rich IO interfaces of the host computer, multiple chips can be simulated at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0034] Figure 1 It is a schematic diagram of the structure of the chip simulation system in one embodiment of the present invention. DETAILED DESCRIPTION
[0035] To make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the following will be combined with the appended drawings of the embodiments of the present invention. Figure 1 , the technical solutions in the embodiments of the present invention are clearly and completely described. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings herein can be arranged and designed in various different configurations.
[0036] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0037] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0038] In the description of the present invention, it should be noted that if the terms "upper", "lower", "inside", "outside", etc. appear to indicate an orientation or position relationship, they are based on the orientation or position relationship shown in the accompanying drawings, or are the orientation or position relationship in which the product of the invention is usually placed when used. They are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.
[0039] In addition, the terms “first”, “second”, etc., if used, are merely used to distinguish between the descriptions and should not be understood as indicating or implying relative importance.
[0040] It should be noted that, in the absence of conflict, the features in the embodiments of the present invention may be combined with each other.
[0041] See also Figure 1 In one embodiment, the present invention discloses a chip simulation system, characterized in that:
[0042] The chip simulation system is exempt from EV chip;
[0043] The chip simulation system comprises: a host computer, and a chip to be simulated connected to the host computer;
[0044] in,
[0045] The chip simulation system realizes the following three simulations of the chip to be simulated: single-step, full-speed operation, and interruption through the communication between the host computer and the chip to be simulated and the operation of the simulation program by the host computer.
[0046] The key to this embodiment is to cleverly abandon the traditional EV chip simulation scheme, directly establish communication between the host computer and the chip to be simulated, and thereby realize the chip simulation system. Through this embodiment, the present invention achieves the purpose of significantly reducing the types of chip simulation systems, not only eliminating the use of traditional EV chips, but also facilitating the use of a host computer, such as a PC, industrial computer and other powerful computing devices, to realize three types of simulations for the chip to be simulated: single-step, full-speed operation, and interrupt (also called breakpoint). Even, by utilizing the powerful computing power and rich IO interfaces of the host computer, multiple chips can be simulated at the same time.
[0047] In another embodiment,
[0048] During the three simulation processes, the simulation program does not need to be written into the memory of the chip to be simulated.
[0049] In another embodiment,
[0050] During the three simulation processes, the host computer transmits the simulation program to the processor module in the chip to be simulated.
[0051] In this way, the chip itself can simulate its processor module, and even simulate other modules of the chip itself, such as peripheral modules.
[0052] In another embodiment,
[0053] Each time the host computer sends an instruction to the processor module in the chip to be simulated, and each time the processor module executes the instruction, the following simulation is implemented: single step.
[0054] In another embodiment,
[0055] Breakpoints are set for the simulation program in the host computer. Whenever the host computer sends instructions to the processor module in the chip to be simulated, when the breakpoint is reached by executing step by step, the processor module implements the following simulation: interruption.
[0056] For the above-mentioned single-step and interrupt embodiments, it can be understood that this is a significant advantage of the present invention when using a host computer for simulation, and it can easily realize single-step and interrupt simulation by using the data transmission path between the host computer and the processor module in the chip to be simulated.
[0057] In another embodiment,
[0058] The chip to be simulated further includes: a high-speed serial-to-parallel conversion module;
[0059] Wherein, the speed of the high-speed serial-to-parallel conversion module is higher than the speed of the memory in the chip to be simulated;
[0060] All instructions that need to be run at full speed for simulation are transmitted to the high-speed serial-to-parallel conversion module in a serial manner through the host computer, and finally temporarily stored in the high-speed serial-to-parallel conversion module in a parallel manner;
[0061] The high-speed serial-to-parallel conversion module sends all instructions of the full-speed operation simulation to the processor module at one time and continuously, so that the processor module implements the following simulation: full-speed operation.
[0062] For this embodiment, its core embodies the contribution made by the present invention to the prior art. Compared with the two simulations of single-step and interrupt, how to cleverly design the implementation method of full-speed running simulation is the key to the present invention. The key to the problem is that the speed of the built-in memory in different types of chips may not be the same. Neither the built-in memory in the chip is used directly, but simulation is required to test the full-speed operation capability of the chip - for this reason, the inventor cleverly used the serial-to-parallel conversion module. The reason why it is high-speed, the relative concept of high speed, is precisely that the speed of the serial-to-parallel conversion module is higher than the speed of the memory in the chip to be simulated. How much higher, the threshold depends on the severity of the simulation and the design parameters of the chip. It can be understood that if the threshold is too high, the simulation loses its meaning, because it obviously exceeds the design parameters of the chip to be simulated, and is meaningless.
[0063] In another embodiment,
[0064] The host computer is connected to the processor module of the chip to be simulated through two ports in the chip to be simulated.
[0065] It can be understood that among the two ports, one port is used for serial input instructions (and / or data) to the processor module of the chip, and the other port can be used for interaction between the host computer and the chip to be simulated, such as feeding back certain information to the host computer.
[0066] In another embodiment,
[0067] For the memory in the chip to be simulated and the processor module in the chip to be simulated, the host computer bypasses the data transmission path of the memory and the processor module, thereby realizing the communication between the host computer and the chip to be simulated.
[0068] Obviously, this embodiment cleverly bypasses the path between the original memory and the processor module of the chip so that the chip simulation system of the present invention can fully utilize the path. To some extent, the path between the original memory and the processor module of the chip is reused.
[0069] In another embodiment,
[0070] The memory is an OTP memory.
[0071] In another embodiment,
[0072] The two ports are multiplexed ports.
[0073] In another embodiment,
[0074] When the chip simulation system is connected to multiple chips to be simulated, it selects a chip to be simulated through a selection signal. Preferably, the selection signal is generated by address decoding.
[0075] In another embodiment,
[0076] The chip simulation system repeatedly simulates the function of any module in multiple different types of chips by writing different simulation programs into the host computer for multiple times.
[0077] It can be understood that, typically, for OTP memory, only one write is supported due to cost considerations in the art, so the present embodiment and even the present invention can easily write different simulation programs multiple times through the host computer to repeatedly simulate: the function of any module in multiple different types of chips. After the simulation is completed, consider writing the program to the OTP memory in the real chip.
[0078] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A chip simulation system, characterized in that: The chip simulation system exempts the EV chip; The chip simulation system comprises: a host computer, and a chip to be simulated connected to the host computer; in, The chip simulation system realizes the following three simulations of the chip to be simulated: single-step, full-speed operation, and interruption through the communication between the host computer and the chip to be simulated and the operation of the simulation program by the host computer; in, During the three simulation processes, the simulation program does not need to be written into the memory in the chip to be simulated; in, During the three simulations, the host computer transmits the simulation program to the processor module in the chip to be simulated; in, Each time the host computer sends an instruction to the processor module in the chip to be simulated, and each time the processor module executes the instruction, the following simulation is implemented: single step; in, Breakpoints are set in the simulation program in the host computer, and whenever the host computer sends instructions to the processor module in the chip to be simulated, when the breakpoint is reached by executing step by step, the processor module implements the following simulation: interruption; in, The chip to be simulated further includes: a high-speed serial-to-parallel conversion module; Wherein, the speed of the high-speed serial-to-parallel conversion module is higher than the speed of the memory in the chip to be simulated; All instructions that need to be run at full speed for simulation are transmitted to the high-speed serial-to-parallel conversion module in a serial manner through the host computer, and finally temporarily stored in the high-speed serial-to-parallel conversion module in a parallel manner; The high-speed serial-to-parallel conversion module sends all instructions of the full-speed operation simulation to the processor module at one time and continuously, so that the processor module implements the following simulation: full-speed operation; in, The speed of the high-speed serial-to-parallel conversion module is higher than the speed of the memory in the chip to be simulated, and the threshold value of how much higher depends on the severity of the simulation and the design parameters of the chip; The memory is an OTP memory; different simulation programs can be easily written multiple times by the host computer to repeatedly simulate: the function of any module in multiple different types of chips. After the simulation is completed, consider writing the program into the OTP memory in the real chip.
2. The chip simulation system according to claim 1, wherein: The host computer is connected to the processor module of the chip to be simulated through two ports in the chip to be simulated.
3. The chip simulation system according to claim 1, wherein: For the memory in the chip to be simulated and the processor module in the chip to be simulated, the host computer bypasses the data transmission path of the memory and the processor module, thereby realizing the communication between the host computer and the chip to be simulated.
4. The chip simulation system according to claim 2, wherein: The two ports are multiplexed ports.
Citation Information
Patent Citations
Smart card emulator
CN101329650A
Microprocessor chip emulator and breakpoint setting method
CN101751323A
Reconfigurable 8-bit RSIC (reduced instruction set computer) SCM (Single Chip Microcomputer) simulator
CN104077204A
Automatic test platform for high-precision ADC measurement
CN105811981A
One-time programmable microcontroller debugging method based on flash memory
CN106354598A
