Simulation method and device and storage medium

By dividing the design under test into multiple sub-designs and running them in parallel on the same host, combined with communication envelope and memory copy technology, the problem of slow simulation speed is solved and fast simulation of logic system design is achieved.

CN118780220APending Publication Date: 2024-10-15XEPIC TECH (BEIJING) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310906681.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-04-07
Filing Date
2023-07-24
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

The design speed of existing simulation logic systems is slow, especially the simulation of large-scale designs may take hours or even days, resulting in low efficiency of the simulation process.

Method used

Divide the design under test into multiple sub-designs and run multiple simulators on the same host. Synchronize the sub-designs with the test bench by generating communication envelopes, and use memory copy for data interaction to accelerate the simulation process.

Benefits of technology

By dividing the design and running sub-designs in parallel, the simulation speed is significantly improved, data synchronization can be completed in every clock cycle, and the simulation time is significantly shortened.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118780220A_ABST
    Figure CN118780220A_ABST
Patent Text Reader

Abstract

The invention provides a method for simulating a logic system design. The logic system design comprises a to-be-tested design and a test board. The method comprises the following steps: segmenting the design to be tested into a plurality of sub-designs; generating a communication envelope according to the description of the design to be tested and the testboard, wherein the communication envelope comprises an interface connected to the plurality of sub-designs and an interface connected to the testboard; running the test bench and the communication envelope on a first emulator; respectively running the plurality of sub-designs in parallel on a plurality of second simulators, wherein the plurality of sub-designs are synchronized with the test bench through the communication envelope; and acquiring a simulation result of the logic system design from the first simulator.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer software technology, and in particular to a method, device and storage medium for simulating a logic system. Background Art

[0002] In the field of integrated circuit verification, simulation can refer to compiling a logic system design and then running it with a simulation tool to simulate and test various functions of the logic system design. The logic system design can be, for example, an integrated circuit (Application Specific Integrated Circuit, referred to as ASIC) or a system-on-chip (System-On-Chip, referred to as SOC) for a specific application. Therefore, the design that is tested or verified in the simulation can also be called the design under test (Design Under Test, referred to as DUT).

[0003] Since simulation uses a computer to simulate the operation of the DUT, it is naturally relatively slow. As the scale of logic system design (e.g., chip design) becomes larger and larger, the time required for simulation is also increasing. For example, the simulation of a large-scale design may take several hours or even days.

[0004] How to improve the speed of simulation is a technical problem that needs to be solved urgently in this field. Summary of the invention

[0005] The first aspect of the present application provides a method for simulating a logic system design, wherein the logic system design includes a design to be tested and a test bench. The method includes: dividing the design to be tested into multiple sub-designs; generating a first communication envelope according to the description of the design to be tested and the test bench, wherein the first communication envelope includes an interface connected to the multiple sub-designs and an interface connected to the test bench; running the test bench and the first communication envelope on a first simulator; running the multiple sub-designs in parallel on multiple second simulators, respectively, wherein the multiple sub-designs are synchronized with the test bench via the first communication envelope; and obtaining simulation results of the logic system design from the first simulator.

[0006] A second aspect of the present application provides an electronic device, comprising: a memory for storing a set of instructions; and at least one processor configured to execute the set of instructions so that the electronic device performs the method as described in the first aspect.

[0007] A third aspect of the present application provides a non-transitory computer-readable storage medium, which stores a set of instructions for a computer, and the set of instructions is used to cause the computer to perform the method as described in the first aspect when executed. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] In order to more clearly illustrate the technical solutions in the present application or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0009] Figure 1 A schematic structural diagram of an exemplary electronic device according to an embodiment of the present application is shown.

[0010] Figure 2 A schematic diagram of an exemplary simulation system according to an embodiment of the present application is shown.

[0011] Figure 3 A schematic diagram of an exemplary compiler according to an embodiment of the present application is shown.

[0012] Figure 4 A schematic diagram of a hybrid simulation according to an embodiment of the present application is shown.

[0013] Figure 5 A schematic diagram of another hybrid simulation according to an embodiment of the present application is shown.

[0014] Figure 6 A flow chart of a method for simulating logic system design according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0015] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0016] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in this application should be understood by people with ordinary skills in the field to which this application belongs. The words "first", "second" and similar words used in this application do not indicate any order, quantity or importance, but are only used to distinguish different components. "Including" and similar words mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect.

[0017] Traditional digital simulators generally use event-driven simulation, which is also the simulation method that best conforms to the programming habits of hardware description languages ​​(such as Verilog). Event-driven simulation can simulate events in each signal cycle and has the characteristics of high precision. At the same time, event-driven simulation has high computing power requirements and is slow.

[0018] Cycle-based simulators calculate the results of each cycle in units of clock cycles, which can achieve fast simulation. However, the details of the events that occur within a clock cycle are lost. At the same time, cycle-based simulators need to know the internal circuit structure of the design, so they are only suitable for synthesizable logic system designs.

[0019] The applicant of the present application has proposed multiple embodiments of the present application based on the above two types of simulations, which are used to accelerate the simulation of logic system design.

[0020] Figure 1 FIG. 1 shows a schematic diagram of the structure of a host 100 according to an embodiment of the present application. The host 100 may be an electronic device running a simulation system. Figure 1 As shown, the host 100 may include: a processor 102, a memory 104, a network interface 106, a peripheral interface 108 and a bus 110. The processor 102, the memory 104, the network interface 106 and the peripheral interface 108 are connected to each other through the bus 110 in communication with each other inside the electronic device.

[0021] Processor 102 may be a central processing unit (CPU), an image processor, a neural network processor (NPU), a microcontroller (MCU), a programmable logic device, a digital signal processor (DSP), an application specific integrated circuit (ASIC), or one or more integrated circuits. Processor 102 may be used to perform functions related to the technology described in this application. In some embodiments, processor 102 may also include multiple processors integrated into a single logical component. Figure 1 As shown, the processor 102 may include a plurality of processors 102a, 102b, and 102c.

[0022] The memory 104 may be configured to store data (eg, instruction sets, computer codes, intermediate data, etc.). In some embodiments, the simulation test system for simulation test design may be a computer program stored in the memory 104. Figure 1As shown, the data stored in the memory may include program instructions (e.g., program instructions for implementing the simulation method of the present application) and data to be processed (e.g., the memory may store temporary codes generated during the compilation process). The processor 102 may also access the program instructions and data stored in the memory, and execute the program instructions to operate on the data to be processed. The memory 104 may include a volatile storage device or a non-volatile storage device. In some embodiments, the memory 104 may include a random access memory (RAM), a read-only memory (ROM), an optical disk, a magnetic disk, a hard disk, a solid-state drive (SSD), a flash memory, a memory stick, etc.

[0023] The network interface 106 can be configured to provide communication with other external devices to the host 100 via a network. The network can be any wired or wireless network capable of transmitting and receiving data. For example, the network can be a wired network, a local wireless network (e.g., Bluetooth, WiFi, near field communication (NFC), etc.), a cellular network, the Internet, or a combination thereof. It is understood that the type of network is not limited to the above specific examples. In some embodiments, the network interface 106 can include any number of network interface controllers (NICs), radio frequency modules, transceivers, modems, routers, gateways, adapters, cellular network chips, etc., in any combination.

[0024] The peripheral interface 108 can be configured to connect the host 100 to one or more peripheral devices to achieve information input and output. For example, the peripheral devices can include input devices such as a keyboard, a mouse, a touch pad, a touch screen, a microphone, and various sensors, and output devices such as a display, a speaker, a vibrator, and an indicator light.

[0025] The bus 110 may be configured to transmit information between various components of the host 100 (e.g., the processor 102, the memory 104, the network interface 106, and the peripheral interface 108), such as an internal bus (e.g., a processor-memory bus), an external bus (USB port, PCI-E bus), etc.

[0026] It should be noted that, although the above electronic device architecture only shows the processor 102, the memory 104, the network interface 106, the peripheral interface 108 and the bus 110, in the specific implementation process, the electronic device architecture may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above electronic device architecture may also only include the components necessary for implementing the embodiment of the present application, and does not necessarily include all the components shown in the figure.

[0027] Figure 2 FIG. 2 is a schematic diagram of an exemplary simulation tool 200 according to an embodiment of the present disclosure. The simulation tool 200 may be a computer program running on the host 100 .

[0028] In the field of chip design, a design can usually be simulated using a simulation tool, such as the GalaxSim Turbo simulation tool produced by Xinhuazhang Technology Co., Ltd. Figure 2 The exemplary simulation tool 200 shown may include a compiler 210 and a simulator 220. The compiler 210 may receive source code 204 of a logic system design (e.g., a hardware description language such as VHDL, Verilog, SystemVerilog, etc.) and compile it into an execution code 206 (e.g., machine code, assembly code, software code, etc.). It is understandable that the description of the logic system design may be described in a hardware description language (HDL), a register transfer level (RTL) language, binary code, assembly code, or machine code, etc. The simulator 220 may perform simulation according to the execution code 206 and output a simulation result 208. For example, the simulation tool 200 may output the simulation result 208 via Figure 1 The peripheral interface 108 outputs the data to an output device (eg, displayed on a display).

[0029] Figure 3 FIG. 2 is a schematic diagram of an exemplary compiler 210 according to an embodiment of the present application. Figure 3 As shown, compiler 210 may include a front end 212 , a middle end 214 , and a back end 216 .

[0030] The front end 212 may be used to analyze the lexical, grammatical, and semantic aspects of the source code according to a specific source language.

[0031] After the lexical, grammatical and semantic analysis of the source code is completed, the middle end 214 can convert the source code into an intermediate representation (or intermediate code) and can optimize the intermediate representation. The intermediate language (intermediate code) is a syntax-oriented, equivalent internal representation code that is easy to translate into the source code of the target program. Its comprehensibility and the degree of easy generation of execution code are between the source code and the execution code. Commonly used intermediate codes include reverse Polish notation, quadruple, ternary and tree representation. For example, the middle end 214 can remove useless code, remove inaccessible code, clear unused variables, etc. Optimization can include machine-related optimization and machine-independent optimization. Among them, machine-related optimization, for example, can be the optimization of the testbench (TB), and the characteristics of some test platforms can be used to help optimize. Machine-independent optimization, for example, can be the optimization of the design under test (DUT). The optimized intermediate representation can be passed to the back end 126 for further processing.

[0032] The back end 216 can be configured based on the target processor (e.g., Figure 1 The intermediate representation is further optimized according to the architecture of the processor 102, and an execution code is generated. Usually, the execution code is a machine code.

[0033] It is understood that the structure of the compiler is not limited to Figure 3 For example, front end 212 and middle end 214 may be collectively referred to as a front end of a compiler.

[0034] The compiler 210 can generate an execution code based on the computer code to be compiled. The computer code to be compiled can also be called source code, such as a written logic system design. Usually, the source language for writing the source code is a high-level programming language. The high-level programming language can be the above-mentioned software programming language or hardware programming language. The execution code can be, for example, assembly code, machine code, etc. Usually, the compiler 210 can be stored in Figure 1 The compiler 210 is stored in the memory 104 shown in the figure and is executed by the processor 102 to compile the logic system design into execution code. The compiler 210 can convert the description of the logic system design from a high-level language description (e.g., HDL language) into a lower-level description (e.g., RTL language or binary code) so that the underlying hardware can run the logic system design.

[0035] Figure 4 A schematic diagram of a hybrid simulation 400 according to an embodiment of the present application is shown.

[0036] like Figure 4 As shown, the logic system design 402 may include a DUT 4022 and a TB 4024. The DUT 4022 may be a design of a central processing unit (CPU), a design of a graphics processing unit (GPU), a design of a neural network processing unit (NPU), etc. The TB 4024 may be a test bench for testing the DUT 4022.

[0037] The simulation tool 200 can read the description of the logic system design 402, and divide the DUT 4022 into multiple sub-designs 4042-4048 according to the DUT 4022. The multiple sub-designs 4042-4048 usually have a certain degree of parallelism. In other words, the data dependencies between the multiple sub-designs 4042-4048 should be as small as possible, so as to allow the multiple sub-designs 4042-4048 to be executed in parallel in most of the running time.

[0038] According to the DUT 4022 and the multiple sub-designs 4042-4048, the simulation tool 200 can also generate a communication wrapper 406 corresponding to the DUT 4022. The communication wrapper 406 includes an interface for connecting to the TB 4024 and an interface for connecting to the multiple sub-designs 4042-4048. In this way, from the perspective of the TB 4024, the TB 4024 will think that it is connected to the DUT. From the perspective of the multiple sub-designs 4042-4048, the multiple sub-designs 4042-4048 will think that they are connected to the TB. Generally speaking, the design complexity of the TB 4024 is obviously simpler than that of the DUT 4022, that is, running the TB 4024 will be faster than running the DUT 4022 under the same conditions.

[0039] The simulation tool 200 can generate a simulation mother thread 410 and simulation child threads 4082-4088 corresponding to the plurality of child designs 4042-4048 during the simulation of the logic system design 402. The simulation mother thread 410 can be a thread of the first simulator, and the simulation child threads 4082-4088 can be threads of the second simulator. The first simulator and the second simulator are both running on the same host 100. In the following, the first simulator and the simulation mother thread can be used interchangeably, and the second simulator and the simulation child thread can be used interchangeably.

[0040] The first simulator 410 can run the communication envelope 406 and the TB 4024. The multiple second simulators 4082~4088 can respectively run the multiple sub-designs 4042~4048 in parallel. It can be understood that the first simulator 410 (i.e., the simulation mother thread 410) and the multiple second simulators 4082~4088 (i.e., the multiple simulation sub-threads 4082~4088) are also running in parallel in the host 100. In the present application, parallel operation refers to multiple simulators running in the host 100 at the same time, so there may be a situation where one simulator is executing a simulation task while another simulator is not executing a simulation task at some time. In this case, the present application still considers that the simulator is in a state of running in parallel with other simulators.

[0041] In some embodiments, the first simulator 410 may be an event-driven digital simulator, and at least one of the plurality of second simulators 4082-4088 may be a cycle-based digital simulator. Since the first simulator 410, as a digital simulator, is only responsible for the non-synthesizable TB 4024, the simulation of the TB can be completed relatively quickly; and at the same time, as described above, the cycle-based digital simulator can simulate the synthesizable sub-design relatively quickly. In this way, through division of labor, simulation acceleration can be achieved.

[0042] It is understood that in some embodiments, all of the second simulators 4082-4088 are cycle-based digital simulators, while in other embodiments, the second simulators 4082-4088 may include cycle-based digital simulators, event-driven digital simulators, formal verification simulators, and the like.

[0043] The communication envelope 406 can serve as a bidirectional communication node between the TB 4024 running in the first simulator 410 and the multiple sub-designs 4042-4048 running in the other second simulators 4082-4088. In each clock cycle (also referred to as an operation cycle) of the running logic system design, the communication envelope 406 can send the data (e.g., the stimulus signal of the test case) generated by the operation of the TB 4024 to the multiple sub-designs 4042-4048; at the same time, the communication envelope 406 can also synchronize the data (e.g., part of the simulation results) generated by the multiple sub-designs 4042-4048 to the TB 4024.

[0044] In some embodiments, for data synchronization between multiple sub-designs 4042~4048 and TB 4024, the simulation tool 200 adopts a memory copy method. For example, the data generated after a sub-design 4042 completes a part of the simulation in a simulation sub-thread 4082 will be stored in a memory address, and the simulation sub-thread 4082 can send the memory address to the simulation mother thread 410, and the simulation mother thread 410 directly copies the data stored in the memory address. Since the simulation sub-thread 4082 and the simulation mother thread 410 are both running in the same host 100, it is very fast to exchange data in the memory system, thereby allowing the simulation sub-thread 4082 and the simulation mother thread 410 to synchronize in every clock cycle of the logical system design. Compared with the technical solution of realizing hybrid simulation with a hardware simulator by running a software simulator on a host, limited by the communication capacity between the host running the software simulator and the hardware simulator, the soft-hard hybrid simulation can only achieve event-level (transaction level) synchronization (that is, synchronize data when an event occurs) in order to reduce data communication, which results in the speed of the soft-hard hybrid simulation not being significantly improved. In the embodiment of the present application, since multiple emulator threads are all running in the memory system of a host 100, fast data interaction can be achieved by leveraging the high bandwidth of the memory and data synchronization can be achieved in each clock cycle.

[0045] In other embodiments, the plurality of sub-designs 4042 - 4048 and TB 4024 may be distributed on different hosts for simulation, which may reduce the speed of data synchronization between the plurality of sub-designs 4042 - 4048 and TB 4024 .

[0046] TB 4024 can generate simulation results of DUT 4022 based on data generated by multiple sub-designs 4042-4048. In this way, for the user, what the user can see is still the final simulation result.

[0047] As described above, by dividing the design to be tested into multiple sub-designs and allowing the multiple sub-designs and the test bench to run together in the same host, the embodiment of the present application improves the speed of simulation. At the same time, by additionally generating a communication envelope based on the description of the design to be tested, the multiple sub-designs and the test bench, it is used to achieve data synchronization between the multiple sub-designs and the test bench during operation. In addition, by means of the favorable condition that the sub-design and the test bench run on the same host, the embodiment of the present application achieves data synchronization between the sub-design and the test bench by means of memory replication, so that data synchronization can be performed in each clock cycle of the running logic system design.

[0048] Figure 5 A schematic diagram of another hybrid simulation according to an embodiment of the present application is shown.

[0049] There is usually a certain degree of data dependency between multiple parts of a chip design, that is, different parts need to communicate and synchronize with each other. Therefore, in some embodiments, there is also a need for communication between multiple sub-designs of DUT 4022.

[0050] and Figure 4 Different, in Figure 5 In the embodiment of the present invention, after the DUT 4022 is divided into the plurality of sub-designs 4042-4048, the simulation tool 200 further generates a plurality of envelopes 502-508 corresponding to the plurality of sub-designs 4042-4048 according to the descriptions of the plurality of sub-designs 4042-4048. For example, the simulation tool 200 may generate the corresponding plurality of envelopes 502-508 according to the descriptions of the plurality of sub-designs 4042-4048 and the description of the TB 4024 (or the envelope 406).

[0051] Multiple sub-designs 4042-4048 and multiple envelopes 502-508 can be run in pairs on the simulation sub-threads 4082-4088 respectively. Multiple envelopes 502-508 are used to provide the simulation sub-threads 4082-4088 with communication between the simulation sub-threads and the simulation mother thread and communication between the simulation sub-threads. That is, the envelopes 502-508 may include an interface for connecting to the envelope 406 and an interface for connecting to the envelope of another sub-design. For example, the envelope 502 may include an interface for connecting to the envelope 406 and an interface for connecting to the envelopes 504-508 of the sub-designs 4044-4048, thereby realizing communication between each sub-thread and the mother thread and communication between multiple sub-threads.

[0052] The embodiment of the present application also provides a method for simulating logic system design.

[0053] Figure 6 A flow chart of a method 600 for simulating logic system design according to an embodiment of the present application is shown. The logic system design includes a design to be tested and a test bench. The method 600 may be performed by Figure 1 The host computer 100 shown is implemented, more specifically, by a simulation tool 200 (see Figure 2 The method 600 may include the following steps.

[0054] In step 602, the simulation tool 200 may process the design under test (eg, Figure 4 DUT 4022) is split into multiple sub-designs (for example, Figure 4 Generally speaking, there is good parallelism between multiple sub-designs, that is, the data dependency is low, which allows multiple sub-designs to be simulated in parallel.

[0055] In step 604, the simulation tool 200 may generate a simulation result based on the design to be tested and the test bench (eg, Figure 4 TB 4024) describes the generation of the first communication envelope (e.g., Figure 4 The first communication envelope includes an interface connected to the plurality of sub-designs and an interface connected to the test bench. In this way, the plurality of sub-designs can be connected to the test bench via the first communication envelope.

[0056] At step 606, the simulation tool 200 may perform the operation on a first simulator (e.g., Figure 4 The test bench and the first communication envelope are run on 410); the first simulator is an event-driven simulator.

[0057] At step 608, the simulation tool 200 may be used in a plurality of second simulators (eg, Figure 4 The plurality of sub-designs are respectively run in parallel on 4082-4088 of the test bench. The plurality of sub-designs are synchronized with the test bench via the first communication envelope. In some embodiments, at least one of the plurality of second simulators is a cycle-based simulator; in other embodiments, the plurality of second simulators are all cycle-based simulators.

[0058] The first simulator and the plurality of second simulators may run on the same host (eg, host 100 ).

[0059] In step 610, the simulation tool 200 can obtain the simulation result of the logic system design from the first simulator (eg, Figure 4During the simulation process, the synchronization of the multiple sub-designs with the test bench via the first communication envelope can be achieved by memory replication. In this way, part of the simulation results generated by the multiple sub-designs can be synchronized to the test bench, and finally form the simulation results of the logic system design.

[0060] Since the memory copy speed is very fast, the multiple sub-designs are synchronized with the test bench via the first communication envelope and completed once in each clock cycle of the logic system design.

[0061] In some embodiments, method 600 further includes: generating a plurality of second communication envelopes corresponding to the plurality of sub-designs respectively according to the descriptions of the plurality of sub-designs. Wherein, running the plurality of sub-designs in parallel on the plurality of second simulators further includes: running the plurality of sub-designs and the plurality of second communication envelopes in parallel on the plurality of second simulators respectively, wherein, in the plurality of second communication envelopes, a second communication envelope includes an interface for connecting to the first communication envelope and for connecting to another second communication envelope. In this way, communication between each child thread and the parent thread and communication between the plurality of child threads can be realized.

[0062] As described above, by dividing the design to be tested into multiple sub-designs and allowing the multiple sub-designs and the test bench to run together in the same host, the embodiment of the present application improves the speed of simulation. At the same time, by additionally generating a communication envelope based on the description of the design to be tested, the multiple sub-designs and the test bench, it is used to achieve data synchronization between the multiple sub-designs and the test bench during operation. In addition, by means of the favorable condition that the sub-design and the test bench run on the same host, the embodiment of the present application achieves data synchronization between the sub-design and the test bench by means of memory replication, so that data synchronization can be performed in each clock cycle of the running logic system design.

[0063] The present application also provides an electronic device. The electronic device may be Figure 1 The host 100 may include a memory for storing a set of instructions; and at least one processor configured to execute the set of instructions so that the electronic device executes the method 600.

[0064] The embodiment of the present application further provides a non-transitory computer-readable storage medium. The non-transitory computer-readable storage medium stores a set of computer instructions, and the set of instructions is used to enable the electronic device to perform method 600 when executed.

[0065] Some embodiments of the present application are described above. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0066] A person skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the present application as described above, which are not provided in detail for the sake of simplicity.

[0067] Although the present application has been described in conjunction with specific embodiments of the present application, many alternatives, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the discussed embodiments.

[0068] This application is intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this application should be included in the scope of protection of this application.

Claims

1. A method for simulating a logic system design, the logic system design comprising a design to be tested and a test bench, wherein: The method comprises: Splitting the design to be tested into a plurality of sub-designs; Generate a first communication envelope according to the description of the design to be tested and the test bench, wherein the first communication envelope includes interfaces connected to the plurality of sub-designs and an interface connected to the test bench; running the test bench and the first communication envelope on a first simulator; Running the plurality of sub-designs in parallel on a plurality of second simulators respectively, the plurality of sub-designs being synchronized with the test bench via the first communication envelope; and A simulation result of the logic system design is obtained from the first simulator.

2. The method of claim 1, wherein: The first simulator is an event-driven simulator, and at least one of the plurality of second simulators is a cycle-based simulator.

3. The method of claim 2, wherein: The plurality of second simulators are all cycle-based simulators.

4. The method of claim 1, wherein: The plurality of sub-designs are synchronized with the test bench via the first communication envelope through memory replication.

5. The method of claim 1, wherein: The plurality of sub-designs are synchronized with the test bench via the first communication envelope and are completed once per clock cycle of the logic system design.

6. The method of claim 1, wherein: The first simulator and the plurality of second simulators run on the same host.

7. The method of claim 1, further comprising: Generating a plurality of second communication envelopes corresponding to the plurality of sub-designs respectively according to the descriptions of the plurality of sub-designs, wherein respectively running the plurality of sub-designs in parallel on a plurality of second simulators further comprises: The plurality of sub-designs and the plurality of second communication envelopes are respectively run in parallel on a plurality of second simulators, wherein, among the plurality of second communication envelopes, one second communication envelope comprises an interface for connecting to the first communication envelope and for connecting to another second communication envelope.

8. An electronic device comprising: a memory for storing a set of instructions; as well as At least one processor is configured to execute the set of instructions so that the electronic device performs the method according to any one of claims 1 to 7.

9. A non-transitory computer-readable storage medium storing a set of instructions for a computer, the set of instructions being used to cause the computer to perform the method according to any one of claims 1 to 7 when executed.