Equalization subdivision of circuits for hardware simulation assisted simulation

By partitioning the circuit design and capturing primary signals, the problem of excessive computing resources and time consumption in complex circuit simulations is solved, efficient simulation and simulation are achieved, and simulation speed and visibility are balanced.

CN118607431APending Publication Date: 2024-09-06SYNOPSYS INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410242663.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-03-06
Filing Date
2024-03-04
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing simulation and emulation technologies for circuit design face problems such as excessive consumption of computing resources and time, and limitations in signal capture and transmission bandwidth when dealing with complex circuits, making it difficult to balance simulation speed and visibility.

Method used

By dividing the circuit design into essentially consistent partitions, identifying sequential dependencies based on signals across partitions, determining sets of primary signals, and breaking sequential dependencies, making it possible to simulate each partition independently and capture the values ​​of the set of primary signals during simulation, using These values ​​perform a simulation to reconstruct the uncaught signal.

Benefits of technology

It achieves a balance between maintaining simulation speed and visibility, reduces the simulation system's demand for hardware resources, and improves simulation efficiency and memory usage efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118607431A
    Figure CN118607431A
Patent Text Reader

Abstract

The embodiment of the invention relates to equalization subdivision of a circuit for hardware simulation assisted simulation. Techniques for simulating a circuit design using a set of primary signals captured by a hardware simulation system are disclosed. In preparation for simulation, the circuit design is divided into partitions of substantially uniform size. Sequential dependencies are then identified based on the signals across the partitions. The primary set of signals includes a signal that breaks the sequential dependency when provided as an input to the simulation, such that each partition can be simulated independently. Techniques for determining which signals are included in the set of primary signals are also disclosed. The hardware simulation system is configured to capture values of the primary set of signals as part of simulating the circuit design. Thereafter, the simulation is performed using the captured values. During the simulation, a non-primary signal is reconstructed using values obtained from independently simulating each partition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates generally to testing and analysis of circuit designs. More specifically, the present disclosure relates to simulating the behavior of a circuit design using signal information obtained through hardware simulation. Background Art

[0002] Circuit designers can use simulation for testing and analyzing their circuit designs. For example, a simulation program can be executed by a processing device (e.g., a processor) to verify that the design under test (DUT) operates as expected or to analyze the power consumption of the DUT. The DUT can then be modified based on the results of the simulation, for example to correct design errors or optimize one or more circuit elements to reduce power consumption. As circuit designs grow in size and become more complex, the time and number of computing resources (e.g., processing units, memory) required to simulate the entire design increase to the point where pure simulation is no longer acceptable. For example, it may be impractical to wait for days or weeks for the simulation program to complete the calculation of the values ​​of all signals associated with the design. The number of such signals can be millions or even billions, because these signals typically include not only the overall output of the design, but also internal signals that provide insight into the behavior of individual circuit elements.

[0003] An alternative to simulation is emulation, which involves using hardware to reproduce circuit behavior. There are different simulation architectures, some of which are based on field programmable gate arrays (FPGAs). Although simulation can generally be performed much faster than simulation, simulation also has its own disadvantages. For example, additional hardware resources are required to capture the values ​​of the signals generated by the simulation hardware. Depending on the architecture of the simulator, these additional hardware resources may compete with the hardware resources used to simulate the DUT, which may lead to a deterioration in the performance of the simulator. In addition, the number of signal values ​​captured by the hardware may exceed the bandwidth available to read the captured values ​​from the simulator (e.g., the bandwidth of the communication interface between the simulator and the host computer), in which case the simulator will need to slow down. Therefore, there is a trade-off between simulation speed and the amount of visibility achieved. Therefore, neither pure simulation nor pure emulation is suitable for many circuit designs today. Summary of the invention

[0004] A system according to an embodiment of the present disclosure includes a hardware simulation system and one or more processors communicatively coupled to the hardware simulation system. The one or more processors are configured to divide a circuit design into partitions of substantially uniform size. The one or more processors are also configured to identify sequential dependencies based on signals across partitions, and determine a primary signal set that, when provided as an input to a simulation of the circuit design, breaks the sequential dependencies so that each partition can be simulated independently. The primary signal set includes a subset of signals across partitions. The one or more processors configure the hardware simulation system to capture the value of the primary signal set during the simulation of the circuit design. The one or more processors are also configured to perform simulation using the captured values. The simulation involves reconstructing signals not included in the primary signal set using values ​​obtained from independently simulating each partition.

[0005] A method according to an embodiment of the present disclosure involves dividing a circuit design into partitions of substantially uniform size. The method also involves identifying sequential dependencies based on signals across partitions, and determining a primary signal set that, when provided as an input to a simulation of the circuit design, breaks the sequential dependencies so that each partition can be simulated independently. The primary signal set includes a subset of signals across partitions. The method also involves configuring a hardware simulation system to capture values ​​of the primary signal set during simulation of the circuit design, and performing simulation using the captured values. Simulation involves reconstructing signals not included in the primary signal set using values ​​obtained from independently simulating each partition.

[0006] A system according to an embodiment of the present disclosure includes a memory and one or more processors. The memory stores electronic design automation (EDA) software, including a simulation program configured to perform simulation of a circuit design. One or more processors are communicatively coupled to a hardware simulation system and configured to execute program instructions of the EDA software. The program instructions cause one or more processors to divide the circuit design into partitions of substantially uniform size. The program instructions also cause one or more processors to identify sequential dependencies based on signals across partitions, and determine a primary signal set that, when provided as input to the simulation, breaks the sequential dependencies so that each partition can be simulated independently. The primary signal set includes a subset of signals across partitions. The program instructions also cause one or more processors to configure the hardware simulation system to capture the value of the primary signal set during the simulation of the circuit design, and perform simulation using the captured value. The simulation involves reconstructing signals not included in the primary signal set using values ​​obtained from independently simulating each partition.

[0007] This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used in isolation to determine the scope of the claimed subject matter. The subject matter should be understood by reference to appropriate portions of the entire specification of the present disclosure, any or all of the drawings, and each claim. The foregoing and other features and examples will be described in more detail below in the following specification, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] The present disclosure will be more fully understood through the specific implementations given below and the accompanying drawings of the embodiments of the present disclosure. The accompanying drawings are used to provide knowledge and understanding of the embodiments of the present disclosure, and do not limit the scope of the present disclosure to these specific embodiments. In addition, these drawings are not necessarily drawn to scale.

[0009] Figure 1 A computing environment is illustrated in accordance with some embodiments.

[0010] Figure 2 is a block diagram illustrating components configured to perform hardware emulation and simulation according to certain embodiments.

[0011] Figure 3 An example of data captured during simulation is shown.

[0012] Figure 4 An example partitioning of a circuit design is illustrated.

[0013] Figure 5 An example of timing constraints on the sampling of a signal during simulation is shown.

[0014] Figure 6 Illustration of an example of using fan-in and fan-out analysis to break sequential dependencies.

[0015] Figure 7 illustrates a more detailed example of fan-in and fan-out analysis.

[0016] Figure 8 is a flow chart of a method for simulating a circuit design using primary signals captured during simulation, according to certain embodiments.

[0017] Fig. 9 is a flow chart illustrating a process for determining a set of primary signals according to certain embodiments.

[0018] Fig.10 Flowcharts depicting various processes used during the design and fabrication of integrated circuits according to some embodiments of the present disclosure.

[0019] Fig.11 A diagram of an example simulation system is depicted, in accordance with some embodiments of the present disclosure.

[0020] Fig.12 A diagram of an example computer system is depicted in which embodiments of the present disclosure may operate. DETAILED DESCRIPTION

[0021] Various aspects of the present disclosure relate to simulation of circuit designs. In some embodiments, the circuit design is partitioned into segments for sequential simulation. The partitions can be simulated independently of each other, for example, at least some of the partitions can be simulated in parallel on one or more computer devices. The size of the partitions can be determined based on the amount of memory available for simulation, for example, to constrain the memory allocated to simulate each partition to an upper limit. In some embodiments, the size of the partitions is substantially uniform so that each simulation job consumes approximately the same amount of memory and / or other simulation resources.

[0022] Sequential simulation is difficult to perform in parallel because the presence of sequential dependencies usually prevents the circuit design from being decomposed into smaller independent fragments for parallel simulation. In contrast, when performing sequential simulation, the entire DUT must usually be simulated as a whole, which makes sequential simulation impractical for large circuit designs. In contrast, combinatorial simulation is easier to parallelize, but more signals need to be captured in advance during simulation. Specifically, in addition to capturing primary inputs (described below), combinatorial simulation also needs to capture all non-combinatorial signals in the DUT (such as the values ​​of registers or other state-keeping elements). Typically, non-combinatorial signals and primary inputs are sampled on each clock cycle of the simulator, which consumes a large amount of hardware resources, and because the amount of data that needs to be captured and transmitted from the simulator is too large, the speed of the simulator may need to be slowed down (lower clock frequency). Sequential simulation requires much fewer signals to be captured. For example, the capture process for sequential simulation can involve sampling all primary inputs on each clock cycle, but only a small portion of the register / state-keeping elements is sampled at less frequent intervals (i.e., not every cycle). Therefore, if the sequential dependencies can be broken, sequential simulation can be performed efficiently while placing a significantly lower burden on the simulator than when combinatorial simulation is used to simulate the same DUT.

[0023] Therefore, aspects of the present disclosure relate to determining desired signals (referred to herein as primary signals) of a circuit design to be captured during simulation so as to enable a simulation system to perform sequential simulations in a parallel manner. When the desired signals are designated as primary signals, sequential dependencies can be broken so that partitions can be simulated independently. After all partitions have been simulated, the simulation system can reconstruct signals associated with the circuit design, including non-primary signals.

[0024] As described with reference to the accompanying drawings, in the subsequent discussion of various embodiments, the following discussion of terminology is provided for additional context. Circuit designs can be represented in various ways, including hardware description languages ​​(HDLs). In electronic design automation systems, circuit designs are often expressed in the form of a netlist, which can be viewed as a graph of vertices and edges connecting the vertices.

[0025] Vertices can represent individual circuit elements, such as pieces of digital logic. Edges can represent signals passed between circuit elements. In the context of circuit design, edges can be directed. Thus, a directed graph G is a pair (V, E) of vertices V and edges E. The set of edges E is a subset of V×V. An undirected graph is a graph where the edges are not directed, meaning that for an edge {u, v}, it is possible to go from u to v and from v to u.

[0026] The subgraph is a graph G′=(V′,E′) such that V′ is included in V and E′ is included in (V′×V′) and E.

[0027] Vertex v2 is a successor of vertex v1 if and only if (v1,v2) is an edge. Another way to express this relationship is to say that v2 is in the fan-out of v1, and conversely, v1 is in the fan-in of v2. Vertex v1 and vertex v2 can be connected directly or through one or more intermediate vertices. Therefore, v2 is reachable from v1 if and only if there exists a sequence of one or more edges (v_i,v_{i+1}), 0<=i<=n, such that v_0=v1 and v_{n+1}=v2. This sequence of one or more edges is called a path from v1 to v2.

[0028] The transitive fan-in (TFI) of a vertex v is denoted as TFI(v) and is the transitive closure of the fan-in relation. Similarly, the transitive fan-out (TFO) of a vertex v is denoted as TFO(v) and is the transitive closure of the fan-out relation.

[0029] Two vertices v1 and v2 are said to be weakly connected if both a fan-out relationship and a fan-in relationship can be used to build a path from v1 to v2. In other words, both edge directions can be used to build a path from v1 to v2. This is equivalent to considering the paths in the undirected graph induced by G. A weak connection is an equivalence relation (i.e., symmetric, reflexive, and transitive), and the induced subgraph of its equivalence class is called a weakly connected component (WCC).

[0030] As mentioned above, a circuit design can be expressed as a netlist. A netlist includes a circuit cell and a network. A circuit cell may have an input port and an output port. A network is a collection of one or more ports and represents a signal of a circuit. Without loss of generality, and for illustration purposes only, it can be assumed that a circuit cell and a network have only one output port. In fact, this can be achieved by a simple transformation of the original circuit design without changing the behavior of the circuit. In this way, each network can be identified by a circuit cell having its output port, and conversely, each circuit cell can be identified by a network having its output port. Therefore, circuit cells and networks are sometimes used interchangeably in the following description. Therefore, the waveform of a signal in a circuit can be characterized by the value of a network over time, and the waveform can be uniquely associated with a specific circuit cell in a netlist. Based on the above discussion, it is clear that a netlist can be considered as a directed graph G, in which a vertex V corresponds to a collection of circuit cells, each circuit cell has a single output, and in which an edge set E consists of edges (v1, v2) such that there is a network that connects the output port of circuit cell v1 to the input port of circuit cell v2.

[0031] A primary signal (alternatively, a primitive) is any signal whose value is provided as an input to a simulation system. Where the waveform of the signal is uniquely associated with a particular circuit cell in a netlist, the primitive may correspond to a signal at an output port of the circuit cell. Thus, a primitive may include a circuit cell whose value is assigned to the simulation system so that the values ​​of these circuit cells do not have to be calculated during simulation. During simulation, the simulation system may capture changes in the value of the primitive, such as by sampling the value of the primitive at each cycle. The simulation system may then use the value changes to simulate other circuit cells (i.e., each non-primary circuit cell).

[0032] Figure 1 An example computing environment 100 according to some embodiments is shown. The computing environment 100 includes a computer system 110 and a simulation system 120. The simulation system 120 is a hardware simulation system and can be based on any of a variety of existing simulation architectures. An example of a simulation system formed using a field programmable gate array (FPGA) is discussed below. Fig.11 However, the techniques described herein are not limited to use with any particular simulation architecture. Figure 1 As shown, simulation system 120 may be part of computer system 110 or a separate system coupled to computer system 110 via one or more communication networks 140 .

[0033] The computer system 110 includes a storage subsystem 112 and one or more processors 114. The processor(s) 114 are communicatively coupled to the storage subsystem 112 and other components of the computer system 110 via the communication structure 104. The communication structure 104 may include, for example, a bus that allows communication between the processor(s) 114 and a plurality of peripheral devices. The processor 114 may be a microprocessor, a graphics processing unit, a digital signal processor, or any electronic processing equivalent thereof, such as an application specific integrated circuit (ASIC) or an FPGA. The processor 114 may be formed using any number of processing units, and thus may be a single processor, a multi-core processor, a multi-processor array, etc.

[0034] The storage subsystem 112 may include memory 122 and file storage 124. The memory 122 typically includes a plurality of memory devices that may be used to store information, such as instructions and data during execution of programs by the processor(s) 114. The memory 122 may include volatile storage such as random access memory (RAM), nonvolatile storage such as read-only memory (ROM) or flash memory, or a combination of volatile and nonvolatile storage.

[0035] exist Figure 1 In the example of FIG. 1 , memory 122 stores electronic design automation (EDA) software 155. EDA software 155 may include one or more software programs used to model, design, and / or test circuits. For example, EDA software 155 may include a program executable by (multiple) processors 114 to provide a simulation system for simulating circuit design.

[0036] In some instances, the EDA software 155 can control the operation of the simulation system 120. For example, the EDA software 155 can include a compiler program that prepares instructions for the simulation system 120 based on one or more circuit designs 159 stored in the memory 122. The compiler can be configured to convert an electronic design file in HDL format into a netlist representing the circuit design. The compiler can also assign circuit elements to the hardware resources of the simulation system 120, such as by mapping the circuit cells in the netlist to a simulation space formed by an FPGA or other simulation resource. Additionally, the EDA software 155 can be responsible for indicating which signals of the circuit design will be captured by the simulation system 120. The signals captured by the simulation system 120 may include one or more signals used as inputs to simulate the circuit design. As described below with reference to Figure 2 As discussed, this functionality of the EDA software can be implemented by a compiler. Thus, the compiler can act as a software interface for communication between the simulation system 120 and the emulation system.

[0037] The file storage device 124 may include one or more storage devices configured to provide persistent storage for program and data files. Examples of file storage devices include hard disk drives, solid-state device (SSD) drives, CD-ROM drives, etc. The file storage device 124 may be used for long-term storage of information used or generated by the computer system 110 in conjunction with simulation and / or simulation. For example, the file storage device 124 may store additional circuit designs that may be loaded into the memory 122, models of various circuit elements (e.g., circuit cell libraries), outputs generated by the simulation system 120 (e.g., files containing captured signal values), and / or outputs generated during simulation (e.g., files containing reconstructed signal values). Therefore, the file storage device 124 may store databases and / or modules that implement the functionality of certain embodiments.

[0038] Peripheral devices may include (multiple) input devices 116 and (multiple) output devices 118. Input device 116 may be any device capable of receiving input from a user of a computer system. Examples of input devices include keyboards, mice, trackballs, styluses, touch screens, microphones, and the like. Input devices may encompass any number of devices that allow a user to input information into computer system 110 or on (multiple) communication networks 140. In some embodiments, (multiple) input devices 116 are used to provide configuration parameters of simulation system 120 and / or simulation system. For example, a user may use an input device to specify a value for the maximum allowed amount of memory used during simulation. This value may correspond to an upper limit on the total memory consumed during simulation (e.g., in megabytes of RAM), or to an upper limit on the memory consumed by any particular simulation job (e.g., when multiple simulation jobs are executed in parallel). As another example, an input device may be used to specify an expected operating speed (e.g., clock frequency) and / or capture rate (e.g., sampling frequency) used during simulation of a circuit design.

[0039] Output device 118 may be any device capable of presenting output through a user interface. Examples of output devices include audio speakers, display monitors (e.g., liquid crystal or light emitting diode displays), tactile feedback (e.g., vibration) devices, etc. Thus, output devices may provide visual output or non-visual output, and may encompass any number of devices that allow information to be output from computer system 110 to a user.

[0040] Computer system 110 may be a server computer, a client computer, a workstation, a mainframe, a personal computer (PC), a tablet computer, or any data processing machine capable of executing (sequentially or otherwise) instructions that specify actions to be taken by the machine. Figure 1Only a single computer system 110 is shown in FIG, but the computing environment 100 may include multiple computer systems. In some instances, the circuit design may be partitioned for simulation concurrently (e.g., in parallel) on different computers. Each computer may be assigned one or more partitions to simulate independently of other partitions. After all partitions have been simulated, the results of the individual simulations may be combined to complete the overall simulation of the circuit design. The overall simulation may involve reconstructing signals in the circuit design (e.g., calculating the values ​​at each circuit cell in the netlist over a time period), and may also be performed by a single computer or multiple computers. When reconstructing signals, it is not necessary to calculate the values ​​of signals that have been captured by the simulation system 120.

[0041] The computer system 110 may include a network interface subsystem 130. The network interface subsystem 130 may be coupled to corresponding interface devices in other computer systems or machines via (multiple) communication networks 140. Traffic on (multiple) communication networks 140 may be communicated via wired links, wireless links, and / or other types of communication links (e.g., optical links). Thus, (multiple) communication networks 140 may be wired and / or wireless, and may encompass any suitable computer network, such as a wide area network (such as the Internet) and / or a local area network (such as Ethernet).

[0042] Figure 2 2 is a block diagram of a system 200 including components configured to perform hardware emulation and simulation according to some embodiments. The system 200 includes a compiler 210, an emulation system 220, and a simulation system 230. The system 200 may implement Figure 1 For example, the compiler 210 may be a part of the EDA software 155 , the simulation system 230 may also be provided by the EDA software 155 , and the simulation system 220 may correspond to the simulation system 120 .

[0043] The compiler 210 may include a synthesizer module 212, a placer module 214, and a partitioner module 216. In some implementations, the functionality of the partitioner module 216 may be integrated into the placer module 214. The compiler 210 may be executed on a host computer system (e.g., computer system 110). In addition to the compiler 210 and the simulation system 230, the system 200 may also include a runtime module, a debugger, and / or other software components that provide EDA functionality. The various subsystems and modules within the system 200 may be implemented on a single computer system (e.g., a host computer system) or on any number of computer systems.

[0044] like Figure 2As shown, compiler 210 receives design information 204 of a circuit design (e.g., a DUT) to be simulated. Design information 204 may include a description of the circuit design, which is typically written in a description language such as HDL or register transfer language (RTL). In some instances, design information 204 includes a netlist 205, such as a netlist-level file or a mixture of a netlist-level file and an HDL file. If design information 204 does not yet include a netlist, a synthesizer module 212 of the compiler may synthesize design information 204 to create netlist 205 from the description contained therein. For example, synthesizer module 212 may transform the HDL description into corresponding gate-level logic, so that netlist 205 is generated as a gate-level netlist having a description of the DUT according to the gate-level logic.

[0045] The placer module 214 is configured to assign the circuit elements described in the netlist 205 to simulation resources (e.g., FPGA) in the simulation system 220, thereby mapping the circuit elements to the simulation space of the simulation system 220. The placement results in a placed netlist 207 and is typically performed at the logic gate level. The simulation space can be a multi-dimensional (e.g., two-dimensional (2D) or three-dimensional (3D)) space representing the hardware resources of the simulation system. The placer module 214 typically attempts to evenly distribute the circuit elements across the hardware resources of the simulation system 220. Therefore, the placer module 214 can divide the simulation space into tiles of equal size (e.g., square or rectangular tiles that form a grid composed of straight lines in the case of a 2D simulation space) and place the circuit elements on the tiles so that the density of the circuit elements is similar between the tiles. When determining the location to place the circuit elements, the placer 214 can also attempt to minimize the number of nets that cross the tiles (minimize the cuts, as described below with reference to Figure 4 205). In this way, the placer module 214 can determine the physical layout of the circuit design in the simulation space of the simulation system 220. The placed netlist 207 indicates how the circuit design in the netlist 205 is mapped into the simulation space. For example, the placed netlist 207 may include information identifying the physical location and / or simulation resources associated with the circuit elements of the netlist 205. After the circuit elements are placed, the compiler can connect the circuit elements through the routing network. As part of the overall design process, routing can be performed by a separate router module (not shown).

[0046] The partition module 216 is responsible for dividing the circuit design into fragments for simulation. Specifically, the partitioner module 216 can decompose the placed netlist 207 into smaller fragments, which can be simulated independently, so that less memory is used than simulating the entire circuit design as one fragment. Each fragment / partition can be assigned to a separate simulation job, which can be executed in parallel with other simulation jobs on different processors or computers. The partitioner module 216 can use the placement of the circuit design in the simulation space as the starting point for generating partitions. That is, partitions can be formed by distributing simulation jobs on a grid in the simulation space, where each simulation job corresponds to a subgraph of the placed netlist 207. The partitioner module 216 can determine the number of partitions by considering the memory consumption of each partition. For example, the partitioner module 216 can limit the size of each partition based on the maximum allowed memory quantity of any given simulation job. Therefore, each partition can cover one or more tiles. In addition, in order to balance the memory consumption of the simulation job, the partitioner module 216 can make the partitions substantially consistent in size, such as making each partition have the same number of tiles.

[0047] In addition to placement and partitioning, compiler 210 or another component of the host computer system can also determine which signals to capture during simulation, such as which signals to designate as primary signals. Signal capture can be performed using hardware resources of simulation system 220. Depending on the implementation, capture resources can include dedicated tracing logic (e.g., pre-configured sampling circuits) and / or be allocated from the same hardware resource pool used for simulating circuit designs. For example, synthesizer module 212 can insert tracing logic into the design before or after synthesizing design information 204. Therefore, the inserted tracing logic can also be mapped to simulation resources by placer module 214.

[0048] The simulation system 220 includes hardware resources that are configured or configurable to reproduce the behavior of the circuit design, such as using the placed netlist 207 and in combination with functional verification. The simulation system 220 can be implemented using FPGA, ASIC and / or other types of simulation resources. Simulation resources are usually programmable, but fixed configuration devices can also be used as simulation resources. For example, the simulation system 220 can include replicas of one or more circuit elements to supplement the functionality provided by the FPGA. The simulation results generated by the simulation system 220 can include captured values ​​of signals used during the simulation performed by the simulation system 230. The simulation results can be sent to a host computer on which the compiler 210 is executed, for example, via a communication interface. Therefore, in some embodiments, the compiler 210 can act as an intermediary between the simulation system 220 and the simulation system 230.

[0049] The host computer system may receive the simulation results through a separate runtime module. The simulation results describe the values ​​of the captured signals over time and may be organized in frames, each frame covering one or more clock cycles of the simulation system 220. Figure 3 (described below) shows an example of a frame sequence that can be used to reconstruct a signal during simulation. However, other methods of obtaining simulation results for reconstructing signals during simulation can be used in conjunction with the technology disclosed herein. The host computer system can pass the simulation results to the simulation system 230 immediately after receiving the simulation results from the simulation system 220. Alternatively, the simulation results can be stored in the memory of the host computer system (e.g., saved as a file) for later use by the simulation system. The simulation results can also be sent to another computer system (e.g., when the simulation system 230 resides on a separate computer).

[0050] The simulation system 230 uses the simulation results from the simulation system 220 as input to simulate the circuit design. Using hardware simulation together with software simulation has certain advantages over simulation alone or simulation alone. From an information perspective, pure simulation is beneficial because the value of any signal of the circuit design is accessible at any time. This is because the waveform of each signal can be reconstructed using a model of the circuit design. If the entire circuit design is simulated, the simulation system has full visibility into the design. However, pure simulation can be computationally intensive. If the DUT is too large, simulating the entire design may take too long or require too much memory. In some cases, the memory requirements of the simulation job may exceed the amount of available memory, so the simulation job cannot even be started.

[0051] Emulation is much faster than simulation, typically about ten thousand or one hundred thousand times faster. However, signal visibility in simulation relies on the use of hardware resources (e.g., resources that implement tracing logic) to capture signals. A simulation system may not have enough of these resources to capture every signal of interest (e.g., every net or circuit cell within a netlist). Furthermore, even if a simulation system has sufficient resources, it may be necessary to slow down the simulation system to allow signals time to be ready for capture, or for value changes to be sent to the host computer. Thus, there is a tradeoff between how fast a simulation system can run and how much visibility the simulation system can achieve.

[0052] One way to achieve full visibility without pure simulation or pure emulation is to use a simulation system to capture a subset of signals that is sufficient to enable the simulation system to subsequently reconstruct the waveforms of all signals. For example, in combinatorial simulation, the circuit design is partitioned into combinatorial logic elements, and the value of any signal associated with a combinatorial element can be easily calculated as a function of the instantaneous value of each signal on which the particular signal depends. Only combinatorial signals, that is, signals associated with combinatorial elements, are reconstructed. However, this usually requires extracting a large amount of information from the simulation system. For example, in order to enable the simulation system to reconstruct each signal associated with a combinatorial element, the simulation system may need to provide a complete set of values ​​for each non-combinatorial signal (that is, any signal associated with a sequential or state-keeping element). In addition, the value of a non-combinatorial signal may need to be continuously sampled throughout the simulation period, such as by capturing the value of a flip-flop, latch, or other state-keeping element at each clock cycle. For example, this may potentially slow down the speed of the simulation system because the rate at which the simulation results can be extracted is limited by bandwidth.

[0053] Despite the potential for negatively impacting the performance of the simulation system, combinatorial simulation has certain advantages. One advantage is the relative ease of decomposing a netlist into smaller, well-balanced partitions, so that each partition can be independently simulated using combinatorial simulation. As a result, combinatorial simulation tends to be memory efficient and fast in terms of completion time.

[0054] Sequential simulation is another method of simulating circuit design. Sequential simulation uses less extracted signal information than combinatorial simulation, but is also significantly slower. This is because the signals are reconstructed on a per-simulation cycle basis, rather than simultaneously: the values ​​of sequential / state-holding elements (also called state elements) in one simulation cycle are propagated through non-state elements (such as combinatorial logic) to calculate the values ​​of sequential elements in the next simulation cycle. Additionally, due to the sequential dependencies between the inputs of sequential elements and their outputs, it is virtually impossible to decompose the netlist into smaller partitions that can be independently simulated using sequential simulation. On the contrary, sequential simulation may need to be performed on the entire circuit design, which results in higher memory costs because the entire netlist is maintained in memory throughout the sequential simulation. The total time to complete the simulation is also longer.

[0055] In order to enable simulation system 230 to perform sequential simulation in a memory efficient manner, simulation system 220 can be configured (e.g., by compiler 210 or runtime module programming) to extract a limited set of primary signals. This primary signal set includes a signal that breaks sequential dependency when provided as an input of sequential simulation. In this way, sequential simulation can be divided into simulation tasks that can be performed independently (e.g., in parallel), which reduces overall waveform reconstruction time. Additionally, circuit design can be partitioned in this way so that each simulation operation consumes roughly the same amount of memory, and is limited to a certain maximum allowed memory quantity. Therefore, the simulation operation can be balanced, and the upper limit of the memory footprint of each simulation operation can be guaranteed, while a smaller burden is imposed on simulation system 220.

[0056] Figure 3 An example of a frame sequence captured by a simulation system is shown. Figure 3 The examples shown are merely to illustrate that values ​​captured during simulation of a circuit design can be formatted for signal reconstruction during subsequent simulations of the same circuit design. However, other methods of obtaining simulation results may be used in conjunction with the simulation-related techniques disclosed herein.

[0057] exist Figure 3 In the simulation system, a frame sequence spanning w number of frame intervals has been captured. Each frame interval may cover one or more sampling cycles, and each sampling cycle is associated with a corresponding frame. For example, Figure 3 It is shown that each frame interval may include d number of sampling cycles, for a total of w*d sampling cycles / frame. In some examples, the sampling cycle corresponds to the clock cycle of the simulation system, ie, a single clock tick, but the sampling cycle and clock cycle of the simulator need not be the same.

[0058] Figure 3 It is also shown that the amount of data captured can vary from one sampling cycle to another. Figure 3 , represented by the height difference of the frames. Depending on how the simulation system is implemented, multiple types of frames may be supported. For example, the initial frame 302 in each frame interval may include the values ​​of each signal in the set of signals to be captured, but the subsequent frame 306 may only include changes in the values ​​of that set of signals. Thus, each frame 306 may include updated values ​​of any primary signals that changed between the instantaneous frame and the immediately preceding frame. If the simulation system is used to capture values ​​for combined simulation, then the primary signals will include signals associated with sequential elements. Similarly, if values ​​are captured for sequential simulation, then the primary signals will include combined signals. As explained above, combined simulation requires significantly more information to be extracted from the simulation system. Using Figure 3As an example, a combined simulation may require the capture of values ​​of all non-combined signals (i.e., values ​​of sequential elements) at each initial frame 302, and may also require the capture of any changes in the values ​​of the non-combined signals at each successive frame 306 in any given frame interval. That is, all non-combined signals may be sampled at each sampling cycle, and any changes in the values ​​of the non-combined signals may be recorded in the corresponding frames. Therefore, it can be expected that frames will typically carry significantly more data when used to support combined simulations than sequential simulations.

[0059] The simulation system may internally represent the circuit as a graph, where the vertices of the graph correspond to the circuit cells of the circuit netlist. To compute the value of a circuit cell / vertex v, the simulation system may first compute the fan-in value of v and then combine these values ​​to compute the output of v. This computation is possible as long as the circuit cell v has a known behavior that can be modeled.

[0060] Some circuit cells are combinatorial (e.g., AND gates, OR gates, or other non-state-holding elements). The output of a combinatorial circuit cell depends only on the values ​​of the input(s) of the combinatorial circuit cell. Other circuit cells are sequential (e.g., flip-flops, latches, or other state elements). The output of a sequential circuit cell depends on the values ​​of its inputs plus the current state of the sequential circuit cell.

[0061] Primitives may include signals associated with combinatorial circuit cells, sequential circuit cells, or both combinatorial circuit cells and sequential circuit cells. For convenience, some signals are made primary. For example, the output of a large memory may be designated as a primitive to save simulation computing resources. Some signals must be made primary because they cannot be calculated during simulation. In order to distinguish mandatory primary signals from signals that can be optionally designated as primary, mandatory primary signals may be referred to as primary inputs. For example, an input signal from outside the DUT may be changed by an external agent, and therefore, since the input signal cannot be calculated, it must be made primary. Which signals are considered primary inputs will depend on whether sequential or combinatorial simulation is to be performed. In the case of combinatorial simulation, all non-combinatorial signals (i.e., any signal associated with a sequence / state element) must be made primary because combinatorial simulation cannot reconstruct sequence signals. In addition, as discussed above, in the case of combinatorial simulation, sequential signals will be sampled (along with all other primary signals) at each sampling cycle.

[0062] When viewed in the context of a simulation netlist, a primary circuit cell can be disconnected from its inputs by removing any edges leading to its inputs. This is because the value of the primary circuit cell is assigned to the simulator, and since the simulator does not need to simulate that circuit cell, disconnecting it from its inputs does not change the results of the simulation. The graph resulting from disconnecting the inputs from each primitive in the primitive set P is denoted G\P in this article, and reflects the dependencies between circuit cells that must be simulated, since an edge (v1, v2) exists only when the value of circuit cell v2 depends on the value of circuit cell v1. Any two different weakly connected components of G\P can be simulated independently of each other, since there are no edges between these WCCs and therefore no value dependencies.

[0063] For combinatorial simulation, the set of primitives P must include all sequential elements. Therefore, the graph G\P for combinatorial simulation is usually decomposed into many WCCs, because in practice, the density of state elements in a circuit is relatively high (usually around 15% to 40%). Each of these WCCs can be simulated independently of each other and is significantly smaller than the original graph G. Therefore, combinatorial simulation has lower memory requirements than sequential simulation. However, as mentioned above, making all state elements primitives may significantly slow down the simulator (e.g., about a hundred or a thousand times slower) because there are many signals to capture.

[0064] In the case of sequential simulation, if the primitive set P consists only of primary inputs (i.e., combinational signals and other mandatory primitives), then the simulator can be run at full speed and sequential simulation can be used to provide full visibility. Thus, it is possible to sample all primary inputs on every sampling cycle while sampling at less frequent intervals (e.g. Figure 3 Sequential simulation is performed by sampling only a portion of the sequential elements every d sampling cycles in , where d is some integer greater than 1. In order to achieve efficient sequential simulation, it is not necessary to make every sequential element primary, because the value of the sequential element in the next sampling cycle can usually be calculated based on the current value of the sequential element (such as the initial state of a flip-flop), and the current value is propagated through some combinatorial logic that loops back to the input of the sequential element. However, the graph G\P of the sequential simulation is usually a single WCC that must be simulated as a whole. The memory requirements for simulating the entire graph G\P become a bottleneck. In order to enable sequential simulation to be performed independently on different parts of G\P, a small number of primitives can be added to the primitive set P in addition to the primary inputs. When the edges associated with these additional primitives are removed due to disconnecting the inputs from the additional primitives, some WCCs will be decomposed into smaller WCCs, which can then be simulated independently. In addition, the size of the primitive set P is expected to be much smaller than the set P that will be used for combinatorial simulation, even including these additional primitives.

[0065] Therefore, certain aspects of the present disclosure relate to determining which signals are primary in order to allow the partitions corresponding to the subcircuits to be simulated independently using sequential simulation so that the waveform of each subcircuit can be reconstructed independently of the other subcircuits. Various aspects of the present disclosure also relate to dividing the circuit design into balanced, predictably sized partitions so that when separate simulation jobs are used to simulate such partitions, the memory requirements of each simulation job are approximately the same. The problem to be solved in order to meet these goals can be stated as: adding a minimum number of additional primitives to P so that G\P is decomposed into n disconnected graphs of approximately the same size (e.g., size |G| / n). In addition, if the user wants to specify an upper limit M on the memory consumed by each simulation job, the user can choose n to be an integer value such that n≈|G| / M. In practice, the number of additional primitives is often small (usually less than 1% of the total number of state elements), so the impact on the speed of the simulation system is negligible.

[0066] Figure 4 illustrates an example partitioning of a circuit design. Figure 4 , the circuit design is divided into six partitions 402-A to 402-F, and partitions 402-A to 402-F have nine networks v1 to v9 across the partitions. For example, network v1 connects partitions 402-A and 402D, network v2 connects partitions 402A and 402-B, and network v3 has ports in partitions 402-A, 402-B, 402-D, and 402-E. Each partition 402 includes corresponding logic 410, for example, partition 402-A has logic 410-A, partition 402-B has logic 410-B, and so on. The logic 410 in each partition can include combinational logic, sequential logic, or both combinational logic and sequential logic. Therefore, the circuit unit whose output port is associated with each of these networks can be a state element (e.g., a trigger) or a non-state element (e.g., a logic gate).

[0067] One way to form partitions 402-A through 402-F is to use an n-way graph partitioner to partition the graph G of the circuit design into n balanced subgraphs (in this example, n=6) while minimizing the number of edges that cross between subgraphs. However, this can be computationally expensive. Another way to form the partitions is to use the physical placement of the circuit design in the simulator hardware as a starting point.

[0068] When the compiler places circuit cells into the simulator's simulation space (possibly using an n-way graph partitioner), the compiler typically tries to minimize the total hardware resources (e.g., area occupied) that the circuit cells occupy, while also minimizing cutouts. A cutout is the number of nets that cross a certain boundary of the grid. The boundary can be formed by physical features of the simulator (e.g., FPGA input / output pads, cable connections, backplanes, etc.). Alternatively, the boundary can be part of a virtual grid laid out on the simulator hardware so that the cutouts are measured. Minimizing cutouts helps make the simulator faster and avoids data congestion due to high network density. When too many nets are forced to travel in a small area, routing of the nets becomes difficult or even impossible.

[0069] The grid used by the compiler can be 2D, 3D, or generally multi-dimensional. The grid forms the tiling of the simulation space, as shown above. Figure 2 The operation of the placer module 214 in is discussed in detail. Here, the term "tile" is used in a broad sense to refer to any closed area. In 2D, the boundary is a line, and the tile is a polygon (such as a square or rectangle). In 3D, the boundary is a plane, and the tile is a polyhedron. Each tile can but does not have to have the same shape and size. It is assumed that the tiles are uniform, and given enough tiles, the simulation space can be divided into n subspaces of different shapes and sizes. This forms a partitioning of the entire circuit cell set V into individual sets V_k, a total of n sets (i.e., V_1, V_2, ..., V_n). The set V_k is balanced because, in practice, the density of circuit cells in the space is almost uniform. Therefore, in Figure 4 In the embodiment of the present invention, each partition 402 may correspond to one or more tiles for mapping the circuit design to the hardware resources of the simulation system. For example, partition 402-A may be a single tile, two tiles, or a group of three or more tiles.

[0070] Once the set V_K has been formed, all nets connecting circuit cells between different V_K can be designated as primary to form n disconnected balanced subgraphs that can be simulated independently. The set of nets connecting circuit cells between different V_K is denoted R, and the resulting graph with disconnected subgraphs is G\R. Assuming the compiler successfully minimizes the number of nets that cross tile boundaries, the total number of nets in R (in N) is smaller than the total number of nets in the entire circuit. Figure 4 ) will be small. Therefore, it can be expected that the size of the primitive set P will not increase significantly after R is added to the set P.

[0071] Based on the previous discussion, it can be seen that if Figure 4If all nine nets (v1 to v9) in are primary, then partitions 402-A to 402-F will become disconnected from each other and the subcircuit represented by each partition 402 can be simulated independently. However, the cost of making v1 to v9 primary is the use of additional hardware resources to capture changes in the values ​​of v1 to v9 during simulation. As mentioned above, the size of R is small, so the additional cost may be negligible. A more difficult challenge is the ability of the simulation system to successfully capture changes in value. If the value of a network cannot stabilize before being captured, then the speed at which the simulation system runs must be reduced to allow sufficient time for stabilization.

[0072] Figure 5 An example of timing constraints for sampling a signal during simulation is shown. Figure 5 , circuit 500 is divided into two partitions 502-A and 502-B. Partition 502-A includes a first flip-flop 510 (FF1), a circuit cell 505, and some combinational logic 512 connecting the flip-flop 510 to the circuit cell 505. In this example, the circuit cell 505 is a non-state element (depicted as a buffer). Partition 502-B includes a second flip-flop 520 (FF2) and some combinational logic 522. A network 515 (labeled v) associated with the output port of the circuit cell 505 crosses the boundary between partitions 502-A and 502-B. Additionally, both flip-flops 510 and 520 are driven by a clock signal generated by a third flip-flop 530, which runs off a clock signal (clk) 504.

[0073] Making circuit cell 505 primary can be challenging because the path from first flip-flop 510 to second flip-flop 520 is a multi-cycle path, meaning that multiple cycles of clock signal 504 are required for the signal to propagate from the input of FF1 to the output of FF2. In this example, the timing constraint between FF1 and FF2 is equal to twice the clock period of clock signal 504, i.e., delay_1+delay_2≤2 / f, where delay_1 is the delay between FF1 and the output of circuit cell 505, delay_2 is the delay between circuit cell 505 and FF2, and f is the frequency of clock signal 504. If the value of net 515 is sampled based on frequency f, this would require delay_1 to be less than or equal to 1 / f, which may not always hold. Instead, the simulation system can be configured to sample the value of net 515 using a frequency less than or equal to 1 / delay_1, but this assumes that the timing behavior of the circuit can be evaluated at primitive insertion to confirm that the value of net 515 has stabilized when it is to be sampled, which may not be the case. Furthermore, sampling at a frequency different from the base clock 504 may require more hardware resources from the simulation system, or worse, may require slowing down the simulation system by reducing the frequency f. Therefore, it is not always possible to make signals across partitions primary. In other words, it is usually not possible to break sequential dependencies between partitions simply by making every net in the set R primary.

[0074] Thus, breaking the sequential dependency may involve determining which nets in set R can safely become primary from a timing perspective, and for any nets in R that cannot become primary, identifying one or more candidate primary signals (nets not included in R) that will break the sequential dependency. Figure 6 As shown, these candidate primitives can be identified by evaluating the TFI and TFO of networks that cannot become primary.

[0075] Figure 6An example of evaluating signals in TFI and TFO of a network across partitions in order to break sequential dependencies is shown. There is no need to evaluate TFI and TFO, because the network in question can be safely made primary. An example is when the network corresponds to the output port of a state element (e.g., a flip-flop). Making the output of a state element primary does not impose any additional timing constraints, because the value at the output representing the current state of the state element is guaranteed to be stable. Therefore, in some embodiments, TFI and TFO are evaluated only when the target network is not associated with the output of the state element. If so, it can be determined whether the network can be sampled without slowing down the operating frequency of the circuit during simulation, and without causing the risk that the value of the network is not yet stable when sampling. However, this determination depends on the availability of timing analysis tools and a thorough understanding of the timing behavior of the circuit. Therefore, TFI and TFO evaluation can be performed in the following situations: there is no such timing analysis tool, or the result of the timing analysis indicates that the network cannot be made primary because the network is on a multi-cycle path.

[0076] exist Figure 6 In the example, for simulation purposes, the circuit 600 is divided into six partitions 602 (e.g., partition 602-A and partition 602-B). Figure 4 As discussed, such partitions can be formed by a grid created when a circuit is placed into a simulation space of a simulation system. The partitions 602 are depicted as being adjacent to each other to indicate that the simulation space can be physically continuous. In addition, the partitions 602 are depicted as forming a rectilinear grid to indicate that the tiles of the grid can also be rectilinear (e.g., 2D squares or 3D boxes) and of uniform size.

[0077] Net 615 straddles the boundary between partition 602-A and partition 602-B. If net 615 cannot be made primary, one option to break the sequential dependency associated with net 615 is to make TFI 610 along net 615 a notch 612 and designate each signal 606 along notch 612 as primary. Similarly, a second option is to make TFO 620 along net 615 a notch 614 and designate each signal 608 along notch 614 as primary. However, notches 612 and 614 cannot be made arbitrarily because signals 606 and 608 may be subject to timing constraints similar to net 615 itself.

[0078] One solution to this problem is to track the paths within the TFI and TFO to reach the termination point corresponding to the first state element encountered along each path. All such state elements can then be made elementary, because, as explained above, doing so does not impose any additional timing constraints. The choice then becomes whether to make the state elements in TFI 610 elementary or the state elements in TFO 620 elementary. Either choice is sufficient to break the sequential dependency between partition 602-A and partition 602-B relative to network 615. In order to minimize the total number of primitives, either TFI or TFO can be selected to have fewer state elements.

[0079] Primitives can be determined by considering each pair of partitions separately, one at a time. For example, a set of primitives P can be constructed by considering each network that crosses the boundary between a given pair of partitions and exploring the TFO and TFI of these networks as necessary before considering networks that cross another pair of partitions. However, the networks do not have to be evaluated in any particular order. Therefore, one way to determine primitives is to first identify all networks that cross partitions, regardless of where the crossing occurs, and then apply a greedy algorithm to evaluate one network at a time, exploring the TFI and TFO of each network as necessary until every network that crosses partitions has been evaluated. In the discussion below Fig. 9 An example of such an algorithm is shown in .

[0080] Figure 7 A more detailed example of TFI and TFO analysis is shown in Figure 7 , network 715 crosses the boundary between the first partition 702-A and the second partition 702-B. Network 715 also crosses the boundary between partition 702-A and the third partition 702-C. Therefore, network 715 has ports in all three partitions 702-A, 702-B, and 702-C. Specifically, network 715 corresponds to the output port of AND gate 704, the input port of AND gate 706, and the input port of buffer 708.

[0081] AND gate 704 is positioned along the TFI of network 715. Here, the TFI is depicted as having a first portion 712 and a second portion 714, each portion representing a logic cone leading to a respective input of AND gate 704. It is to be appreciated that the TFI may include the same number of portions representing respective cone logic, resulting in the same number of inputs to AND gate 704, without departing from the scope of the present disclosure. The basis of the logic cones 712 and 714 is defined by evaluating the TFI until the first state element encountered along each path in the TFI. In this example, the basis of the first logic cone 712 corresponds to the output ports of a pair of flip-flops 716-A and 716-B, while the basis of the second logic cone 714 corresponds to the output ports of flip-flop 716-B plus flip-flop 716-C. Thus, the first logic cone 712 and the second logic cone 714 overlap.

[0082] AND gate 706 is located along the TFO of network 715. AND gate 706 is connected to a pair of flip-flops 716-D and 716-E through logic cone 718. Buffer 708 is also located along the TFO of network 715. Therefore, the TFO extends through partition 702-B and partition 702-C. Buffer 708 leads to three flip-flops 716-F, 716-G, and 716-H, which are located at the base of logic cone 720. Each logic stack in the above logic cones (712, 714, 718, and 720) includes non-state retention circuit elements, such as combinational logic similar to AND gate 704, AND gate 706, and buffer 708.

[0083] The sequential dependency associated with network 715 is directional and can be characterized as the dependency between partition 702-A and partition 702-B, plus the dependency between partition 702-A and partition 702-C, since partition 702-A produces network 715 as input to the other two partitions 702-B and 702-C. One option to break the dependency between partition 702-A and partition 702-B is to make each state element connected to the basis of logic cones 712 and 714 primary (i.e., flip-flops 716-A, 716-B, and 716-C). This will also break the dependency between partition 702-A and partition 702-C, thereby completely removing the dependency associated with network 715. Alternatively, exploring the TFO direction, the dependency associated with network 715 can be removed by making each state element connected to the basis of logic cones 718 and 720 primary (i.e., 716-D, 716-E, 716-F, 716-G, and 716-H). Correlations can be viewed one network at a time. One benefit of this is that when determining which primitives to add to break correlations associated with a particular network (e.g., 715), one can often take advantage of the fact that some of the signals that can be used to break correlations are already rudimentary, such as when adding primitives to break correlations associated with different networks.

[0084] It should be noted that when signals in a TFI or TFO become primary, this may result in a slight redistribution of the subcircuits so that some subcircuits are no longer completely within the region in which they were partitioned. Figure 6 , if the state element that becomes primary is located along cut 612, a portion of the subcircuit assigned to partition 602-A will now belong to the subcircuit assigned to partition 602-B. Therefore, the tiles of space corresponding to partition 602 may not correspond to the actual boundaries of the subcircuit to be simulated. However, due to having a similar number of circuit elements, it can be expected that the subcircuits remain approximately balanced in size. Moreover, since the sequential dependencies between the subcircuits have been broken, the subcircuits can be simulated independently using sequential simulation, so the reconstruction of a signal in one subcircuit will not depend on the signal in another subcircuit.

[0085] Figure 8 is a flow chart of a method 800 for simulating a circuit design using primary signals captured during simulation, according to some embodiments. Figure 8The functionality depicted may be implemented using one or more computer systems configured to perform simulations using simulation results extracted from a simulation system. At least one of these computer systems (e.g., a host computer) may be communicatively coupled to the simulation system, for example, to retrieve simulation results and / or program the simulation system to capture values ​​for a specific set of primary signals, etc. In some embodiments, the simulation system may be configured to perform simulations using simulation results extracted from the simulation system. Figure 1 and 2 The systems and devices shown are used to perform method 800.

[0086] At 802, the circuit design is divided into partitions of substantially uniform size. The size of the partitions, and therefore the total number of partitions, can be determined based on the amount of memory available for simulation of the circuit design. For example, the compiler can determine the number of partitions n by estimating the size of the partitions required to keep the amount of memory used to simulate each partition below a certain upper limit M, and then partitioning the circuit design accordingly. As discussed above, the value of the memory limit M can be user-specified. In some instances, the user can also specify a target value for n. In this case, the compiler can use the target value as a lower limit on the number of partitions, and increase the number of partitions as needed to remain within the memory limit M.

[0087] Partitions can be formed by placing circuit designs in the simulation space of the simulation system. Therefore, the functionality in 802 can be executed after the compiler completes placing the circuit design to prepare for simulation. The simulation space is usually divided into tiles of regular shapes (e.g., composed of straight lines), in which case the partitions created in 802 will also be regular shapes. However, tiles may be irregular. For example, a 2D tile may be a polygon with edges of unequal lengths and different interior angles. Each partition corresponds to one or more placeable areas in the simulation space. For example, if the simulation system includes multiple boards, each board has its own FPGA set, so each partition may correspond to a single board, a part of a board (e.g., four FPGAs) or a group of boards.

[0088] At 804, sequential dependencies are identified based on the cross-partition signals. Figure 4 As discussed, the signals across partitions may correspond to nets in a netlist of a circuit design. Figure 2 In , each net in the placed netlist 207 can be evaluated to determine whether the net extends between partitions. Any net that crosses partitions represents a sequential dependency that needs to be broken in order to simulate the partitions independently.

[0089] At 806, a set of primary signals is determined that, when provided as inputs to a simulation, breaks sequential dependencies such that each partition can be simulated independently. As discussed above, the set of primary signals (denoted as P) may include mandatory primary inputs as well as signals that are optionally designated as primary. Thus, the determination at 806 may involve determining which signals become primary in addition to signals that have already been determined as primary inputs. Alternatively, the determination at 806 may involve first determining which signals will break sequential dependencies (e.g., starting with an empty set P), and thereafter determining the primary inputs. Additionally, due to the removal of networks that are associated with cross-partitions (e.g., Figure 7 The dependencies associated with network 715 in the partitioned circuit design will sometimes involve making the network itself primary, but other times involve making other networks primary (such as networks in TFI or TFO), and the primary signal set P formed as a result of breaking all sequential dependencies on the entire circuit design is expected to include only a subset of the networks across the partitions.

[0090] At 808, a hardware-based simulation system (e.g., simulation system 120) is configured to capture the values ​​of the primary signal set determined in 806. For example, the simulation system can be configured through programming performed by a compiler or runtime module. Once the simulation system is configured, the simulation system can be instructed to begin simulation of the circuit design. During the simulation, the simulation system will capture the values ​​of the primary signal set, including any changes in the values ​​during the simulation. The sampling rate at which the simulation system captures these values ​​can be configurable or fixed.

[0091] At 810, the circuit design is simulated using the values ​​captured by the simulation system (e.g., by simulation system 230). During simulation, signals not included in the set of primary signals (i.e., non-primary signals) are reconstructed using the values ​​obtained from independently simulating each partition. The values ​​captured by the simulation system are used as inputs to the simulation, so the primary signals do not have to be calculated during simulation.

[0092] Fig. 9 is a flow chart illustrating a process 900 for determining a primary signal set according to some embodiments. The process 900 may be used to implement Figure 8 The functionality in 802, 804 and 806 of , and corresponds to a greedy algorithm approach to determining which signals become primary.

[0093] At 902, a graph G induced by a placed netlist of a circuit design to be simulated is determined. The functionality in 902 may be implemented using a compiler that may maintain a graph view of the placed netlist as an internal (eg, in memory) representation of the circuit design during the compilation process.

[0094] At 904, the maximum amount of memory M allowed for the simulation job is obtained. As discussed above, M can represent an upper limit on the amount of memory consumed by each simulation job (e.g., simulation of a single partition). The value of M can be expressed in any unit of measure for memory, such as megabytes.

[0095] At 906, the magnitude of the size of the graph G is divided by M and rounded up to the nearest integer to compute a value for the total number of partitions n that the circuit design is to be partitioned into. The computation at 906 may involve converting the total number of vertices in G to a value representing the amount of memory expected to be consumed by the entire graph.

[0096] At 908, the grid created during placement of the circuit design into the simulation space is divided into n uniformly sized tiles. Each tile is a partition representing a subcircuit to be simulated independently. Additionally, at 908, the primitive set P is initialized to an empty set.

[0097] At 910, each net contained in the placed netlist is placed into a candidate primary signal set S. The set S represents a running list of nets that have not yet been evaluated to determine whether they should become primary.

[0098] At 912, it is determined whether the set S is empty. If so, there are no networks to evaluate, and the process 900 terminates. Otherwise, the process 900 proceeds to 914.

[0099] At 914, a single net v is removed from the set S for evaluation. The nets in the set S need not be evaluated in any particular order. However, the set S may be implemented as an ordered list or queue so that the nets are evaluated in a sequential order, such as the order in which the nets appear within the placed netlist.

[0100] At 916, it is determined whether the network v removed in 914 has all its ports in a single tile. If so, the process returns to 912 because the network v does not cross any boundaries between tiles. Otherwise, this means that the network v has input ports in one tile and output ports in another tile. In this case, the process proceeds to 918.

[0101] At 918, it is determined whether network v has been designated as a primary signal. If so, no action is required with respect to network v, and the process returns to 912. Otherwise, the process proceeds to 920.

[0102] At 920, it is determined whether the network v is a state element. Under the assumption described earlier, where each network can be identified by a circuit unit that has its output port, this is equivalent to determining whether the circuit unit associated with the network v is in a state hold (e.g., a flip-flop). If the network v is a state element, then the process proceeds to 922. Otherwise, the process proceeds to 924.

[0103] At 922, network v is added to the primitive set P. Network v is added in this case because making the state element primary does not impose additional timing constraints. Therefore, network v can be made primary without sacrificing simulator performance, e.g., the simulation system does not have to be slowed down by reducing the operating frequency of the circuit.

[0104] If it is determined at 920 that network v is not a state element, then network v cannot automatically become primary, but must be further evaluated. Therefore, at 924, it is determined whether network v can be sampled at a certain default frequency. The default frequency can correspond to the sampling rate used by the simulation system to capture signal values. In some examples, the sampling rate is related to the operating frequency of the circuit itself (e.g., Figure 5 504 in the sampling rate). However, the sampling rate and the operating frequency of the circuit may be different. The determination at 920 can be performed by a timing analysis of the circuit. If the network v can be sampled at the default frequency (for example because the value of v is guaranteed to be stable at the time of capture), then the process proceeds to 922 and the network v is added to the primitive set P. In this way, a network v that is not a state element can still become primary. Otherwise, the process proceeds to 926.

[0105] At 926, the TFI and TFO of network v are calculated until the state element. That is, the end point of the TFI and TFO can be identified by tracing each path to or from network v until a first state element is encountered along the path. This produces a first set of state elements in the TFI of network v and a second set of state elements in the TFO of network v. Each of these two sets can represent one or more candidate primary signals.

[0106] At 928, set T is determined to be whichever of the two sets of state elements determined in 926 has the least number of non-primary state elements. The determination of set T minimizes the number of additional primitives that are added. For example, a TFI may have six state elements, and a TFO may have ten state elements, but only one of the six state elements in the TFI is currently primary, while seven of the ten state elements in the TFO are currently primary. In this example, given the choice between adding five new primitives based on the TFI and adding three new primitives based on the TFO, the component that determines the primitives (e.g., a compiler) will use the networks associated with the state elements in the TFO to form set T.

[0107] At 930, it is determined whether the set T is empty. If so, there are no primitives to be added with respect to the network v, and the process returns to 912. Otherwise, the process proceeds to 932.

[0108] At 932, a single network is removed from set T and added to set of primitives P before returning to 930. In this way, each network in set T will be added to set of primitives P, one network at a time. Process 900 eventually terminates when the determination at 912 indicates that there are no remaining networks to evaluate, i.e., when set S becomes empty.

[0109] The functionality in process 900 can be summarized as follows. Given a circuit G placed in a grid and a desired memory limit M:

[0110] 1. Let n be an integer that rounds up to |G| / M.

[0111] 2. Divide the grid into n tiles of (roughly) the same shape and size.

[0112] 3. Identify all inter-tile nets. These are nets that contain at least two ports in two different tiles.

[0113] 4. For each inter-tile network that is not primary:

[0114] i. If the network is the output of a state element, make the network primary.

[0115] ii. Otherwise, if it can be determined that the network can be stable at the capture frequency, then make the network primary.

[0116] iii. Otherwise visit the TFI and TFO of the network until the state element. Determine which of the TFI or TFO contains the minimum number of non-primary state elements. Make all non-primary state elements primary.

[0117] Fig.10An example set of processes 1000 used during the design, verification, and fabrication of an article such as an integrated circuit is illustrated to transform and verify design data and instructions representing the integrated circuit. Each of these processes can be structured and enabled as multiple modules or operations. The term "EDA" stands for electronic design automation. These processes begin with the creation of a product concept 1010 using information supplied by a designer, which is transformed to create an article using a set of EDA processes 1012. When the design is finalized, the design is taped out 1034, which is when the artwork (e.g., geometric pattern) for the integrated circuit is sent to a fabrication facility to manufacture a mask set, which is then used to manufacture the integrated circuit. After tapeout, semiconductor die are fabricated 1036, and packaging and assembly processes 1038 are performed to produce a completed integrated circuit 1040.

[0118] The specification for a circuit or electronic structure can range from a low-level transistor material layout to a high-level description language. The high-level representation can be used to design circuits and systems using a hardware description language (HDL) such as VHDL, Verilog, SystemVerilog, SystemC, MyHDL, or OpenVera. The HDL description can be transformed into a logic-level register transfer level (RTL) description, a gate-level description, a layout-level description, or a mask-level description. Each lower level of representation as a more detailed description adds more useful detail to the design description, such as more detail of the modules that comprise the description. The lower-level representation as a more detailed description can be computer-generated, derived from a design library, or created by another design automation process. An example of a specification language for specifying a lower-level representation language for a more detailed description is SPICE, which is used for detailed descriptions of circuits with many analog components. The description at each level of representation is enabled for use by a corresponding system for that layer, such as a formal verification system. The design process can use Fig.10 The depicted sequence. The described process is enabled by an EDA product (or EDA system).

[0119] During system design 1014, the functionality of the integrated circuit to be manufactured is specified. The design can be optimized for desired characteristics such as power consumption, performance, area (physical and / or lines of code), and cost reduction. The design can be partitioned into different types of modules or components at this stage.

[0120] During logic design and functional verification 1016, modules or components in a circuit are specified in one or more description languages ​​and the functional accuracy of the specifications is checked. For example, components of a circuit can be verified to generate outputs that match the requirements of the specification of the circuit or system being designed. Functional verification can use simulators and other programs such as test bench generators, static HDL checkers, and formal verifiers. In some embodiments, special systems of components called "emulators" or "prototyping systems" are used to accelerate functional verification.

[0121] During synthesis and design for test 1018, the HDL code is transformed into a netlist. In some embodiments, the netlist can be a graph structure, where the edges of the graph structure represent components of the circuit, and the nodes of the graph structure represent how the components are interconnected. Both the HDL code and the netlist are layered artifacts that can be used by EDA products to verify that the integrated circuit performs according to the specified design when manufactured. The netlist can be optimized for the target semiconductor manufacturing technology. Additionally, the completed integrated circuit can be tested to verify that the integrated circuit meets the requirements of the specification.

[0122] During netlist verification 1020, the netlist is checked for compliance with timing constraints and correspondence with the HDL code. During design planning 1022, an overall floor plan of the integrated circuit is constructed and analyzed for timing and top-level routing.

[0123] During layout or physical implementation 1024, physical placement (positioning of circuit components such as transistors or capacitors) and routing (connecting circuit components through multiple conductors) occur, and selection of circuit cells from a library can be performed to enable specific logic functions. As used herein, the term "circuit cell" can specify a collection of transistors, other components, and interconnections that provide Boolean logic functions (e.g., AND, OR, NOT, XOR) or storage functions (such as flip-flops or latches). As used herein, a circuit "block" can refer to two or more circuit cells. Both circuit cells and circuit blocks can be referred to as modules or components and are enabled in both physical structures and simulations. Parameters are specified for the selected circuit cell (based on standard circuit cells), such as size, and made accessible in a database for use by EDA products.

[0124] During analysis and extraction 1026, the circuit functionality is verified at the layout level, which allows the layout design to be refined. During physical verification 1028, the layout design is checked to ensure that manufacturing constraints (such as design rule checking (DRC) constraints, electrical constraints, lithography constraints) are correct and that the circuit device functionality matches the HDL design specifications. During resolution enhancement 1030, the geometry of the layout is transformed to improve the way the circuit design is manufactured.

[0125] During tape-out, data is created for the production of lithographic masks (after lithographic enhancements are applied, if appropriate).During mask data preparation 1032, the tape-out data is used to generate lithographic masks, which are used to produce the finished integrated circuit.

[0126] The storage subsystem of a computer system (such as Fig.12 Computer system 1200 or Fig.11 A host computer 1107) can be used to store programs and data structures used by some or all of the EDA products described herein, as well as products for developing circuit elements of the library and for physical and logical designs that use the library.

[0127] Fig.11 A diagram of an example simulation environment 1100 is depicted. The simulation environment 1100 can be configured to verify the functionality of a circuit design. The simulation environment 1100 can include a host system 1107 (e.g., a computer as part of an EDA system) and a simulation system 1102 (e.g., a programmable device such as a field programmable gate array (FPGA) or a collection of processors). The host system simulates the circuit design by using a compiler 1110 to generate data and information to structure the simulation system. The circuit design to be simulated is also referred to as a design under test (DUT), where data and information from the simulation are used to verify the functionality of the DUT.

[0128] The host system 1107 may include one or more processors. In embodiments where the host system includes multiple processors, the functions performed by the host system described herein may be distributed among the multiple processors. The host system 1107 may include a compiler 1110 for transforming a specification written in a description language representing the DUT and generating data (e.g., binary data) and information that is used by the structured simulation system 1102 to simulate the DUT. The compiler 1110 may transform, change, restructure the DUT, add new functionality to the DUT, and / or control its timing.

[0129] Host system 1107 and simulation system 1102 use the signal carried by simulation connection to exchange data and information. Connection can be but not limited to one or more cables, such as a cable with a pin structure compatible with Recommended Standard 232 (RS232) or Universal Serial Bus (USB) protocol. The connection can be a wired communication medium or network, such as a local area network or a wide area network (such as the Internet). Using a wireless protocol (such as Bluetooth or IEEE 802.11), the connection can be a wireless communication medium or a network with one or more access points. Host system 1107 and simulation system 1102 can exchange data and information through a third device (such as a network server).

[0130] The simulation system 1102 includes a plurality of FPGAs (or other modules), such as FPGA 1104 1 and 1104 2 and additional FPGA to 1104 N . Each FPGA may include one or more FPGA interfaces through which the FPGA is connected to other FPGAs (and potentially other simulation components) for the FPGA to exchange signals. FPGA interfaces may be referred to as input / output pins or FPGA pads. Although the simulator may include an FPGA, embodiments of the simulator may include other types of logic blocks in place of or in conjunction with the FPGA for simulating the DUT. For example, the simulation system 1102 may include a custom FPGA, a dedicated ASIC for simulation or prototyping, memory, and input / output devices.

[0131] A programmable device may include an array of programmable logic blocks and a hierarchy of interconnections, which may be capable of interconnecting the programmable logic blocks according to descriptions in HDL code. Each of the programmable logic blocks may enable complex combinatorial functions, or enable logic gates, such as AND logic blocks and XOR logic blocks. In some embodiments, the logic blocks may also include memory elements / devices, which may be simple latches, flip-flops, or other memory blocks. Depending on the length of the interconnections between different logic blocks, signals may arrive at the input terminals of the logic blocks at different times, and may therefore be temporarily stored in the memory elements / devices.

[0132] FPGA 1104 1 to 1104 N Can be placed on one or more boards 1112 1 and 1112 2 And additional board to 1112 M Multiple boards can be placed in the simulation unit 1114 1 Boards within a simulation unit can be connected using the simulation unit's backplane or any other type of connection. In addition, multiple simulation units (e.g., 1114 1 and 1114 2 to 1114 K ) can be connected to each other by cables or any other components to form a multi-simulation unit system.

[0133] For the DUT to be simulated, the host system 1107 sends one or more bit files to the simulation system 1102. The bit file can specify a description of the DUT, and can also specify the partitions of the DUT created by the host system 1107 using the trace and injection logic, the mapping of the partitions to the FPGA of the simulator, and the design constraints. Using the bit file, the simulator structures the FPGA to perform the functions of the DUT. In some embodiments, one or more FPGAs of the simulator already have the trace and injection logic built into the silicon of the FPGA. In such an embodiment, the FPGA may not be structured by the host system to simulate the trace and injection logic.

[0134] The host system 1107 receives a description of the DUT to be simulated. In some embodiments, the DUT description is in a description language (e.g., register transfer language (RTL)). In some embodiments, the DUT description is in a netlist-level file, or in a mixture of a netlist-level file and an HDL file. If part of the DUT description or the entire DUT description is in HDL, the host system can synthesize the DUT description to create a gate-level netlist using the DUT description. The host system can partition the DUT into multiple partitions using the netlist of the DUT, one or more of which include tracing and injection logic. The tracing and injection logic traces interface signals exchanged via an interface of the FPGA. Additionally, the tracing and injection logic can inject the traced interface signals into the logic of the FPGA. The host system maps each partition to the FPGA of the simulator. In some embodiments, the tracing and injection logic is included in a selected partition of a set of FPGAs. The tracing and injection logic can be built into one or more FPGAs of the simulator. The host system can synthesize a multiplexer to be mapped into the FPGA. The tracing and injection logic can use the multiplexer to inject the interface signal into the DUT logic.

[0135] The host system creates a bit file that describes each partition of the DUT and the mapping of the partitions to the FPGA. For partitions that include trace and injection logic, the bit file also describes the logic included. These bit files can include location and routing information and design constraints. The host system stores the bit file and information describing which FPGAs will emulate each component of the DUT (e.g., which FPGAs each component is mapped to).

[0136] Upon request, the host system sends the bit file to the simulator. The host system signals the simulator to start simulation of the DUT. During or at the end of simulation of the DUT, the host system receives simulation results from the simulator through the simulation connection. The simulation results are data and information generated by the simulator during simulation of the DUT, which include interface signals and the states of the interface signals that have been traced by the trace and injection logic of each FPGA. The host system can store the simulation results and / or send the simulation results to another processing system.

[0137] After simulation of the DUT, the circuit designer can request to debug a component of the DUT. If such a request is made, the circuit designer can specify a simulation time period to be debugged. The host system uses the stored information to identify which FPGAs are simulating components. The host system retrieves the stored interface signals associated with the time period and tracked by the trace and injection logic of each identified FPGA. The host system signals the simulator to re-simulate the identified FPGA. The host system sends the retrieved interface signals to the simulator to re-simulate the component within the specified timing period. The trace and injection logic of each identified FPGA injects the corresponding interface signals received from the host system into the logic of the DUT mapped to the FPGA. In the case of multiple re-simulations of the FPGA, the merged results will produce a complete debug view.

[0138] The host system receives signals traced by the logic of the identified FPGA from the simulation system during the re-simulation of the component. The host system stores the signals received from the simulator. The signals traced during the re-simulation may have a higher sampling rate than the sampling rate during the initial simulation. For example, in the initial simulation, the traced signals may include component states saved every X milliseconds. However, in the re-simulation, the traced signals may include states saved every Y milliseconds, where Y is less than X. If the circuit designer requests to view the waveform of the signal traced during the re-simulation, the host system can retrieve the stored signal and display a signal graph. For example, the host system can generate the waveform of the signal. Thereafter, the circuit designer can request to re-simulate the same component or re-simulate another component in different time periods.

[0139] The host system 1107 and / or the compiler 1110 may include subsystems, such as but not limited to a design synthesizer subsystem, a mapping subsystem, a runtime subsystem, a result subsystem, a debugging subsystem, a waveform subsystem, and a storage subsystem. The subsystems may be structured and enabled as a single module or multiple modules, or two or more may be structured as one module. These subsystems together structure the simulator and monitor the simulation results.

[0140] The design synthesizer subsystem transforms the HDL representing the DUT 1105 into gate-level logic. For the DUT to be simulated, the design synthesizer subsystem receives a description of the DUT. If the description of the DUT is in HDL in whole or in part (e.g., RTL or other representation level), the design synthesizer subsystem synthesizes the HDL of the DUT to create a gate-level netlist having the description of the DUT with respect to the gate-level logic.

[0141] The mapping subsystem partitions the DUT and maps the partitions to the simulator FPGA. The mapping subsystem uses the netlist of the DUT to partition the DUT at the gate level into multiple partitions. For each partition, the mapping subsystem retrieves the gate-level description of the tracing and injection logic and adds the logic to the partition. As described above, the tracing and injection logic included in the partition is used to trace the signals (trace interface signals) exchanged via the interface of the FPGA to which the partition is mapped. The tracing and injection logic can be added to the DUT before partitioning. For example, the tracing and injection logic can be added by the design synthesizer subsystem before or after synthesizing the HDL of the DUT.

[0142] In addition to including trace and injection logic, the mapping subsystem may include additional trace logic in the partitions to trace the states of certain DUT components that are not traced and injected with trace. The mapping subsystem may include the additional trace logic in the DUT before partitioning or in the partitions after partitioning. The design synthesizer subsystem may include the additional trace logic in the HDL description of the DUT before synthesizing the HDL description.

[0143] The mapping subsystem maps each partition of the DUT to the FPGA of the simulator. For the partitioning and mapping, the mapping subsystem uses the design rules, design constraints (such as timing or logic constraints), and information about the simulator. For the components of the DUT, the mapping subsystem stores information in the storage subsystem describing which FPGA will simulate each component.

[0144] Using the partitions and mappings, the mapping subsystem generates one or more bit files that describe the created partitions and the mapping of the logic to each FPGA of the simulator. The bit files may include additional information such as constraints for the DUT and routing information for connections between FPGAs and within each FPGA. The mapping subsystem may generate a bit file for each partition of the DUT and may store the bit files in the storage subsystem. Based on a request from a circuit designer, the mapping subsystem sends the bit file to the simulator and the simulator may use the bit file to structure the FPGA to simulate the DUT.

[0145] If the emulator includes a dedicated ASIC that includes trace and injection logic, the mapping subsystem can generate a specific structure that connects the dedicated ASIC to the DUT. In some embodiments, the mapping subsystem can save information of the traced / injected signals and the information is stored on the dedicated ASIC.

[0146] The runtime subsystem controls the simulation performed by the simulator. The runtime subsystem may cause the simulator to start or stop performing the simulation. Additionally, the runtime subsystem may provide input signals and data to the simulator. The input signal may be provided directly to the simulator via a connection, or indirectly to the simulator via other input signal devices. For example, the host system may control the input signal device to provide the input signal to the simulator. The input signal device may be, for example, a test board (directly or via a cable), a signal generator, another simulator, or another host system.

[0147] The result subsystem processes the simulation results generated by the simulator. During simulation and / or after the simulation is completed, the result subsystem receives the simulation results generated during the simulation from the simulator. The simulation results include signals tracked during the simulation. Specifically, the simulation results include interface signals tracked by the tracking and injection logic simulated by each FPGA, and may include signals tracked by additional logic included in the DUT. Each tracked signal may span multiple cycles of the simulation. The tracked signals include multiple states, and each state is associated with the simulation time. The result subsystem stores the tracked signals in the storage subsystem. For each stored signal, the result subsystem may store information indicating which FPGA generated the tracked signal.

[0148] The debug subsystem allows the circuit designer to debug a DUT component. After the simulator has simulated the DUT and the results subsystem receives the interface signals traced by the trace and injection logic during simulation, the circuit designer can request to debug a component of the DUT by re-simulating the component for a specific time period. In the request to debug a component, the circuit designer identifies the component and indicates the simulation time period to be debugged. The circuit designer's request may include a sampling rate that indicates how often the state of the debug component should be saved by the logic that traces the signals.

[0149] The debug subsystem identifies one or more FPGAs of the emulator that emulate the components using information stored in the storage subsystem by the mapping subsystem. For each identified FPGA, the debug subsystem retrieves from the storage subsystem interface signals traced by the trace and injection logic of the FPGA during a time period indicated by the circuit designer. For example, the debug subsystem retrieves states traced by the trace and injection logic associated with the time period.

[0150] The debug subsystem sends the retrieved interface signals to the emulator. The debug subsystem instructs the debug subsystem to use the identified FPGAs and instructs the trace and injection logic of each identified FPGA to inject its corresponding traced signals into the logic of the FPGA to re-emulate the component within the requested time period. The debug subsystem may also send the sampling rate provided by the circuit designer to the emulator so that the trace logic traces the state at appropriate intervals.

[0151] To debug a component, the simulator can use the FPGA to which the component has been mapped. Additionally, re-simulation of the component can be performed at any point specified by the circuit designer.

[0152] For the identified FPGA, the debug subsystem can send instructions to the simulator to load multiple simulator FPGAs with the same configuration of the identified FPGA. Additionally, the debug subsystem signals the simulator to use multiple FPGAs in parallel. Each FPGA from the multiple FPGAs is used together with a different time window of the interface signal to generate a larger time window in a shorter amount of time. For example, the identified FPGA may take an hour or more to use a certain number of cycles. However, if multiple FPGAs have the same data and structure as the identified FPGA, and each of the FPGAs runs a subset of cycles, the simulator may take several minutes to make the FPGAs use all cycles together.

[0153] The circuit designer can identify a hierarchy or list of DUT signals to be re-simulated. To accomplish this, the debug subsystem determines the FPGA required to simulate the hierarchy or list of signals, retrieves the necessary interface signals, and sends the retrieved interface signals to the simulator for re-simulation. Thus, the circuit designer can identify any element (e.g., component, device, or signal) of the DUT to be debugged / re-simulated.

[0154] The waveform subsystem generates waveforms using traced signals. If the circuit designer requests to view waveforms of signals traced during a simulation run, the host system retrieves the signals from the storage subsystem. The waveform subsystem displays a graph of the signals. The waveform subsystem can automatically generate a graph of the signals for one or more signals when the signals are received from the simulator.

[0155] Fig.12 An example machine of a computer system 1200 is illustrated within which a set of instructions for causing the machine to perform any one or more of the methodologies discussed herein may be executed. In alternative implementations, the machine may be connected (e.g., connected to a network) to other machines in a LAN, an intranet, an extranet, and / or the Internet. The machine may operate in the capacity of a server or a client machine in a client-server network environment, as a peer machine in a peer-to-peer (or distributed) network environment, or as a server or a client machine in a cloud computing infrastructure or environment.

[0156] The machine may be a personal computer (PC), a tablet PC, a set-top box (STB), a personal digital assistant (PDA), a cellular phone, a web appliance, a server, a network router, a switch or a bridge, or any machine capable of executing a set of instructions (sequential or otherwise) that specifies actions to be taken by the machine. In addition, although a single machine is illustrated, the term "machine" should also be construed to include any collection of machines that individually or jointly execute a set (or multiple sets) of instructions for performing any one or more of the methodologies discussed herein.

[0157] The example computer system 1200 includes a processing device 1202, a main memory 1204 (e.g., read-only memory (ROM), flash memory, dynamic random access memory (DRAM) such as synchronous DRAM (SDRAM)), a static memory 1206 (e.g., flash memory, static random access memory (SRAM), etc.)), and a data storage device 1218, which communicate with each other via a bus 1230.

[0158] The processing device 1202 represents one or more processors such as a microprocessor, a central processing unit, etc. More specifically, the processing device can be a complex instruction set computing (CISC) microprocessor, a reduced instruction set computing (RISC) microprocessor, a very long instruction word (VLIW) microprocessor, or a processor that implements other instruction sets or a processor that implements a combination of instruction sets. The processing device 1202 can also be one or more special processing devices such as an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), a digital signal processor (DSP), a network processor, etc. The processing device 1202 can be configured to execute instructions 1226 for performing the operations and steps discussed herein.

[0159] The computer system 1200 may also include a network interface device 1208 that communicates via a network 1220. The computer system 1200 may also include a video display unit 1210 (e.g., a liquid crystal display (LCD) or a cathode ray tube (CRT)), an alphanumeric input device 1212 (e.g., a keyboard), a cursor control device 1214 (e.g., a mouse), a graphics processing unit 1222, a signal generating device 1216 (e.g., a speaker), a graphics processing unit 1222, a video processing unit 1228, and an audio processing unit 1232.

[0160] The data storage device 1218 may include a machine-readable storage medium 1224 (also referred to as a non-transitory computer-readable medium) having stored thereon one or more sets of instructions 1226 or software that implement any one or more of the methods or functions described herein. The instructions 1226 may also reside completely or at least partially within the main memory 1204 and / or within the processing device 1202 during execution thereof by the computer system 1200, the main memory 1204 and the processing device 1202 also constituting machine-readable storage media.

[0161] In some implementations, the instructions 1226 include instructions that implement functionality corresponding to the present disclosure. Although the machine-readable storage medium 1224 is shown as a single medium in the example implementation, the term "machine-readable storage medium" should be considered to include a single medium or multiple media (e.g., a centralized or distributed database and / or associated caches and servers) that store one or more instruction sets. The term "machine-readable storage medium" should also be considered to include any medium that is capable of storing or encoding an instruction set for execution by a machine and causing the machine and processing device 1202 to perform any one or more methods of the present disclosure. Therefore, the term "machine-readable storage medium" should be considered to include, but is not limited to, solid-state memory, optical media, and magnetic media.

[0162] Some parts of the aforementioned specific implementations have been proposed based on algorithms and symbolic representations of operations on data bits in computer memory. These algorithmic descriptions and representations are used by technicians in the field of data processing to most effectively convey the essence of their work to other technicians in the field. An algorithm can be a sequence of operations that produce a desired result. An operation is an operation that requires physical manipulation of physical quantities. This amount can take the form of an electrical signal or magnetic signal that can be stored, combined, compared, and otherwise manipulated. This signal can be referred to as a bit, value, element, symbol, character, term, number, etc.

[0163] It should be remembered, however, that all of these and similar terms are to be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. Unless specifically stated otherwise, as will be apparent from this disclosure, it will be understood that in this description certain terms refer to actions and processes of computer systems or similar electronic computing devices that manipulate data represented as physical (electronic) quantities within the computer system's registers and memories and transform it into other data similarly represented as physical quantities within the computer system's memories or registers or other such information storage devices.

[0164] The present disclosure also relates to an apparatus for performing the operations herein. The apparatus may be specially constructed for the intended purpose, or it may include a computer selectively activated or reconfigured by a computer program stored in the computer. Such a computer program may be stored in a computer-readable storage medium, such as, but not limited to, any type of disk including a floppy disk, an optical disk, a CD-ROM, and a magneto-optical disk, a read-only memory (ROM), a random access memory (RAM), an EPROM, an EEPROM, a magnetic card or an optical card, or any type of medium suitable for storing electronic instructions (respectively coupled to a computer system bus).

[0165] The algorithm and display proposed herein are not related to any particular computer or other device in nature. According to the teaching of this article, various other systems can be used together with the program, or it can prove that it is more convenient to construct a more professional device to perform the method. In addition, the present disclosure is not described with reference to any specific programming language. It will be understood that various programming languages ​​can be used to implement the teaching of the present disclosure described herein.

[0166] The present disclosure may be provided as a computer program product or software that may include a machine-readable medium having instructions stored thereon, which may be used to program a computer system (or other electronic device) to perform a process according to the present disclosure. Machine-readable media include any mechanism for storing information in a form readable by a machine (e.g., a computer). For example, a machine-readable (e.g., computer-readable) medium includes a machine (e.g., computer) readable storage medium, such as a read-only memory (ROM), a random access memory (RAM), a disk storage medium, an optical storage medium, a flash memory device, etc.

[0167] In the foregoing disclosure, the implementation of the present disclosure has been described with reference to its specific example implementation. It will be apparent that various modifications may be made to the implementation of the present disclosure without departing from the broader spirit and scope of the implementation of the present disclosure as set forth in the following claims. Where the present disclosure relates to some elements in a singular tense, more than one element may be depicted in the accompanying drawings, and the same elements are marked with the same numerals. Therefore, the present disclosure and the accompanying drawings are considered to be illustrative rather than restrictive.

Claims

1. A computer system comprising: Hardware emulation system; as well as One or more processors communicatively coupled to the hardware emulation system, wherein the one or more processors are configured to: Divide the circuit design into partitions of roughly equal size; Identify sequential dependencies based on signals across partitions; determining a preliminary set of signals that, when provided as input to a simulation of the circuit design, breaks the sequential dependencies such that each partition can be simulated independently, wherein the preliminary set of signals includes a subset of the signals across partitions; configuring the hardware simulation system to capture values ​​of the set of primary signals during simulation of the circuit design; as well as The simulation is performed using the captured values, wherein the simulation includes reconstructing signals not included in the set of preliminary signals using values ​​obtained from independently simulating each partition.

2. The computer system of claim 1, wherein the one or more processors are configured to form the partitions using a layout of the circuit design placed on an emulation space, the emulation space representing hardware resources of the hardware emulation system. 3 . The computer system of claim 2 , wherein the simulation space is partitioned into two-dimensional tiles or three-dimensional tiles, and wherein each partition corresponds to a single tile or a group of adjacent tiles. 4 . The computer system of claim 1 , wherein the one or more processors are configured to add any signal to the primary signal set that (i) crosses partitions and (ii) is an output of a state element.

5. The computer system of claim 1 , wherein the one or more processors are configured to add at least one signal to the primary signal set: the signal (i) belongs to a transfer fan-in TFI or a transfer fan-out TFO of a signal across partitions, and (ii) is an output of a state element.

6. The computer system of claim 5, wherein the one or more processors are further configured to: identifying a first set of one or more candidate primary signals in the TFI of the signal across partitions; identifying a second set of one or more candidate primary signals in the TFO of the signal across partitions; and The at least one signal is determined as a set including fewer candidate primary signals in the first set or the second set.

7. The computer system of claim 1, wherein: The one or more processors are configured to add at least one signal to the primary signal set that (i) crosses partitions and (ii) is not an output of a state element; and The one or more processors are configured to add the at least one signal based on determining that the at least one signal can be sampled without reducing an operating frequency of the circuit design during simulation.

8. The computer system of claim 7 , wherein to determine that the at least one signal can be sampled without reducing the operating frequency of the circuit design during simulation, the one or more processors are configured to perform a timing analysis of the circuit design to confirm that a value of the at least one signal has stabilized at a time when the at least one signal is to be sampled.

9. The computer system of claim 1, wherein the one or more processors are configured to simulate at least some of the partitions in parallel, and wherein the one or more processors determine the size of each partition based on a maximum amount of memory to be allocated for simulating a single partition.

10. A method comprising performing, by one or more processors of a computer system: Divide the circuit design into partitions of roughly equal size; Identify sequential dependencies based on signals across partitions; determining a preliminary set of signals that, when provided as input to a simulation of the circuit design, breaks the sequential dependencies such that each partition can be simulated independently, wherein the preliminary set of signals includes a subset of the signals across partitions; configuring a hardware simulation system to capture values ​​of the set of primary signals during simulation of the circuit design; as well as The simulation is performed using the captured values, wherein the simulation includes reconstructing signals not included in the set of preliminary signals using values ​​obtained from independently simulating each partition.

11. The method according to claim 10, further comprising: The partitions are formed, by the one or more processors, using a layout of the circuit design placed on an emulation space, the emulation space representing hardware resources of the hardware emulation system. 12 . The method of claim 11 , wherein the simulation space is partitioned into two-dimensional tiles or three-dimensional tiles, and wherein each partition corresponds to a single tile or a group of adjacent tiles.

13. The method of claim 10, wherein determining the preliminary signal set comprises adding to the preliminary signal set any signal that (i) crosses partitions and (ii) is an output of a state element.

14. The method of claim 10, wherein determining the primary signal set comprises adding at least one signal to the primary signal set: the signal (i) belongs to a transfer fan-in TFI or a transfer fan-out TFO of a signal across partitions, and (ii) is an output of a state element.

15. The method according to claim 14, further comprising: identifying a first set of one or more candidate primary signals in the TFI of the signal across partitions; identifying a second set of one or more candidate primary signals in the TFO of the signal across partitions; and The at least one signal is determined as a set including fewer candidate primary signals in the first set or the second set.

16. The method of claim 10, wherein determining the set of preliminary signals comprises: adding at least one signal to the primary signal set: the signal (i) spans partitions and (ii) is not an output of a state element, Wherein the at least one signal is added based on a determination that the at least one signal can be sampled without reducing an operating frequency of the circuit design during simulation.

17. The method of claim 16, wherein determining that the at least one signal can be sampled without reducing the operating frequency of the circuit design during simulation comprises: A timing analysis of the circuit design is performed to confirm that the value of the at least one signal has stabilized at a time when the at least one signal is to be sampled.

18. The method of claim 10, wherein at least some of the partitions are simulated in parallel.

19. The method according to claim 18, further comprising: The size of each partition is determined based on the maximum amount of memory to be allocated to emulate a single partition.

20. A computer system comprising: a memory storing electronic design automation (EDA) software, wherein the EDA software includes a simulation program configured to perform simulation of a circuit design; as well as One or more processors are communicatively coupled to the hardware emulation system, wherein the one or more processors are configured to execute program instructions of the EDA software, the program instructions causing the one or more processors to: Dividing the circuit design into partitions of substantially uniform size; Identify sequential dependencies based on signals across partitions; determining a primary set of signals that, when provided as input to the simulation, breaks the sequential dependency such that each partition can be simulated independently, wherein the primary set of signals includes subsets of the signals across partitions; configuring the hardware simulation system to capture values ​​of the set of primary signals during simulation of the circuit design; as well as The simulation is performed using the captured values, wherein the simulation includes reconstructing signals not included in the set of preliminary signals using values ​​obtained from independently simulating each partition.