1. Technical Field
The present invention relates in general to the field of logic design testing, and in particular to the accurately defined logic areas in the logic design. Still more particularly, the present invention relates to a method and system for associating specific logic areas with specific tests, such that a change in the specific logic area or a change in the test will require re-testing only affected logic areas.
2. Description of the Related Art
Building computer logic takes many steps before the computer logic is physically manufactured. The logic designer typically uses synthesis tools, known as Hardware Descriptor Languages (HDLs), to describe, design and document electronic circuits, as well as simulating faults, in software simulations of hardware. Examples of HDLs are Verilog® and VHDL (Very-high-speed-integrated-circuit Hardware Descriptor Language) for Very Large Scale Integrated Circuits (VLSICs); and Register Transfer Language (RTL) to describe registers in computer logic and the way that data is transferred between such registers. By including a description of interfaces for logic and the logic's behavior, HDLs simulate physical hardware to such an extent that a virtual machine can be constructed in software alone. Such virtual machines are made up of multiple Finite State Machines (FSMs), also referred to as function areas or logic areas. Examples of FSMs are error correction logic, arbitration units, flow-control management units for determining if packets can be sent, etc.
After being constructed in software, the virtual machine is tested using an Architecture Verification Program (AVP), which is a test-case format that specifies an initial input and expected output of the virtual machine. The AVP is made up of multiple testcases, each of which affect one or more FSMs. Although an AVP may be useful in determining if an entire virtual machine is working, erroneous outputs from the virtual machine alone do not identify which FSM or FSMs are responsible for the failure. While documentation comments in the AVP may attempt to identify affected FSMs and thus the source of the failure, such predictions are rarely complete due to unexpected consequences of test software on FSM architecture, as well as unexpected anomalies in the FSM architecture itself. Thus, upon a test failure, the tester of the virtual machine must modify the FSMs predicted by the AVP programmer to be affected by the AVP, and then the entire AVP is re-run. Such a process is very time consuming, as a full AVP may take days to run, making such a process inefficient.
What is needed, therefore, is a method of accurately identifying which FSMs are affected by a testcase. This would allow an engineer to adjust/correct only FSMs affected by a failed testcase. Such a method also would allow the engineer to make changes to the virtual machine, followed by re-testing of only affected FSMs, thus reducing the time to re-test the newly modified virtual machine.
The present invention is directed to a method and system for identifying logic function areas, which make up a virtual machine, that are affected by specific testcases. A Hardware Descriptor Language (HDL) is used to create a software model of the virtual machine. A simulator compiles and analyzes the HDL model, and creates a matrix scoreboard identifying logic function areas in the virtual machine. A complete list of testcases is run on the virtual machine while a monitor correlates each testcase with affected logic function areas to fill in the matrix scoreboard. When a subsequent test failure occurs, either because of a modification to a logic function area, or the execution of a new test, all logic function areas that are affected, either directly or indirectly, are identified. This accurate identification allows a tester to correct only such affected logic areas, thus resulting in a savings in test time and resources.
The above, as well as additional objectives, features, and advantages of the present invention will become apparent in the following detailed written description.
The novel features believed characteristic of the invention are set forth in the appended claims. The invention itself, however, as well as a preferred mode of use, further objects and advantages thereof, will best be understood by reference to the following detailed description of an illustrative embodiment when read in conjunction with the accompanying drawings, where:
a and 3b illustrate the scoreboard, generated by the monitor, describing which logic areas in the DUT are affected by specific testcases;
With reference now to the figures and in particular to
Logic area 7 is not affected, either directly or indirectly, by logic area 1, even though logic area 7 does perform some type of logical function that may impact on other logic areas (not shown) in DUT 100. Logic area 8, which is part of a pass-through logic 104, is also not affected by logic area 1, since pass-through logic 104, which may be a scan chain or other type of pass-through logic, does not directly interact with any of the other logic areas in DUT 100.
With reference now to
Simulator 204 also includes a compiler 214, which is used prior to execution of testing to define logic areas in DUT 208. These logic areas are used to construct a testcase scoreboard 212, about which more is described below.
A monitor 210 correlates logic state areas in DUT 208 with specific testcases from test list 202. This correlation is used to both create as well as fill in a testcase scoreboard 212. That is, on a first pass, monitor 210 begins the creation of an empty matrix scoreboard 212 as shown in
After scoreboard 212 has been completed as shown in
A first method to pinpoint the location of the fault is to count how many logic areas are involved in the failed testcases. For example, the two failed Testcases D and E shown in
Alternatively, testcase scoreboard 212 can be used to select which testcases are run after Testcases D and E fail, in order to more accurately pinpoint where the problem logic area is located. Using the illustration of
With reference now to
If a new testcase is added (block 610), it is run. If it passes (decision block 614), then no further action is taken. However, if the new testcase fails, then other testcases that failed are examined and compared (block 622), to identify testcases having common logic areas. The presence of such common areas is a good indicator of which logic area(s) have a problem.
If a new logic area is added or an existing logic area is altered (block 608), then the testcases that use that area of logic are run (block 612). If the selected testcases pass (decision block 616), then no further steps are taken. However, if there are one or more failures in the chosen testcases, then the common affected logic areas are counted (block 618), and a minimum regression is run using testcases that test the affected logic areas, either directly or indirectly (block 620), as described above in
With reference now to
Data processing system 700 includes a processor 702, which is connected to a system bus 708. In the exemplary embodiment, data processing system 700 includes a graphics adapter 704 also connected to system bus 708, receiving information for display 706.
Also connected to system bus 708 are system memory 710 and input/output (I/O) bus bridge 712. I/O bus bridge 712 couples I/O bus 714 to system bus 708, relaying and/or transforming data transactions from one bus to the other. Peripheral devices such as nonvolatile storage 716, which may be a hard disk drive, floppy drive, a compact disk read-only memory (CD-ROM), a digital video disk (DVD) drive, or the like, and input device 718, which may include a conventional mouse, a trackball, or the like, is connected to I/O bus 714. The software described in
The exemplary embodiment shown in
It should be understood that at least some aspects of the present invention may alternatively be implemented in a program product, preferably performing the functions of the present invention in an automatic manner based on pre-determined criteria as described, including relative logical relationships between and among logic areas. Programs defining functions on the present invention can be delivered to a data storage system or a computer system via a variety of signal-bearing media, which include, without limitation, non-writable storage media (e.g., CD-ROM), writable storage media (e.g., a floppy diskette, hard disk drive, read/write CD ROM, optical media), and communication media, such as computer and telephone networks including Ethernet. It should be understood, therefore in such signal-bearing media when carrying or encoding computer readable instructions that direct method functions in the present invention, represent alternative embodiments of the present invention. Further, it is understood that the present invention may be implemented by a system having means in the form of hardware, software, or a combination of software and hardware as described herein or their equivalent.
While the invention has been particularly shown and described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention.