Trace Routing Network
Hardware emulation produces relevant and irrelevant trace data. Verification of a design under test requires knowledge of the relevant trace data. Data lines are provided to capture trace data from the hardware emulator's logic elements during emulation. The data lines connect the outputs of these logic elements to the inputs of a configurable interconnect circuit. The configurable interconnect circuit is capable of being programmed to select from a plurality of these inputs to connect a number of the data lines to a scan chain or trace data storage circuit. The configurable interconnect circuit can then selectively connect those data lines carrying relevant trace data to a trace data processing circuit. The trace data processing circuit may be a scan chain, analysis device or storage device or other suitable trace data processing device.
Latest Patents:
This application claims priority to U.S. Provisional Patent Application No. 61/044,881 entitled “Trace Routing Network,” filed on Apr. 14, 2008, and naming Pamphile Koumou and Cyril Quennesson as inventors, which application is incorporated entirely herein by reference.
FIELD OF THE INVENTIONThe invention relates to the field of hardware emulation. More specifically, various implementations of the invention relate to capturing trace data in a hardware emulation environment.
BACKGROUND OF THE INVENTIONToday's sophisticated integrated circuit (IC) designs are rapidly evolving and nearly doubling in size with each generation. In fact, complex designs have nearly exceeded 300 million gates. The complexity of modern designs and the increased use of multiple component blocks integrated into a single device, (forming a “system on chip” (SoC)), have made design verification an essential element in the development cycle. Ultimately, this means that design verification is important to every chip designer, system integrator, and application software developer.
Although the use of pre-packaged designs (sometimes referred to as intellectual property (IP) blocks) and high-performance tools both help the design process by shortening design time, they do not diminish the need to verify the design at the system level, which can consume 60 percent to 70 percent of the design cycle. Additionally, the re-use of intellectual property blocks may cause previously undetected problems to arise when the blocks are combined or integrated into a subsequent design, which may actually increase the need to use verification during the design flow.
Designers can implement a number of verification strategies, including software simulation, simulation acceleration, and rapid prototyping. For system-level verification however, hardware emulation remains a favorable choice over other alternatives due to the superior speed, performance, visibility, flexibility, and accuracy it can provide. For example, hardware emulation can test overall system functionality, subsystem integrity, specification errors, block-to-block interfaces, boundary cases, and asynchronous clock domain crossings.
Prior to using a hardware emulator, the hardware design must be converted or “synthesized” into code that can be used to program the hardware emulator's logic elements. Also, the designs interconnections must be mapped into the hardware emulator. Once the design is synthesized and mapped into the hardware emulator, the design can be “tested” by applying stimuli signals to the hardware emulator and capturing the output from the various logic elements of the hardware emulator. This captured output (known as trace data, visibility data, state data, or user visibility data), is collected from the various elements within the hardware emulator, and provided to the user, processing tools, analysis tools, or storage tools where the data can be used to verify and debug the design under test.
In general, when the design is synthesized and the emulator programmed, less than 50% of the logic elements within the emulator will correspond to the states in the design under test. Occasionally, as little as 30% of the emulator's logic elements will correspond to states within the design under test. As a result, typically only 30% to 50% of the flip flops within the emulator are relevant to the verification of the design under test. (The trace data originating from an element within the hardware emulator that corresponds to a state within the design under test will hereafter be referred to as “relevant” trace data. Similarly, the trace data that does not originate from an element within the hardware emulator that corresponds to a state within the design under test is herein referred to as “irrelevant” trace data.)
The specific logic elements within the hardware emulator that correspond to relevant trace data within the design under test change each time the hardware emulator is programmed. As a result, the verification engineer does not know beforehand which elements will correspond to relevant trace data within the design under test. In a conventional hardware emulator, the typical solution to this would be to capture the trace data from each logic element within the hardware emulator. After which the irrelevant trace data that was captured would typically be bypassed. Bypassing the irrelevant trace data from the hardware emulator requires additional logic elements to be included in the data capture circuitry. These additional logic elements greatly increases the area needed for the data capture circuitry. Additionally, bypassing trace data creates timing issues. Thus there is a desire to reduce the number of logic elements within a data capture circuit for use in a hardware emulation environment, while still providing for a robust reconfigurable computing environment with which to emulate, verify, and debug a hardware design. Additionally, there is a desire to capture the relevant trace data in a hardware emulator without the need to bypass the irrelevant trace data.
SUMMARY OF THE INVENTIONAspects of the invention relate to capturing and routing trace data within a hardware emulation environment.
In various implementations of the invention, a plurality of data lines are provided to capture trace data from the hardware emulator's logic elements during emulation. The data lines connect the outputs of these logic elements to the inputs of a configurable interconnect circuit. The configurable interconnect circuit is capable of being programmed to select from a plurality of these inputs to connect a number of the data lines to a scan chain or trace data storage circuit.
With some implementation of the invention, the plurality of data lines connecting the outputs of the reconfigurable logic within the hardware emulator are greater than the number of outputs from the configurable interconnect circuit. The configurable interconnect circuit can then selectively connect those data lines carrying relevant trace data to a trace data processing circuit. In some implementations of the invention, the trace data processing circuit is a scan chain. In still other implementations of the invention however, the trace data processing circuit may be another type of data capture device, such as a memory circuit.
These and other features and aspects of the invention will be apparent upon consideration of the following detailed description.
The present invention will be described by way of illustrative embodiments shown in the accompanying drawings in which like references denote similar elements, and in which:
In various implementations, the computer system 102 is utilized to program the hardware emulator 104 such that the hardware emulator 104 will emulate the logical operation of the design under test 110. In some embodiments, this may involve partitioning a circuit design, such as a very high speed integrated circuit (VHSIC) hardware description file (VHDL), into subsets. These subsets, often called netlists, describe the logical operation of the design as well as the connectivity of the design. The computer system 102 then maps the circuit design, or some portion of the circuit design, into the hardware emulator 104 according to the design description in the netlists.
The computer system 102 may be a standard standalone workstation, or it may be a plurality of computers networked together operating in a parallel fashion. As an example, the computer system 102 could be an x86 based computer running a Unix based operating system with suitable software tools to manipulate a hardware description file. Additionally, the computer system 102 would have the required input and output ports to communicate with the hardware emulator 104 and the test bench 106.
Once the computer system 102 maps the circuit design into the hardware emulator 104, the hardware emulator 104 will operate as the design under test 110 during emulation. The test bench 106 then is used to apply stimuli signals to the hardware emulator 104. When activated with stimuli signals, the hardware emulator 104 will mimic the logical operation of the design under test 110 and process the stimuli signals, generating state data. This state data is then captured and conveyed to the computer system 102 via the data bus 108. The computer system 102 can use this data to validate the design under test 110. During validation, if the output is not as expected or desired, then changes to the design can be made and the emulation process repeated. This basic design flow describes in general how a hardware emulation environment 100 could be implemented with the teachings of the invention and used to emulate a circuit design. As used herein, the state data generated by the logical elements within the hardware emulator 104 is referred to as either trace data or state data.
In various implementations of hardware emulation environment 100, the test bench 106 is controlled by the computer system 102. In the alternative, the test bench 106 may be controlled by a test file stored on a computer readable medium accessible by the test bench 106. Additionally, the test bench 106 could be integrated into the computer system 102, as for example, a custom computer workstation designed for use with the hardware emulation circuitry 104, which includes data acquisition and signal generation hardware. In still other implementations, the hardware emulator 104 may be programmed via a hardware description file stored on a computer readable medium, or transferred via computer communication means.
With some examples of the invention, the hardware emulation environment 100 may be used as a co-simulation system. In a co-simulation system, the gate emulation of the design under test takes place on the hardware emulator 104, while the computer system 102 or other computer system, simulates a software program “running” on the hardware emulator 104. A co-simulation system is useful to test operating system software for use with the design under test 110 or to test other software which will work in conjunction with the design under test δ 10.
In various implementations of the invention, the state data generated during emulation is output to test equipment, such as a data analyzer or custom workstation. Additionally, the state data could be output to a memory storage device for later recall and usage. In some implementations, the computer system 102 receives the state data generated by the hardware emulator 104. In still other implementations, the state data is received by an output device such as a computer monitor or printer where the data is made available to the user.
A Conventional Hardware Emulator CircuitAs explained previously, verification of the design under test 110 requires knowledge of the state signals from the configurable physical blocks 204. To facilitate this, in a conventional hardware emulator circuit 200, a plurality of data lines 210 typically are provided for capturing the state signals from the configurable physical blocks 204 during emulation. Each of the data lines 210 are connected to a corresponding output line 212 of the configurable physical blocks 204. The data lines 210 are further connected to the trace scan chain 206, as shown in
State signals from the configurable physical blocks 204 are captured by the data lines 210 as described above, and conveyed to the input data selectors 304 of the corresponding scan chain segments 302 in parallel. More particularly, the first scan segment input lines 310 of the scan chain 300 are connected to the data lines 210 of the hardware emulator 200. Additionally, the scan chain segments 302 within the scan chain 300 are cascaded in series by connecting the scan segment output line 314 of one scan chain segment 302 to the second scan segment input line 312 of a subsequent scan chain segment 302, as illustrated in
In the illustrated implementation, the scan chain 300 operates as follows. When state data signals from the configurable physical blocks 204 are desired for verification, a capture operation is enabled. Enabling a capture operation causes the input data selectors 304 to connect the first data inputs 310 to the memory module 306. Given that the first data inputs 310 are connected to the data lines 210, the state signals originating from the configurable physical blocks 204 will be available at the memory modules 306 within the scan chain 300. As described previously, generally 50% to 70% of the configurable physical blocks 204 produce irrelevant state data. As a result, 50% to 70% of the memory modules 306 will store irrelevant state data. To correct this, the bypass data selectors 308 corresponding to memory modules 306 that stored irrelevant state data are enabled. Enabling a bypass data selector 308 causes the second scan segment input 312 to be connected to the scan segment output 314, rather than the memory module 306. Once a capture has been enabled, the memory modules 306 have stored the corresponding state data, and the memory modules 306 storing irrelevant data bypassed, the relevant trace data is typically shifted out from the scan chain 300 in series on the data output 318. Additionally, a bit or series of bits can be shifted into the scan chain 300 from the scan data input 316 to indicate when the scan data has been successfully shifted out of the scan chain 300.
Trace Routing For ScanThe hardware emulator circuit 400 is connected to the data bus 108 of the hardware emulation environment 100 through signal lines 410. The input signal lines 410a are provided so that during operation, stimuli signals, typically from the test bench 106 or other input device, may be conveyed to the hardware emulator circuit 400. The output signal lines 410b are provided so that during operation, trace data may be conveyed from the hardware emulator circuit 400 to other circuitry within the hardware emulation environment 100. Such as another hardware emulator circuit 400.
The routing networks 402, the configurable physical blocks 404 and the configurable interconnect circuit 408 are all programmable. Although not shown in the figures, these programmable components of the circuit have programming lines that facilitate programming. For example the programming lines could be connected between the programmable components and the computer system 102. Typically, programming of the routing networks 402 and the configurable physical blocks 404 is based on the netlists corresponding to the design under test. Once programmed, the routing networks 402 form interconnections between the signal lines 410 and the configurable physical blocks 404. The configurable physical blocks 404 are programmed to perform one of a number of possible logic functions. Once programmed, the routing networks 402 and the configurable physical blocks 404 will take on or emulate the behavior of some portion of the design under test 110.
As described in detail above, verification of the design under test 110 requires knowledge of the state signals from the configurable physical blocks 404. To facilitate this, a plurality of data lines 412 are provided for capturing the state signals from the configurable physical blocks 404 during emulation. Each of the data lines 412 is connected to a corresponding data capture output 414 of a configurable physical block 404. The data lines 412 are further connected to the inputs of the configurable interconnect circuit 408, as shown in
In various implementations of the invention, the configurable physical blocks 404 are composed of a field programmable gate array and a flip-flop. This allows the configurable physical block 404 to be programmed to perform a number of different logic functions, and to store the state output until a subsequent emulation cycle. In other implementations of the invention, the configurable physical blocks 404 may be application-specific integrated circuits (ASICs). These application-specific integrated circuits can either be custom designed for use in the hardware emulator circuit 400, or commercially available off-the shelf devices. Additionally, in various examples of the invention, the configurable interconnect circuits 408 may be implemented using a crossbar network. The crossbar network would be programmed so that those configurable physical blocks 404 producing relevant state data are connected to the scan chain circuit 406, while those producing irrelevant state data would not. In still other implementations of the invention, the configurable interconnect circuit 408 may be implemented using a multiplexor or other switching device.
With various implementations of the invention, the hardware emulator circuit 400 of
More particularly, suppose for example the hardware emulator circuit 400 included 32 configurable physical blocks 404. As detailed above, between 30% and 50% of the configurable physical blocks 404 contain relevant state data at any one time. In a typical implementation there may be 16 configurable physical blocks 404 that would produce relevant state data during any given emulation cycle. These 16 configurable physical blocks 404 that will produce relevant state data are those configurable physical blocks 404 whose associated data lines 412 are mapped to the trace scan chain 406 by the configurable interconnect circuit 408. Programming the configurable interconnect circuit 408 in this manner allows the hardware emulator circuit to be operated as described above.
Bypassless Scan Chain OperationIn various implementations of the invention, the scan chain circuit 500 operates as follows. As explained above, the configurable interconnect circuit 408 is programmed such that only the relevant state data is available to the scan chain circuit 500. A scan capture is initiated by enabling the input data selectors 504. When the input data selectors 504 are enabled, the first scan segment lines 508 are connected to the memory modules 506. The memory modules 506 then store the state data available on the first scan segment input lines 508. Once a capture has been enabled and the memory modules have stored the corresponding state data, the trace data is shifted out from the scan data output 516 in series. Additionally, a bit or series of bits can be shifted into the scan chain 500 from the scan data input 514 to indicate when the scan data has been successfully shifted out of the scan chain circuit 500.
In various implementations of the invention, there may be an equal number of scan chain segments 502 within the scan chain circuit 500 as there are configurable physical blocks 404 within the hardware emulator circuit 104. Accordingly, the configurable interconnect circuit 408 would typically have the same number of inputs as outputs. In other implementations of the invention, there are fewer scan chain segments 502 than configurable physical blocks 404. Accordingly, the configurable interconnect circuit would typically have more inputs than outputs. For example, a simple hardware emulation circuit 400 could be provided with 32 configurable physical blocks 404. As explained previously, less than 50% of the configurable physical blocks will produce relevant state data at any given time. As a result, only 16 scan chain segments 502 may typically be provided in the scan chain circuit 500.
A hardware emulation environment 100 provided with a hardware emulation circuit 400 implemented as some portion of the hardware emulator 104, according to various examples and implementations of the invention, provides the benefit of filtering out the irrelevant trace data prior to it being received by the scan chain 406. This allows a scan chain 406 with reduced area to be provided. In addition timing issues associated with bypassing state data can be avoided. The reduction in feature size and removal of the need to bypass is increased as the size of the hardware emulator 104 is increased. This allows a larger more powerful hardware emulator to be provided, which can emulate more complex designs quicker without the typical issues associated with previous hardware emulators.
CONCLUSIONA hardware emulation environment is taught, including a hardware emulator with a configurable interconnect circuit whereby trace data captured from the hardware emulator can be conveyed to a scan chain and communicated to the user or other means for validating the design under test.
Although certain devices and methods have been described above in terms of the illustrative embodiments, the person of ordinary skill in the art will recognize that other embodiments, examples, substitutions, modification and alterations are possible.
Claims
1. A data capture circuit for use in a hardware emulator, comprising:
- a plurality of data lines, wherein each of said data lines is connected to a corresponding data capture output of a configurable physical block; and
- a configurable interconnect circuit, capable of selectively connecting at least one of the data lines to a scan chain input.
2. The data capture circuit of claim 1, wherein the configurable physical block comprises:
- a field programmable gate array; and
- a flip-flop.
3. The data capture circuit of claim 1, further comprising a scan chain.
4. The data capture circuit of claim 3, wherein the scan chain comprises:
- a plurality of memory circuits; and
- a plurality of switching circuits.
5. The data capture circuit of claim 4, wherein:
- the memory circuit is a flip-flop; and
- the switching device is a multiplexor.
6. The data capture circuit of claim 5, wherein there are more data lines than scan chain inputs.
7. The data capture circuit of claim 1, wherein the configurable interconnect circuit is a switching circuit.
8. The data capture circuit of claim 7, wherein the configurable interconnect circuit is a multiplexor.
9. The data capture circuit of claim 7, wherein the configurable interconnect circuit is a crossbar network.
10. The data capture circuit of claim 9, wherein there are more data lines than scan chain inputs.
11. A hardware emulation environment comprising:
- a data bus;
- a computing system connected to the data bus;
- a test bench connected to the data bus; and
- a hardware emulator connected to the data bus, wherein the hardware emulator comprises:
- a plurality of data lines, wherein each of said data lines is connected to a corresponding data capture output of a configurable physical block;
- a configurable interconnect circuit, capable of selectively connecting at least one of the data lines to a scan chain input; and
- a scan chain.
12. The hardware emulation environment of claim 11, wherein the configurable interconnect circuit is a crossbar network.
13. The hardware emulation environment of claim 11, wherein each of the configurable physical blocks comprise:
- a field programmable gate array; and
- a flip-flop.
14. The hardware emulation environment of claim 11, wherein the scan chain comprises:
- a plurality of memory circuits; and
- a plurality of switching circuits.
15. The hardware emulation environment of claim 14, wherein:
- the plurality of memory circuits are flip-flops; and
- the plurality of switching circuits are multiplexors.
16. A method of processing trace data in a hardware emulation environment comprising:
- connecting a plurality of data lines to the outputs of at least one configurable physical block;
- providing a scan chain configured to process state data in a hardware emulator; and
- selectively configuring a configurable interconnect circuit, such that one or more of the data lines is connected to the scan chain.
17. A method of processing trace data in a hardware emulation environment comprising:
- receiving in parallel, a plurality of output data from at least one configurable physical block; and
- being configured to selectively connect at least one of the output data signals to a scan chain.
Type: Application
Filed: Jun 10, 2008
Publication Date: Oct 15, 2009
Applicant:
Inventors: Cyril Quennesson (Antony), Pamphile Koumou (Villepreux)
Application Number: 12/136,589