US20070204246A1 - Method and system for logic verification using mirror interface - Google Patents

Method and system for logic verification using mirror interface Download PDF

Info

Publication number
US20070204246A1
US20070204246A1 US11/744,482 US74448207A US2007204246A1 US 20070204246 A1 US20070204246 A1 US 20070204246A1 US 74448207 A US74448207 A US 74448207A US 2007204246 A1 US2007204246 A1 US 2007204246A1
Authority
US
United States
Prior art keywords
interface
mirror
soc
verification
external
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Abandoned
Application number
US11/744,482
Inventor
Robert Devins
Paul Ferro
Peter LaFauci
Kenneth Mahler
David Milton
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
GlobalFoundries Inc
Original Assignee
International Business Machines Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by International Business Machines Corp filed Critical International Business Machines Corp
Priority to US11/744,482 priority Critical patent/US20070204246A1/en
Publication of US20070204246A1 publication Critical patent/US20070204246A1/en
Assigned to GLOBALFOUNDRIES U.S. 2 LLC reassignment GLOBALFOUNDRIES U.S. 2 LLC ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: INTERNATIONAL BUSINESS MACHINES CORPORATION
Assigned to GLOBALFOUNDRIES INC. reassignment GLOBALFOUNDRIES INC. ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: GLOBALFOUNDRIES U.S. 2 LLC, GLOBALFOUNDRIES U.S. INC.
Abandoned legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • G01R31/317Testing of digital circuits
    • G01R31/3181Functional testing
    • G01R31/3183Generation of test inputs, e.g. test vectors, patterns or sequences
    • G01R31/318342Generation of test inputs, e.g. test vectors, patterns or sequences by preliminary fault modelling, e.g. analysis, simulation
    • G01R31/318357Simulation
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • G01R31/317Testing of digital circuits
    • G01R31/3181Functional testing
    • G01R31/319Tester hardware, i.e. output processing circuits
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/30Circuit design
    • G06F30/32Circuit design at the digital level
    • G06F30/33Design verification, e.g. functional simulation or model checking

Definitions

  • the present invention relates generally to the verification of integrated circuit (IC) logic, and more particularly to a method and system for increasing the efficiency and re-usability of verification software.
  • IC integrated circuit
  • Verification of logic designs using simulation software allows a significant number of design flaws to be detected and corrected before incurring the time and expense needed to physically fabricate designs.
  • Models of design logic. Such models may be implemented as a set of instructions in a hardware description language (HDL) such as Verilog®. or VHDL®.
  • HDL hardware description language
  • the models execute in a simulation environment and can be programmed to simulate a corresponding hardware implementation.
  • the simulation environment comprises specialized software for interpreting model code and simulating the corresponding hardware device or devices.
  • test stimuli typically in batches known as “test cases”
  • test cases By applying test stimuli (typically in batches known as “test cases”) to a model in simulation, observing the responses of the model and comparing them to expected results, design flaws can be detected and corrected.
  • SOC system-on-a-chip
  • cores each performing a different function or group of functions.
  • a SOC integrates a plurality of cores into a single silicon device, thereby providing a wide range of functions in a highly compact form.
  • a SOC comprises its own processor core (often referred to as an “embedded” processor), and will further comprise one or more cores for performing a range of functions often analogous to those of devices in larger-scale systems.
  • a core In its developmental stages a core is typically embodied as a simulatable HDL model written at some level of abstraction, or in a mixture of abstraction levels. Levels of abstraction that are generally recognized include a behavioral level, a structural level, and a logic gate level. A core may be in the form of a netlist including behavioral, structural and logic gate elements.
  • Verification of a SOC presents challenges because of the number of cores and the complexity of interactions involved, both between the cores internally to the SOC, and between the SOC and external logic.
  • An acceptable level of verification demands that a great number of test cases be applied, both to individual components of the SOC, and to the cores interconnected as a system and interfacing with logic external to the SOC.
  • EDA electronic design automation
  • the present invention overcomes shortcomings of existing art by providing an efficient and economical method and system for testing external interfaces of cores in an SOC.
  • a mirror interface is attached to an external interface of a core undergoing verification.
  • the mirror interface is a copy or duplicate of the interface undergoing verification.
  • a standardized, programmable control mechanism is utilized to enable a test case executing in the SOC, for purposes of verifying the external interface, to configure the mirror interface as needed for data transfers to and from the external interface.
  • the control mechanism controls data flow, transfer direction, and data checking.
  • the mirror interface is attached to a bus functional model containing a memory model for storing data received from the external SOC interface during testing, and a processor model for emitting CPU bus cycles.
  • a bi-directional communication mechanism is provided to enable communication between the SOC and the control mechanism.
  • the mirror interface is an exact copy of the external interface undergoing verification, all the I/O connections of the interfaces can be used. Moreover, because the control mechanism is standardized, the invention is highly re-usable. Further, the control mechanism is programmable to be readily adaptable to different interfaces.
  • FIG. 1A shows a verification test bench according to the present invention
  • FIG. 1B shows execution domains of a test case and the control mechanism according to the invention
  • FIG. 2 shows connections and signals exchanged between a SOC and a bus functional model and mirror interface via a bidirectional general purpose I/O device
  • FIG. 3 shows a process flow of control code for handling data flow, transfer direction, and data checking
  • FIG. 4 shows a general purpose computer system for implementing the invention.
  • FIG. 1A shows an embodiment of the present invention in the form of a verification test bench 1 .
  • the term “test bench” is well known in the simulation/verification field, and refers to a compiled and simulation-ready computer program including a model or models to be simulated.
  • a verification test bench provides all of the external stimulus needed to test a SOC or part of an SOC, and receives stimulus from the SOC.
  • the test bench is provided with the stimulus for a particular test case, and then compiled by a simulator. The simulator loads the compiled test bench into the simulator to conduct the test case.
  • FIG. 1A (and FIGS. 1B and 2 , discussed in greater detail below) are to be understood, in general terms, as representing a software simulation of a physical system. Accordingly, when terms such as “connected,” “attached” or “coupled,” as represented by lines connecting block elements in the Figures, are used in the following, reference is being made to a software counterpart of physical means for propagating signals between block elements.
  • a SOC 100 includes a core 101 having an external SOC interface.
  • core having an external interface is the peripheral component interconnect (PCI) interface core used in many systems throughout the electronics industry, which interfaces with an external PCI bus.
  • PCI peripheral component interconnect
  • the SOC is part of a circuit card, and the circuit card has a PCI bus attached to another device, the PCI core would interface with the device via the bus.
  • the core 101 is connected via a processor bus 106 to an embedded processor (central processing unit or CPU) core 102 . Also connected to the processor bus 106 is a memory controller core 103 having an interface to a memory 104 external to the SOC.
  • a processor bus 106 Also connected to the processor bus 106 is a memory controller core 103 having an interface to a memory 104 external to the SOC.
  • the core 101 is undergoing verification of its external SOC interface.
  • a mirror interface 101 M is connected to the core 101 undergoing verification of its external interface.
  • the mirror interface 101 M is a copy of the interface undergoing verification.
  • interface refers to the set of input and output signals by means of which a core or model communicates with other logic.
  • core and core interface or “interface” are interchangeable in the respect that, regardless of its internal structure, any core may be defined in terms its interface where communication with other logic is concerned.
  • the mirror interface is simply a copy of an already existing interface, there is no need to develop a new test model or purchase a costly standardized model. Moreover, the interface-to-interface coupling is, in effect, “ready-made,” since the mirror interface has exactly the same inputs and outputs as the interface undergoing verification.
  • a bus functional model (BFM) 105 is attached to the external mirror interface 101 M.
  • BFMs are well known in the simulation/verification field.
  • the BFM essentially models an internal SOC bus 109 and a processor model 110 for emitting CPU bus cycles to emulate the behavior of a processor, but without requiring the computer resources needed to fully simulate an actual processor.
  • a memory model 107 is also attached to the BFM, so that if any data is sent through the interface 101 , off the SOC to the external mirror interface 101 M, the data can be stored in the memory model 107 and retrieved and checked if needed.
  • the invention further comprises a consistent, standardized control mechanism which is easily adaptable to different interfaces.
  • the standardized control mechanism comprises a standardized “handshake,” or communication protocol, between the SOC and the external mirror interface.
  • the control mechanism further comprises programmable control code executing in the BFM which controls data flow, transfer direction, and data checking. Because the code is programmable, it is easily adaptable to different interfaces.
  • the control code may be implemented in a bus functional language (BFL).
  • An external bidirectional general purpose I/O (GPIO) 108 may be provided to allow communication between the SOC and external logic.
  • the external bidirectional GPIO comprises a plurality of bidirectional buses which can be connected between the SOC and external models/cores.
  • Internal logic in the GPIO provides for control and status monitoring of cores connected to the bidirectional buses by enabling functions including driving data on the buses, reading the current state of data on the buses, and capturing positive and negative edge transitions on the buses.
  • test case In conducting a given verification procedure on an external SOC interface, the particular set of verification stimuli that are applied to the SOC interface depends on a test case.
  • the test case is typically designed to conduct a range of exercises for an interface, to determine whether it performs as expected.
  • the test case generates specified stimuli, for example, directives to read or write data.
  • the test case receives results corresponding to the stimuli, and compares them against expected results to verify correct performance.
  • test case utilizes the standardized control mechanism of the invention to direct the application of test stimuli to an external SOC interface as desired.
  • the test case executes in the SOC and issues directives in the standardized handshake protocol for initiating and controlling operations by the mirror interface.
  • a typical test case comprises exchanging data between the SOC interface 101 and its external mirror counterpart 101 M.
  • a given interface must typically be appropriately configured, i.e., programmed to receive and/or send data, store data and the like.
  • the test case utilizes the GPIO 108 to configure and control the external mirror interface 101 M via the BFM 105 .
  • the test case uses the standardized handshake, the test case generates control directives in the form of signals which are transmitted via the GPIO to the control code executing in the BFM.
  • the code continuously waits for the GPIO input to the BFM to determine whether some action is being required of the mirror interface by a test case.
  • FIG. 1B illustrates execution domains of the test case and control code according to the invention.
  • a test case 120 executes in the SOC 100 and issues control directives 122 to the control code 121 executing in the BFM 105 .
  • the GPIO 108 transfers the control directives from the SOC to the BFM.
  • FIG. 2 illustrates connections between the SOC 100 and GPIO 108 , and GPIO 108 and BFM 105 , in greater detail.
  • An application by a test case of a data transfer process for verifying an SOC interface according to the invention is discussed in the following with reference to FIG. 2 .
  • a test case executing in the SOC utilizes control directives including, for example, RUN 200 , DESCRIPTOR 201 , DONE 202 and STATUS 203 signals of the standardized handshake protocol.
  • the test case sends a RUN signal 200 and a DESCRIPTOR signal 201 to the bidirectional GPIO 108 .
  • the RUN signal tells the code executing in the BFM to configure the mirror interface for a data transfer.
  • the DESCRIPTOR signal includes such information as data transfer direction (in this case, from the SOC interface 101 to the mirror interface 101 M), the number of pieces of data to transfer, the size of the data pieces, the transfer mode, and the like.
  • the GPIO 108 transfers the RUN and DESCRIPTOR signals to the BFM 105 , and the test case waits to receive a DONE signal 202 from the BFM indicating that the configuration of the mirror interface is complete.
  • the GPIO transfers the DONE signal from the BFM to the test case executing in the SOC.
  • the test case detects the DONE signal, it begins the data transfer.
  • the control code replies with a STATUS signal and the DONE signal after the data has been received, and the test case evaluates the STATUS signal (good/bad) and reports the results.
  • a test case executing in the SOC sends the RUN and DESCRIPTOR signals via the GPIO to the BFM.
  • the direction parameter of the DESCRIPTOR signal specifies that the data transfer is from the mirror interface to the SOC interface.
  • the test case waits to receive a DONE signal 202 from the BFM indicating that the configuration of the mirror interface is complete.
  • the test case detects the DONE signal, it sends a RUN signal 200 back to the BFM, and expects the data transfer from the mirror interface to the SOC interface to begin.
  • the mirror interface 101 M transfers data to the SOC interface 101 , and sends STATUS and DONE signals after it has finished transferring the data.
  • the SOC test case detects the DONE signal and evaluates the received data to determine success or failure.
  • the STATUS signal reports whether any transfer errors were detected by the BFM.
  • control code executes in the BFM attached to the mirror interface.
  • the control code functions, in part, as the external surrogate of the test case executing in the SOC, performing operations analogous to test case operations, based on the handshake signals generated by the test case.
  • the control code waits continuously for a RUN signal from the test case executing in the SOC.
  • the code configures the mirror interface to either send or receive data, as shown in blocks 302 , 303 and 308 .
  • the configuration is the only portion of the control code which is interface-dependent, and it can be readily altered to adjust to whatever interface is being verified.
  • the control code sends the DONE signal to the SOC once the mirror interface is configured, as shown in block 304 . Then, the test case sends the data through the SOC interface 101 to the mirror interface 101 M, as shown in block 305 .
  • the control code includes logic for verifying whether the correct data was received, as shown in block 306 .
  • the code sends STATUS and DONE signals back to the SOC, reporting that the data transfer is finished and whether it was successful, as shown in block 307 .
  • the control code sends the DONE signal to the SOC once the mirror interface is configured, as shown in blocks 308 - 309 . Then, as shown in block 310 , the control code waits for a RUN signal from the test case.
  • the control code When the RUN signal is received, the control code sends the data through the mirror interface 101 M to the SOC interface 101 , and thereby to the test case executing in the SOC, as shown in block 311 . When it is finished sending data, the control code sends STATUS and DONE signals to the SOC, reporting that the data transfer is finished, as shown in block 312 . The test case can then evaluate to data to determine whether the transfer was successful.
  • the invention as disclosed hereinabove provides considerable advantages.
  • the invention is highly reusable with different interfaces because of the programmable nature of the control code executing in the mirror interface.
  • the invention provides precisely the amount of functionality needed because the test interface is a mirror copy of the interface undergoing verification, and accordingly all or a subset of all interface I/O connections can be used. Additionally, the use of costly standardized test models is avoided.
  • FIG. 4 shows a computer system which can used to implement the present invention.
  • the system includes a computer 400 comprising a memory 401 and processor 402 which may be embodied, for example, in a workstation.
  • the system may include a user interface 403 comprising a display device 404 and user input devices such as a keyboard 405 and mouse 406 .
  • the verification test bench 1 may be implemented as computer-executable instructions which may be stored on computer-usable media such as disk storage 407 , CD-ROM 408 , magnetic tape 409 or diskette 410 .
  • the instructions may be read from a computer-usable medium as noted into the memory 401 and executed by the processor 402 to effect the advantageous features of the invention.
  • the simulator 411 may be any of a variety of commercially available simulators, including event simulators, cycle simulators and instruction set simulators.

Abstract

Verification of external interfaces of cores on system-on-chip (SOC) designs frequently entails the purchase of costly standardized software models to test the external interfaces. Typically, the standardized models provide more functionality than is needed. Instead of standardized models, test models may be developed and utilized, but this also incurs cost and delay. The present invention provides an efficient and economical alternative. A mirror interface, or copy of the external interface undergoing verification, is used with a standardized control mechanism to verify the external interface. Because all interface I/O connections can thereby be utilized, a cost-effective and highly reusable way of verifying such interfaces is provided.

Description

    CROSS REFERENCE TO RELATED APPLICATIONS
  • This application is a continuation of U.S. application Ser. No. 10/986,773, filed on Nov. 15, 2004. Application Ser. No. 10/986,773 is a continuation of U.S. application Ser. No. 09/826,035, filed Apr. 4, 2001, now issued as U.S. Pat. No. 6,865,502. The listed applications are assigned to International Business Machines Corporation and the entire contents of each of these applications are incorporated herein by reference.
  • BACKGROUND
  • The present invention relates generally to the verification of integrated circuit (IC) logic, and more particularly to a method and system for increasing the efficiency and re-usability of verification software.
  • Before ICs are released to market, the logic designs incorporated therein are typically subject to a testing and de-bugging process known as “verification.” Verification of logic designs using simulation software allows a significant number of design flaws to be detected and corrected before incurring the time and expense needed to physically fabricate designs.
  • Software verification typically entails the use of software “models” of design logic. Such models may be implemented as a set of instructions in a hardware description language (HDL) such as Verilog®. or VHDL®. The models execute in a simulation environment and can be programmed to simulate a corresponding hardware implementation. The simulation environment comprises specialized software for interpreting model code and simulating the corresponding hardware device or devices. By applying test stimuli (typically in batches known as “test cases”) to a model in simulation, observing the responses of the model and comparing them to expected results, design flaws can be detected and corrected.
  • Advances in technology have permitted logic designs to be packed with increased density into smaller areas of silicon as compared with past IC devices. This has led to “system-on-a-chip” (SOC) designs. The term “SOC” as used herein refers to combinations of discrete logic blocks, often referred to as “cores,” each performing a different function or group of functions. A SOC integrates a plurality of cores into a single silicon device, thereby providing a wide range of functions in a highly compact form. Typically, a SOC comprises its own processor core (often referred to as an “embedded” processor), and will further comprise one or more cores for performing a range of functions often analogous to those of devices in larger-scale systems.
  • In its developmental stages a core is typically embodied as a simulatable HDL model written at some level of abstraction, or in a mixture of abstraction levels. Levels of abstraction that are generally recognized include a behavioral level, a structural level, and a logic gate level. A core may be in the form of a netlist including behavioral, structural and logic gate elements.
  • Verification of a SOC presents challenges because of the number of cores and the complexity of interactions involved, both between the cores internally to the SOC, and between the SOC and external logic. An acceptable level of verification demands that a great number of test cases be applied, both to individual components of the SOC, and to the cores interconnected as a system and interfacing with logic external to the SOC. There is a commensurate demand on computer resources and time. Accordingly, techniques which increase the efficiency of verification are at a premium.
  • According to one standard technique, already-verified models are used to test other models. The electronic design automation (EDA) industry has reached a level of sophistication wherein vendors offer standardized models for use in verification of other models still in development. In particular, such models are typically used for testing cores in a SOC that have external interfaces (i.e., communicate with logic external to the SOC). Such standardized models save the purchaser development resources, are typically well-tested and reliable, and are designed to have a wide range of applicability.
  • However, there are disadvantages associated with using standardized models. For instance, they can be very costly. Moreover, they can be very complex and provide much more functionality than is needed by the purchaser if only a subset of functions are required. Further, the standardized models must be integrated into existing verification systems, incurring more cost in terms of time and effort.
  • Alternatively to purchasing and using standardized models, designers may, of course, develop their own testing models. However, this is costly in terms of development time, with the typical result that such models are designed for limited application. Accordingly, they typically have limited functionality and re-usability.
  • An approach is needed to address the concerns noted in the foregoing.
  • SUMMARY
  • The present invention overcomes shortcomings of existing art by providing an efficient and economical method and system for testing external interfaces of cores in an SOC. According to the invention, a mirror interface is attached to an external interface of a core undergoing verification. The mirror interface is a copy or duplicate of the interface undergoing verification.
  • In a preferred embodiment, a standardized, programmable control mechanism is utilized to enable a test case executing in the SOC, for purposes of verifying the external interface, to configure the mirror interface as needed for data transfers to and from the external interface. The control mechanism controls data flow, transfer direction, and data checking.
  • In the foregoing embodiment, the mirror interface is attached to a bus functional model containing a memory model for storing data received from the external SOC interface during testing, and a processor model for emitting CPU bus cycles. A bi-directional communication mechanism is provided to enable communication between the SOC and the control mechanism.
  • Because the mirror interface is an exact copy of the external interface undergoing verification, all the I/O connections of the interfaces can be used. Moreover, because the control mechanism is standardized, the invention is highly re-usable. Further, the control mechanism is programmable to be readily adaptable to different interfaces.
  • BRIEF DESCRIPTION OF THE DRAWINGS
  • FIG. 1A shows a verification test bench according to the present invention;
  • FIG. 1B shows execution domains of a test case and the control mechanism according to the invention;
  • FIG. 2 shows connections and signals exchanged between a SOC and a bus functional model and mirror interface via a bidirectional general purpose I/O device;
  • FIG. 3 shows a process flow of control code for handling data flow, transfer direction, and data checking; and
  • FIG. 4 shows a general purpose computer system for implementing the invention.
  • DETAILED DESCRIPTION
  • FIG. 1A shows an embodiment of the present invention in the form of a verification test bench 1. The term “test bench” is well known in the simulation/verification field, and refers to a compiled and simulation-ready computer program including a model or models to be simulated. A verification test bench provides all of the external stimulus needed to test a SOC or part of an SOC, and receives stimulus from the SOC. The test bench is provided with the stimulus for a particular test case, and then compiled by a simulator. The simulator loads the compiled test bench into the simulator to conduct the test case.
  • Thus, FIG. 1A (and FIGS. 1B and 2, discussed in greater detail below) are to be understood, in general terms, as representing a software simulation of a physical system. Accordingly, when terms such as “connected,” “attached” or “coupled,” as represented by lines connecting block elements in the Figures, are used in the following, reference is being made to a software counterpart of physical means for propagating signals between block elements.
  • As shown in FIG. 1A, a SOC 100 includes a core 101 having an external SOC interface. An example of core having an external interface is the peripheral component interconnect (PCI) interface core used in many systems throughout the electronics industry, which interfaces with an external PCI bus. For example, if the SOC is part of a circuit card, and the circuit card has a PCI bus attached to another device, the PCI core would interface with the device via the bus.
  • The core 101 is connected via a processor bus 106 to an embedded processor (central processing unit or CPU) core 102. Also connected to the processor bus 106 is a memory controller core 103 having an interface to a memory 104 external to the SOC.
  • In the example of FIG. 1A, the core 101 is undergoing verification of its external SOC interface. According to the invention, a mirror interface 101M is connected to the core 101 undergoing verification of its external interface. The mirror interface 101M is a copy of the interface undergoing verification. (It is noted that, as used herein, the term “interface” refers to the set of input and output signals by means of which a core or model communicates with other logic. It is further noted that the terms “core” and “core interface” or “interface” are interchangeable in the respect that, regardless of its internal structure, any core may be defined in terms its interface where communication with other logic is concerned.)
  • Because the mirror interface is simply a copy of an already existing interface, there is no need to develop a new test model or purchase a costly standardized model. Moreover, the interface-to-interface coupling is, in effect, “ready-made,” since the mirror interface has exactly the same inputs and outputs as the interface undergoing verification.
  • A bus functional model (BFM) 105 is attached to the external mirror interface 101M. BFMs are well known in the simulation/verification field. The BFM essentially models an internal SOC bus 109 and a processor model 110 for emitting CPU bus cycles to emulate the behavior of a processor, but without requiring the computer resources needed to fully simulate an actual processor. A memory model 107 is also attached to the BFM, so that if any data is sent through the interface 101, off the SOC to the external mirror interface 101M, the data can be stored in the memory model 107 and retrieved and checked if needed.
  • The invention further comprises a consistent, standardized control mechanism which is easily adaptable to different interfaces. The standardized control mechanism comprises a standardized “handshake,” or communication protocol, between the SOC and the external mirror interface. The control mechanism further comprises programmable control code executing in the BFM which controls data flow, transfer direction, and data checking. Because the code is programmable, it is easily adaptable to different interfaces. The control code may be implemented in a bus functional language (BFL).
  • An external bidirectional general purpose I/O (GPIO) 108 may be provided to allow communication between the SOC and external logic. The external bidirectional GPIO comprises a plurality of bidirectional buses which can be connected between the SOC and external models/cores. Internal logic in the GPIO provides for control and status monitoring of cores connected to the bidirectional buses by enabling functions including driving data on the buses, reading the current state of data on the buses, and capturing positive and negative edge transitions on the buses.
  • In conducting a given verification procedure on an external SOC interface, the particular set of verification stimuli that are applied to the SOC interface depends on a test case. The test case is typically designed to conduct a range of exercises for an interface, to determine whether it performs as expected. The test case generates specified stimuli, for example, directives to read or write data. The test case receives results corresponding to the stimuli, and compares them against expected results to verify correct performance.
  • The test case utilizes the standardized control mechanism of the invention to direct the application of test stimuli to an external SOC interface as desired. The test case executes in the SOC and issues directives in the standardized handshake protocol for initiating and controlling operations by the mirror interface.
  • A typical test case comprises exchanging data between the SOC interface 101 and its external mirror counterpart 101M. To prepare for the exchange of data, a given interface must typically be appropriately configured, i.e., programmed to receive and/or send data, store data and the like. The test case utilizes the GPIO 108 to configure and control the external mirror interface 101M via the BFM 105. Using the standardized handshake, the test case generates control directives in the form of signals which are transmitted via the GPIO to the control code executing in the BFM. The code continuously waits for the GPIO input to the BFM to determine whether some action is being required of the mirror interface by a test case.
  • FIG. 1B illustrates execution domains of the test case and control code according to the invention. A test case 120 executes in the SOC 100 and issues control directives 122 to the control code 121 executing in the BFM 105. The GPIO 108 transfers the control directives from the SOC to the BFM.
  • FIG. 2 illustrates connections between the SOC 100 and GPIO 108, and GPIO 108 and BFM 105, in greater detail. An application by a test case of a data transfer process for verifying an SOC interface according to the invention is discussed in the following with reference to FIG. 2.
  • To transfer data from the SOC interface 101 to the mirror interface 101M, a test case executing in the SOC utilizes control directives including, for example, RUN 200, DESCRIPTOR 201, DONE 202 and STATUS 203 signals of the standardized handshake protocol. First, the test case sends a RUN signal 200 and a DESCRIPTOR signal 201 to the bidirectional GPIO 108. The RUN signal tells the code executing in the BFM to configure the mirror interface for a data transfer. The DESCRIPTOR signal includes such information as data transfer direction (in this case, from the SOC interface 101 to the mirror interface 101M), the number of pieces of data to transfer, the size of the data pieces, the transfer mode, and the like.
  • The GPIO 108 transfers the RUN and DESCRIPTOR signals to the BFM 105, and the test case waits to receive a DONE signal 202 from the BFM indicating that the configuration of the mirror interface is complete.
  • The GPIO transfers the DONE signal from the BFM to the test case executing in the SOC. When the test case detects the DONE signal, it begins the data transfer. The control code replies with a STATUS signal and the DONE signal after the data has been received, and the test case evaluates the STATUS signal (good/bad) and reports the results.
  • To transfer data from the mirror interface 101M to the SOC interface 101, a test case executing in the SOC sends the RUN and DESCRIPTOR signals via the GPIO to the BFM. In this case, the direction parameter of the DESCRIPTOR signal specifies that the data transfer is from the mirror interface to the SOC interface.
  • The test case waits to receive a DONE signal 202 from the BFM indicating that the configuration of the mirror interface is complete. When the test case detects the DONE signal, it sends a RUN signal 200 back to the BFM, and expects the data transfer from the mirror interface to the SOC interface to begin.
  • The mirror interface 101M transfers data to the SOC interface 101, and sends STATUS and DONE signals after it has finished transferring the data. The SOC test case detects the DONE signal and evaluates the received data to determine success or failure. The STATUS signal reports whether any transfer errors were detected by the BFM.
  • As noted above, the control code executes in the BFM attached to the mirror interface. The control code functions, in part, as the external surrogate of the test case executing in the SOC, performing operations analogous to test case operations, based on the handshake signals generated by the test case.
  • A process flow for the control code, according to one possible formulation, is shown in FIG. 3. As shown in blocks 300 and 301, the control code waits continuously for a RUN signal from the test case executing in the SOC.
  • Depending on the direction information of the DESCRIPTOR signal, the code configures the mirror interface to either send or receive data, as shown in blocks 302, 303 and 308. The configuration is the only portion of the control code which is interface-dependent, and it can be readily altered to adjust to whatever interface is being verified.
  • If the mirror interface is to receive data, the control code sends the DONE signal to the SOC once the mirror interface is configured, as shown in block 304. Then, the test case sends the data through the SOC interface 101 to the mirror interface 101M, as shown in block 305. The control code includes logic for verifying whether the correct data was received, as shown in block 306. The code sends STATUS and DONE signals back to the SOC, reporting that the data transfer is finished and whether it was successful, as shown in block 307.
  • If the mirror interface is to send data, the control code sends the DONE signal to the SOC once the mirror interface is configured, as shown in blocks 308-309. Then, as shown in block 310, the control code waits for a RUN signal from the test case.
  • When the RUN signal is received, the control code sends the data through the mirror interface 101M to the SOC interface 101, and thereby to the test case executing in the SOC, as shown in block 311. When it is finished sending data, the control code sends STATUS and DONE signals to the SOC, reporting that the data transfer is finished, as shown in block 312. The test case can then evaluate to data to determine whether the transfer was successful.
  • It may be appreciated that the invention as disclosed hereinabove provides considerable advantages. The invention is highly reusable with different interfaces because of the programmable nature of the control code executing in the mirror interface. Moreover, the invention provides precisely the amount of functionality needed because the test interface is a mirror copy of the interface undergoing verification, and accordingly all or a subset of all interface I/O connections can be used. Additionally, the use of costly standardized test models is avoided.
  • FIG. 4 shows a computer system which can used to implement the present invention. The system includes a computer 400 comprising a memory 401 and processor 402 which may be embodied, for example, in a workstation. The system may include a user interface 403 comprising a display device 404 and user input devices such as a keyboard 405 and mouse 406.
  • The verification test bench 1, as noted above, may be implemented as computer-executable instructions which may be stored on computer-usable media such as disk storage 407, CD-ROM 408, magnetic tape 409 or diskette 410. The instructions may be read from a computer-usable medium as noted into the memory 401 and executed by the processor 402 to effect the advantageous features of the invention.
  • A simulator 411 loaded into computer memory 401 and executed by processor 402 interprets a compiled verification test bench 1 to simulate hardware devices corresponding thereto. The simulator 411 may be any of a variety of commercially available simulators, including event simulators, cycle simulators and instruction set simulators.
  • Programming structures and functionality implemented in computer-executable instructions as disclosed hereinabove for performing steps of the method may find specific implementations in a variety of forms, which are considered to be within the abilities of a programmer of ordinary skill in the art after having reviewed the specification.
  • The foregoing description of the invention illustrates and describes the present invention. Additionally, the disclosure shows and describes only the preferred embodiments of the invention, but it is to be understood that the invention is capable of use in various other combinations, modifications, and environments and is capable of changes or modifications within the scope of the inventive concept as expressed herein, commensurate with the above teachings, and/or the skill or knowledge of the relevant art. The embodiments described hereinabove are further intended to explain best modes known of practicing the invention and to enable others skilled in the art to utilize the invention in such, or other, embodiments and with the various modifications required by the particular applications or uses of the invention. Accordingly, the description is not intended to limit the invention to the form disclosed herein. Also, it is intended that the appended claims be construed to include alternative embodiments.

Claims (9)

1. A verification test bench system used in testing in a core which is used in a design, the system comprising:
a processor configured to implement a bus functional model coupled, through a mirror interface, to an external interface of a core undergoing verification and memory,
wherein the mirror interface is an exact copy of the external interface;
a bi-directional general purpose I/O device; and
a control mechanism comprising:
means for implementing a standardized handshake protocol between the design and the mirror interface; and
a source for control code which, when loaded into the bus functional model, controls data flow, transfer direction, and data checking when a test case is running in the design.
2. The verification test bench system of claim 1, wherein said core is coupled to said external interface, and said control mechanism issues directives in said handshake protocol to initiate and control an exchange of data between said mirror interface and the external interface.
3. A verification method comprising:
attaching a mirror interface to an external interface of a core in a system-on-chip (SOC) undergoing verification, wherein the mirror interface is an exact copy of the external interface; and
executing a test case in said SOC which applies test stimuli to said external interface using said mirror interface.
4. The method of claim 3, further comprising providing a control mechanism for enabling said test case to configure and control said mirror interface.
5. The method of claim 4, wherein said providing a control mechanism comprises:
implementing a standardized handshake protocol for communicating with said SOC; and
providing control code for configuring said mirror interface and transferring data to said external interface via said mirror interface.
6. The method of claim 5, further comprising:
issuing directives in said handshake protocol using said control code to configure said mirror interface; and
initiating data transfer between said mirror interface and said external interface.
7. A computer program product tangibly embodied on a computer-usable medium, said program product comprising computer-executable instructions which when executed implement a process comprising the steps of:
connecting an external interface of a core on to a mirror interface of said external interface, wherein the mirror interface is an exact copy of the external interface; and
executing a test case in a system-on-chip (SOC) design to apply test stimuli for verification of said external interface via said mirror interface.
8. The computer program product of claim 7, said process further comprising executing a control mechanism for enabling said test case to control said mirror interface.
9. The program product of claim 7, said process further comprising implementing communication means for enabling said test case to communicate with said mirror interface.
US11/744,482 2001-04-04 2007-05-04 Method and system for logic verification using mirror interface Abandoned US20070204246A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US11/744,482 US20070204246A1 (en) 2001-04-04 2007-05-04 Method and system for logic verification using mirror interface

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
US09/826,035 US6865502B2 (en) 2001-04-04 2001-04-04 Method and system for logic verification using mirror interface
US10/986,773 US7353131B2 (en) 2001-04-04 2004-11-15 Method and system for logic verification using mirror interface
US11/744,482 US20070204246A1 (en) 2001-04-04 2007-05-04 Method and system for logic verification using mirror interface

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
US10/986,773 Continuation US7353131B2 (en) 2001-04-04 2004-11-15 Method and system for logic verification using mirror interface

Publications (1)

Publication Number Publication Date
US20070204246A1 true US20070204246A1 (en) 2007-08-30

Family

ID=25245531

Family Applications (4)

Application Number Title Priority Date Filing Date
US09/826,035 Expired - Fee Related US6865502B2 (en) 2001-04-04 2001-04-04 Method and system for logic verification using mirror interface
US10/986,773 Expired - Fee Related US7353131B2 (en) 2001-04-04 2004-11-15 Method and system for logic verification using mirror interface
US11/744,482 Abandoned US20070204246A1 (en) 2001-04-04 2007-05-04 Method and system for logic verification using mirror interface
US11/930,820 Expired - Fee Related US7729877B2 (en) 2001-04-04 2007-10-31 Method and system for logic verification using mirror interface

Family Applications Before (2)

Application Number Title Priority Date Filing Date
US09/826,035 Expired - Fee Related US6865502B2 (en) 2001-04-04 2001-04-04 Method and system for logic verification using mirror interface
US10/986,773 Expired - Fee Related US7353131B2 (en) 2001-04-04 2004-11-15 Method and system for logic verification using mirror interface

Family Applications After (1)

Application Number Title Priority Date Filing Date
US11/930,820 Expired - Fee Related US7729877B2 (en) 2001-04-04 2007-10-31 Method and system for logic verification using mirror interface

Country Status (1)

Country Link
US (4) US6865502B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050144577A1 (en) * 2001-04-04 2005-06-30 International Business Machines Method and system for logic verification using mirror interface
US20100235803A1 (en) * 2009-03-16 2010-09-16 Lara Gramark Method and Apparatus for Automatically Connecting Component Interfaces in a Model Description
US8533647B1 (en) 2012-10-05 2013-09-10 Atrenta, Inc. Method for generating an integrated and unified view of IP-cores for hierarchical analysis of a system on chip (SoC) design
CN104461968A (en) * 2014-11-21 2015-03-25 华为技术有限公司 I/O channel allocation method and device
CN111586969A (en) * 2020-04-28 2020-08-25 中国科学院计算技术研究所 Circuit wiring method, DDR4 internal memory circuit and electronic equipment

Families Citing this family (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7627462B2 (en) * 2001-11-27 2009-12-01 Arm Limited Hardware simulation using a test scenario manager
US20030145290A1 (en) * 2002-01-30 2003-07-31 International Business Machines Corporation System for controlling external models used for verification of system on a chip (SOC) interfaces
US7099813B2 (en) * 2002-04-09 2006-08-29 Arm Limited Simulating program instruction execution and hardware device operation
US7840803B2 (en) * 2002-04-16 2010-11-23 Massachusetts Institute Of Technology Authentication of integrated circuits
US6732060B1 (en) * 2002-05-06 2004-05-04 Adaptec, Inc. System and method for an interface invariant test case
US7397768B1 (en) 2002-09-11 2008-07-08 Qlogic, Corporation Zone management in a multi-module fibre channel switch
US7894348B2 (en) 2003-07-21 2011-02-22 Qlogic, Corporation Method and system for congestion control in a fibre channel switch
US7792115B2 (en) 2003-07-21 2010-09-07 Qlogic, Corporation Method and system for routing and filtering network data packets in fibre channel systems
US7684401B2 (en) 2003-07-21 2010-03-23 Qlogic, Corporation Method and system for using extended fabric features with fibre channel switch elements
US7646767B2 (en) 2003-07-21 2010-01-12 Qlogic, Corporation Method and system for programmable data dependant network routing
CN100365587C (en) * 2004-01-05 2008-01-30 华为技术有限公司 Adaptive wave filter logic verifying system and method
US7930377B2 (en) 2004-04-23 2011-04-19 Qlogic, Corporation Method and system for using boot servers in networks
US7404020B2 (en) * 2004-07-20 2008-07-22 Qlogic, Corporation Integrated fibre channel fabric controller
US8295299B2 (en) 2004-10-01 2012-10-23 Qlogic, Corporation High speed fibre channel switch element
US7702927B2 (en) * 2004-11-12 2010-04-20 Verayo, Inc. Securely field configurable device
US7434182B2 (en) * 2005-07-14 2008-10-07 International Business Machines Corporation Method for testing sub-systems of a system-on-a-chip using a configurable external system-on-a-chip
JP4346587B2 (en) * 2005-07-27 2009-10-21 富士通株式会社 System simulation method
JP4667206B2 (en) * 2005-10-31 2011-04-06 富士通セミコンダクター株式会社 Multi-core model simulation program, recording medium storing the program, multi-core model simulator, and multi-core model simulation method
US20100318953A1 (en) * 2006-12-13 2010-12-16 Luminary Micro, Inc. Platform programming for mass customization
US8726241B1 (en) * 2007-06-06 2014-05-13 Rockwell Collins, Inc. Method and system for the development of high-assurance computing elements
US8839214B2 (en) * 2010-06-30 2014-09-16 Microsoft Corporation Indexable type transformations
US8874968B1 (en) * 2012-04-27 2014-10-28 Coresonic Ab Method and system for testing a processor designed by a configurator
CN105573750A (en) * 2015-12-11 2016-05-11 中国航空工业集团公司西安航空计算技术研究所 SoC verification software design platform based on embedded processor
CN106970311A (en) * 2016-01-14 2017-07-21 北京君正集成电路股份有限公司 A kind of chip detecting method
CN108073738B (en) * 2016-11-16 2022-02-18 鸿富锦精密电子(天津)有限公司 GPIO (general purpose input/output) verification system and method
US10698805B1 (en) * 2017-01-25 2020-06-30 Cadence Design Systems, Inc. Method and system for profiling performance of a system on chip
CN110658400B (en) * 2019-09-29 2022-06-10 上海移为通信技术股份有限公司 Embedded test method, microcontroller and system
CN115481594B (en) * 2021-11-22 2023-09-08 北京百度网讯科技有限公司 Scoreboard implementation method, scoreboard, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4377318A (en) * 1978-02-06 1983-03-22 Everett/Charles, Inc. Low insertion force electrical interface assembly and actuable interface assembly therefor
US5146474A (en) * 1990-03-23 1992-09-08 Siemens Aktiengesellschaft Circuit arrangement for the routine testing of an interface between line terminator groups and the switching matrix network of a PCM telecommunication switching system
US5414695A (en) * 1992-11-20 1995-05-09 Siemens Aktiengesellschaft Method for monitoring existing telephone connections, particularly permanently switched telephone connections
US5668745A (en) * 1995-10-20 1997-09-16 Lsi Logic Corporation Method and apparatus for testing of semiconductor devices
US20020147560A1 (en) * 2001-04-04 2002-10-10 International Business Machines Corporation Method and system for logic verification using mirror interface
US6487699B1 (en) * 2000-01-31 2002-11-26 International Business Machines Corporation Method of controlling external models in system-on-chip verification
US6539522B1 (en) * 2000-01-31 2003-03-25 International Business Machines Corporation Method of developing re-usable software for efficient verification of system-on-chip integrated circuit designs
US6615167B1 (en) * 2000-01-31 2003-09-02 International Business Machines Corporation Processor-independent system-on-chip verification for embedded processor systems

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5669745A (en) * 1995-08-30 1997-09-23 Zeftek, Inc. Bumper system for an intermodal auto trailer
US6868502B2 (en) * 1998-10-15 2005-03-15 Hewlett-Packard Development Company, L.P. Combination analog and digital modem

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4377318A (en) * 1978-02-06 1983-03-22 Everett/Charles, Inc. Low insertion force electrical interface assembly and actuable interface assembly therefor
US5146474A (en) * 1990-03-23 1992-09-08 Siemens Aktiengesellschaft Circuit arrangement for the routine testing of an interface between line terminator groups and the switching matrix network of a PCM telecommunication switching system
US5414695A (en) * 1992-11-20 1995-05-09 Siemens Aktiengesellschaft Method for monitoring existing telephone connections, particularly permanently switched telephone connections
US5668745A (en) * 1995-10-20 1997-09-16 Lsi Logic Corporation Method and apparatus for testing of semiconductor devices
US6487699B1 (en) * 2000-01-31 2002-11-26 International Business Machines Corporation Method of controlling external models in system-on-chip verification
US6539522B1 (en) * 2000-01-31 2003-03-25 International Business Machines Corporation Method of developing re-usable software for efficient verification of system-on-chip integrated circuit designs
US6615167B1 (en) * 2000-01-31 2003-09-02 International Business Machines Corporation Processor-independent system-on-chip verification for embedded processor systems
US20020147560A1 (en) * 2001-04-04 2002-10-10 International Business Machines Corporation Method and system for logic verification using mirror interface
US6865502B2 (en) * 2001-04-04 2005-03-08 International Business Machines Corporation Method and system for logic verification using mirror interface
US20050144577A1 (en) * 2001-04-04 2005-06-30 International Business Machines Method and system for logic verification using mirror interface
US7353131B2 (en) * 2001-04-04 2008-04-01 International Business Machines Corporation Method and system for logic verification using mirror interface
US20080222583A1 (en) * 2001-04-04 2008-09-11 International Business Machines Corporation Method and system for logic verification using mirror interface

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050144577A1 (en) * 2001-04-04 2005-06-30 International Business Machines Method and system for logic verification using mirror interface
US7353131B2 (en) * 2001-04-04 2008-04-01 International Business Machines Corporation Method and system for logic verification using mirror interface
US20080222583A1 (en) * 2001-04-04 2008-09-11 International Business Machines Corporation Method and system for logic verification using mirror interface
US7729877B2 (en) * 2001-04-04 2010-06-01 International Business Machines Corporation Method and system for logic verification using mirror interface
US20100235803A1 (en) * 2009-03-16 2010-09-16 Lara Gramark Method and Apparatus for Automatically Connecting Component Interfaces in a Model Description
US8533647B1 (en) 2012-10-05 2013-09-10 Atrenta, Inc. Method for generating an integrated and unified view of IP-cores for hierarchical analysis of a system on chip (SoC) design
US8788993B2 (en) 2012-10-05 2014-07-22 Atrenta, Inc. Computer system for generating an integrated and unified view of IP-cores for hierarchical analysis of a system on chip (SoC) design
CN104461968A (en) * 2014-11-21 2015-03-25 华为技术有限公司 I/O channel allocation method and device
WO2016078322A1 (en) * 2014-11-21 2016-05-26 华为技术有限公司 Io channel allocation method and device
CN111586969A (en) * 2020-04-28 2020-08-25 中国科学院计算技术研究所 Circuit wiring method, DDR4 internal memory circuit and electronic equipment

Also Published As

Publication number Publication date
US20020147560A1 (en) 2002-10-10
US20080222583A1 (en) 2008-09-11
US6865502B2 (en) 2005-03-08
US7353131B2 (en) 2008-04-01
US7729877B2 (en) 2010-06-01
US20050144577A1 (en) 2005-06-30

Similar Documents

Publication Publication Date Title
US7729877B2 (en) Method and system for logic verification using mirror interface
US8024699B2 (en) Testing sub-systems of a system-on-a-chip using a configurable external system-on-a-chip
US5663900A (en) Electronic simulation and emulation system
US7366650B2 (en) Software and hardware simulation
US6539522B1 (en) Method of developing re-usable software for efficient verification of system-on-chip integrated circuit designs
US6202044B1 (en) Concurrent hardware-software co-simulation
TW494325B (en) Method and apparatus for SoC design validation
US5715433A (en) Dynamic software model for emulating hardware
US20080133206A1 (en) Method of switching external models in an automated system-on-chip integrated circuit design verification system
CN102542110B (en) Emulation verification method applied to mobile storage SOC (system on chip) chip
US5995740A (en) Method for capturing ASIC I/O pin data for tester compatibility analysis
US6487699B1 (en) Method of controlling external models in system-on-chip verification
US20060212768A1 (en) Verification circuitry for master-slave system
US20050144436A1 (en) Multitasking system level platform for HW/SW co-verification
US6842883B2 (en) Application of co-verification tools to the testing of IC designs
US20030145290A1 (en) System for controlling external models used for verification of system on a chip (SOC) interfaces
US20170185710A1 (en) Testbench Restoration Based On Capture And Replay
US6868545B1 (en) Method for re-using system-on-chip verification software in an operating system
US20020188432A1 (en) Circuit model generation and circuit model testing
US6442514B1 (en) Method and system for simulating a communications bus
Nangia et al. Functional verification of I2C core using SystemVerilog
US7017097B1 (en) Simultaneously driving a hardware device and a software model during a test
JP2001051025A (en) Program debugging apparatus for semiconductor test
US6829572B2 (en) Method and system for efficiently overriding array net values in a logic simulator machine
Ryzhyk et al. Improved device driver reliability through hardware verification reuse

Legal Events

Date Code Title Description
STCB Information on status: application discontinuation

Free format text: ABANDONED -- FAILURE TO RESPOND TO AN OFFICE ACTION

AS Assignment

Owner name: GLOBALFOUNDRIES U.S. 2 LLC, NEW YORK

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:INTERNATIONAL BUSINESS MACHINES CORPORATION;REEL/FRAME:036550/0001

Effective date: 20150629

AS Assignment

Owner name: GLOBALFOUNDRIES INC., CAYMAN ISLANDS

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:GLOBALFOUNDRIES U.S. 2 LLC;GLOBALFOUNDRIES U.S. INC.;REEL/FRAME:036779/0001

Effective date: 20150910