Cycle-accurate and cycle-reproducible memory for a hardware accelerator based on FPGAs

The use of FPGAs for simulating integrated circuits addresses cycle accuracy and reproducibility issues by employing hyperclocking and protocol separation techniques, ensuring efficient and accurate simulation results.

DE112013001809B4Active Publication Date: 2024-10-31INTERNATIONAL BUSINESS MACHINE CORPORATION
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
DE112013001809
Authority / Receiving Office
DE · DE
Patent Type
Patents
Current Assignee / Owner
Priority Date
2012-03-30
Filing Date
2013-01-07
Publication Date
2024-10-31
Estimated Expiration
2033-01-07

AI Technical Summary

Technical Problem

Simulating complex integrated circuits using field-programmable hardware accelerators (FPGAs) faces challenges in maintaining cycle accuracy and reproducibility, particularly when dealing with diverse memory types like register arrays and DRAMs, which are crucial for effective simulation debugging and acceleration.

Method used

A method and system utilizing FPGAs to simulate integrated circuits by applying specific input sets at defined frequencies, separating memory interface protocols, and using hyperclocking techniques to maintain cycle accuracy and reproducibility, along with programmable address translation and initialization circuits to ensure consistent simulation results.

Benefits of technology

Ensures cycle-accurate and cycle-reproducible simulations of integrated circuits, enabling efficient debugging and reduced simulation time, while optimizing resource allocation and performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

A method for using a field-programmable gate array (FPGA) to simulate the operation of a device under test (DUT), wherein the DUT has a unit memory having a number of input ports, and the FPGA is associated with a target memory having a second number of input ports, the second number being less than the first number, the method comprising: applying a certain set of inputs to the unit memory via the input ports of the unit memory at a frequency Fd and in a defined time cycle; and applying the certain set of inputs to the target memory via the input ports of the target memory at a frequency Ft, where Ft is greater than Fd, in order to apply all of the certain set of inputs to the target memory in the defined time cycle in order to maintain cycle accuracy between the unit memory and the target memory.
Need to check novelty before this filing date? Find Prior Art

Description

Background of the invention

[0001] The present invention relates generally to simulating the operation of integrated circuits and In particular, the use of field-programmable gate arrays to simulate the operation of integrated Circuits.

[0002] With the increasing prevalence of single-chip systems and multiple processor cores on a single chip, Simulating these complex chips is a costly challenge. One of the techniques used to simulate of these complex systems, hardware accelerators based on field-programmable Gate arrays (FPGA). These hardware accelerators work on the principle of subdividing the chip construction (the The device under test (DUT) is divided into small blocks. These blocks are then implemented on various FPGAs. These FPGAs are connected to each other in the same way as the original DUT design. The chip or DUT Simulations can then be executed on this specialized FPGA hardware instead of on a conventional Simulator. Conventional simulators are written entirely in software and run on a General purpose computers. Hardware simulators can usually provide a higher offer a speed advantage of several orders of magnitude.

[0003] Accelerating the simulation may be desirable for several reasons. The number of simulations that must be carried out to test a large digital chip is very large. To carry out these simulations in To complete the project in a reasonable time using software, a large number of computers with the appropriate associated costs. An accelerated simulator reduces this number. Furthermore, it is It is often necessary to simulate a circuit over a very long period of time before becoming the subject of This long simulation is a sequential process that, in a software implementation, requires several days, and it cannot be accelerated simply by using more computers.

[0004] One of several design challenges that arise when creating hardware simulation accelerators is cycle accuracy. The hardware accelerator based on FPGAs should match the behavior of the DUT cycle by cycle, which means - if the DUT is running on a software simulator simulated or if the DUT is built into a single or multiple chips, all three systems - the Hardware accelerator, the software simulator and the DUT chip - in any DUT clock cycle in the same This becomes a significant challenge in the design of hardware accelerators, as the DUT construction different types of memory - register arrays, SRAMs, embedded or external DRAMs - All these DUT memory types must be mapped to the chip memory of the FPGA or the memory associated with the FPGA. be assigned to external storage.

[0005] Another challenge in the design is the creation of hardware simulation accelerators in cycle reproducibility, which is defined as follows: Multiple executions that are carried out by the same initial condition, produce an identical trace for all DUT states. Each time the Simulation is performed with exactly the same stimulus, exactly the same results should be produced by the simulator In some cases, the system could, for example, perform the simulation at different optimization levels At the highest optimization level, the simulation runs very quickly and is used to check that there are no errors. However, if errors are present and the optimized simulation indicates this, it is desirable to reproduce this simulation at a lower level of optimization that provides a good trace for a circuit error correction. The two simulations should behave exactly the same, otherwise It is not possible to troubleshoot the circuit in this way. Although this feature of the Cycle reproducibility is usually easy to ensure in software implementations of the simulator, This becomes a significant problem when software technology is replaced by hardware accelerator technology. In one or more cases, this aspect is one of the more serious limitations on how strong the simulation a digital circuit can be accelerated.

[0006] Cycle reproducibility is crucial to enable effective simulation debugging, and this requirement limits the way in which clock generation and recovery of the entire acceleration system. The requirement for cycle reproducibility also increases The challenge of how the DUT memory is mapped to the accelerator platform is considerably increased. the DUT represents a large part of the system state, the entire addressable content of such a memory correctly initialized and maintained to ensure that it matches that of the software simulation and the final chip implementation matches.

[0007] In this context, some disclosures already exist. The document US 2008 / 0 313 578 A1 describes Techniques for use with automated circuit designs and simulations. Snapshots of Contents of registers are described. According to the procedure, descriptions of circuit designs including designed registers and register input signals. The document US 2009 / 0 319 253 A1 describes a Method for iterative repair and burn-in simulation for an FPGA-based architecture. The document US 2010 / 0 223 502 A1 describes a memory-based trigger generation scheme in which trigger signals are generated using a Hardware emulator. Input test signals are applied to a port of a memory of an integrated circuit in the emulator. Furthermore, the document DE 10 2007 060 783 A1 describes an asynchronous Control transfer of service routine data blocks. And finally, the document US 2011 / 0304 352 A1 describes a Control board for a connection between FPGA boards and a test device. Switches can be used to interrupt individual connections.

[0008] Despite these advances, there is still a need for tools for reliable, fast and cost-effective chip design. Brief description

[0009] _is solved by the subject matter of the independent claims. Further embodiments are defined by the respective dependent claims. Embodiments of the invention provide a method, a system and a Computer program product for using a field-programmable gate array (FPGA) to control the operation of a Test Unit (DUT). The DUT contains a unit memory that contains a number of input terminals and the FPGA is associated with a target memory having a second number of input terminals, wherein the second number is less than the first number. In one embodiment, the method comprises applying a specific set of inputs to the unit memory via the input terminals of the unit memory at a Frequency Fd and in a defined time cycle and applying the specific set of inputs to the Target memory across the input terminals of the target memory at a frequency Ft. Ft is greater than Fd, and all of the specific set of inputs are applied to the target memory in the defined time cycle to determine the Maintain cycle accuracy between the unit memory and the target memory.

[0010] In one embodiment, the method further comprises creating a cycle-accurate model of the DUT- memory by separating the DUT memory interface protocol from the target memory array.

[0011] In one embodiment, the method further comprises creating a cycle-accurate and cycle-reproducible model of the DUT memory. This is done by operating an associated DUT Memory interface with a pauseable DUT clock, operating the target memory with a free-running clock and Maintaining a constant frequency and phase relationship between the pauseable DUT clock and the free-running beat.

[0012] In one embodiment, the unit memory has a data width of Wd, and the target memory has a data width of Wt. The input terminals of the unit memory include one or more read terminals and one or more write ports, and Nd is set to be the larger of the number of read ports or corresponds to the number of write ports of the unit memory. At is a predefined number that defines Number of Ft clock cycles required to perform a read or write operation on the target memory; and Fd is less than or equal to (Ft) / ((Wd / Wt))(At + Nd)).

[0013] In one embodiment, the DUT memory is a DUT DRAM memory, and the The target memory is a target DRAM memory. The method further comprises hiding a Updating the target DRAM memory by scrambling the addresses of the target DRAM memory to avoid the need to update the target DRAM memory, forcing an update in the target DRAM memory when an update of the DUT DRAM memory is performed, and stopping a DUT clock while the Update of the target memory is performed and restart the DUT clock after the update of the target storage is finished.

[0014] In one embodiment, the DUT memory is a DUT DRAM memory in which Target memory is a target DRAM memory, and the target DRAM memory is used at specified times The method further comprises concealing the update of the target memory by hyperclocking the Target storage so that the target storage and the DUT memories operate at different frequencies, and hiding the update of the target memory using the frequency difference between the DUT memory operation and the target memory operation.

[0015] In one embodiment, instruction sequences are applied to the device memory, and the method comprises Furthermore, the use of the target memory to detect incorrect command sequences applied to the unit memory recognize and identify.

[0016] In one embodiment, the method further comprises providing a programmable Address translation between the unit memory and the target memory to translate addresses in the Unit memory into addresses in the target memory and using the programmable address translation to Investigate a device memory performance optimization.

[0017] In one embodiment, one or more unit clocks are used to access the unit memory operate; and the unit memory is reset at specified times to a defined unit memory state not equal to reset to zero. All of the one or more unit clocks are stopped while the Unit memory is reset to the defined non-zero unit memory state to clear the unit memory with cycle reproducibility.

[0018] In one embodiment, a first pauseable clock is used to update the unit memory with the frequency Fd, a second clock is used to operate the target memory at frequency Ft, and the The first, stoppable cycle is stopped under defined conditions. The second cycle is free-running if the first cycle is paused to apply at least some of the particular sets of inputs to the target memory while the first clock is stopped, and a constant phase relationship is maintained between the first and second clock maintain.

[0019] In embodiments of the invention, the target memory is hyperclocked, which means that the memory is a higher clock than the DUT clock, with the additional memory clock cycles being used to between ports of the target memory. Since no additional DUT cycles are required, To multiplex between read and write ports, the hyperclocked memory model receives the Maintain cycle accuracy.

[0020] In order to maintain cycle-reproducible behavior, embodiments of the invention provide a Initialization circuitry is provided which uses a multiplexed write port to pre-set a known state in the Memory loads. The term preload is used to emphasize that at this time no DUT clocks Initializing the entire memory of a complex chip could take several Include pre-charge circuits, and parts of the storage system can be selectively selected for pre-charge, to maintain the cycle reproducibility of the hardware accelerator. Brief description of the different views of the drawings Fig. 1 shows a simulation system that uses a variety of field-programmable gate array (FPGA) units according to one embodiment of the invention. Fig. 2 shows an example architecture of an FPGA unit. Fig. 3 illustrates the operation of free-running and stoppable cycles. Fig. 4 shows a block diagram of a target memory model that represents a test unit DRAM according to a Embodiment of the invention implemented. Detailed description

[0021] As will be apparent to one skilled in the art, embodiments of the present invention may be implemented as a system, method or computer program product. Accordingly, embodiments of the present invention, a pure hardware embodiment, a pure software embodiment (including firmware, resident software, microcode, etc.) or adopt an embodiment in which software and hardware aspects which are all referred to herein as ´´circuit´´, ´´module´´ or ´´system´´ Furthermore, embodiments of the present invention may take the form of a computer program product embodied in any physical medium of expression, computer-usable Program code is embodied in the medium.

[0022] It may be any combination of one or more computer-usable or computer-readable media The computer-usable or computer-readable medium may, for example, be a electronic, magnetic, optical, electromagnetic, infrared or semiconductor system, device, unit or distribution medium, but are not limited to these. For more specific examples (a non- exhaustive list) of the computer The following may be used for the transport medium: an electrical connection with one or more cables, a portable Computer diskette, a hard disk, a random access memory (RAM), a read-only memory (read- only memory (ROM), an erasable, programmable read-only memory (erasable programmable read-only memory, EPROM or Flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage unit, a transmission medium such as those supporting the Internet or an intranet, or a Magnetic storage device. It should be noted that the computer-usable or computer-readable medium may also, for example, paper or another suitable medium on which the program is printed, since the program can be captured electronically, for example by optical scanning of the paper or other medium, then compiled, interpreted or, where appropriate, processed in another suitable way and then in a computer memory. For the purposes of this document, a computer-usable or computer-readable Medium means any medium that carries the Program for use by the system, apparatus, or device for contain, store, exchange, distribute or transmit information related to the execution of instructions or in connection with them. computer-usable medium may be a propagating data signal in which the computer-usable program code embodied, for example in the baseband or as part of a carrier wave. The computer-usable Program code may be transmitted using any suitable medium, for example, radio, cable, Fiber optic cables, radio frequency (RF), etc., but not limited to these.

[0023] Computer program code for carrying out operations of the present invention may be in any combination of or several programming languages, for example in an object-oriented programming language such as such as Java, Smalltalk, C++ or the like and in conventional procedural programming languages ​​such as Example of the programming language ´´C´´ or similar programming languages. The program code can be completely on the User's computer, partly on the User's computer, as a standalone software package, partly on the the user's computer and partly on a remote computer or entirely on the remote remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network, for example through a local area network (LAN) or a wide area network (WAN), or the connection can be made with an external computer (for example via the Internet using an Internet service provider).

[0024] The present invention will be described below with reference to flowcharts and / or block diagrams of Methods, devices (systems) and computer program products according to embodiments of the invention It is understood that each block of the flowcharts and / or block diagrams and combinations of blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions can be for a processor of a general-purpose computer, a special-purpose computer, or a other programmable data processing apparatus to produce a machine such that the instructions which are executed by the processor of the computer or other programmable data processing device are executed, create a means for implementing the functions / operations defined in the block or blocks the flowcharts and / or block diagrams. These computer program instructions may also be contained in a stored on a computer-readable medium that can be used by a computer or other programmable data processing device to operate in a particular way so that the computer-readable medium produce an article of manufacture that Contains instruction means that implement the function / operation described in the block or blocks of the Flowcharts and / or block diagrams are specified.

[0025] The computer program instructions may also be executed on a computer or other programmable data processing device to cause a series of steps of a process to be carried out on the computer or other programmable device to perform a computer-implemented process so that the functions executed on the computer or other programmable device Instructions provide processes to execute the instructions contained in the block or blocks of the flowcharts and / or block diagrams to implement the specified functions / operations.

[0026] The present invention relates to the use of field programmable gate arrays (FPGAs) for Simulating the operation of integrated circuits. More specifically, embodiments of the invention relate to Maintaining a cycle-accurate and cycle-reproducible memory for an FPGA when the Array used to model an integrated circuit.

[0027] FPGAs are often used to simulate digital circuits. The VHDL and / or Verilog code (or another, similar code) describing the digital logic can be synthesized for an FPGA platform and then executed over a very large number of cycles to observe their behavior. Large digital circuits are usually considerably larger than those that can be simulated with a single FPGA, and the Simulation of large digital circuits can require between 10 and 100 FPGAs. Furthermore, the simulation a large digital circuit requires several types of operations, for example, working in single-step mode, create traces or modify register values ​​or perform any, some or all of the other operations that are common in a modern simulation environment.

[0028] For a simulator implemented using a large number of FPGAs, it is usually necessary that all these FPGAs are coordinated in such a way that the different parts of the digital test circuit in are synchronous and remain synchronous even when asynchronous simulation events occur. A requirement of a For example, a call from an FPGA must be sent to all the FPGAs in the simulator by the end of the current cycle. distributed so that cycle-accurate data is retained and can be queried from the simulator (or otherwise This is a method that allows assertion, print statements, and single-step mode among other functions can be implemented in the simulator.

[0029] A number of circuits and synchronization protocols can be implemented in an FPGA simulator infrastructure be implemented that allow a large number of FPGAs to be synchronized cycle by cycle, the Single-step mode, which allows any FPGA in the system to complete the simulation at the end of the current cycle, and / or ensure the cycle reproducibility of the simulation regardless of how it is executed.

[0030] The circuits used for synchronization can be divided into the following categories: High-speed clock start circuits, circuits in continuous operation and circuits that only operate during a Simulation can be executed. Startup circuits generate a global synchronous state at the beginning of the simulation. They include global reset synchronization, global clock synchronization, bring-up for serial connections and The continuous operation circuits start to be executed after the start circuits have have completed the initial synchronization and continue to run regardless of whether the simulation is progressing. Circuits include the serial connections themselves, clock handshake sampling, simulation command processing and Circuits that are only executed during the simulation are only active while the simulation is active They contain all the functional, pauseable clocks, simulation counters, and the like.

[0031] Referring to Fig. 1, an exemplary system according to an embodiment of the invention includes a A plurality of field-programmable target gate arrays 102 configured according to an interconnect topology and allocation sections of a target system, as well as a control module that is connected to the multitude of field-programmable target gate arrays. In one non-limiting example, the control module includes a host control computer 116 executing host control software, a global field-programmable control gate Array 110 connected to the host control computer, and at least a first local field-programmable control Gate array 114 connected to the global field-programmable control gate array and at least a first portion of the A plurality of field-programmable target gate arrays 102 are connected.

[0032] In some cases, the system of Fig. 1 may further comprise a set of free-running, serial point-to-point Data transmission links 112. The set of free-running, serial point-to-point Data transmission links connect the plurality of field-programmable target gate arrays 102 according to the Connection topology. In some embodiments, the connection topology mimics that of the target system. Some Embodiments may include at least one field-programmable router gate array 104 that includes at least one section of the field-programmable target gate array 102.

[0033] The global field-programmable control gate array 110 is configured to perform the simulation of the target system under Initiate, stop, and single-step control through the host control software. at least first local field-programmable control gate array 114 is configured to control the at least first section the multitude of field-programmable target gate arrays directly and system control commands from the global field-programmable control gate array and forward it to it.

[0034] In some embodiments, two or more local field-programmable control gates Arrays 114 may be connected to the global field-programmable control gate array 110, and each local field-programmable control gate array can control one or more of the field-programmable target gate arrays 102. In some embodiments, the global field-programmable control gate array 110 may further be configured to receive service request events from the local field-programmable control gate arrays and summarize and pause the simulation for service or error message events that result from the multitude of field-programmable target gate arrays. The local field-programmable control gate arrays can also for direct control of corresponding sections (one or more) of the plurality of field-programmable target gate arrays 102. In some embodiments, the direct Control of the corresponding sections of the plurality of field-programmable target gate arrays by the local field-programmable control gate arrays, downloading a configuration of the field-programmable target gate Arrays and an initialization of the memory image.

[0035] Additional elements include a balanced clock distribution network 106 configured to reference clock signal 107, and a balanced reset signal distribution network 108 connected to the control module and is configured to send a reset signal to the plurality of field-programmable target Gate arrays. The control module and the balanced reset signal distribution network are jointly configured to initiate a simulation of the target system with the plurality of field-programmable target gate arrays and to control.

[0036] Referring to Fig. 1 and Fig. 2, a plurality of local clock control state machines 226 in the field-programmable target gate arrays 102. The local clock control state machines are connected to the network for balanced clock distribution and receive the reference clock signal from it. The multitude of local Clock control state machines are designed to generate a set of synchronized free-running and pauseable clocks 227, 229 in order to ensure a cycle-accurate and cycle-reproducible execution of the simulation of the target system to maintain.

[0037] In one or more embodiments, the balanced clock distribution network 106 distributes the Reference clock signal 107 with a small deviation. The balanced reset signal distribution network 108 distributes the reset signal with a small deviation; the reset signal is one or more Embodiments are a level-sensitive reset signal. As used herein, a ´´low deviation'' relative to the reference clock signal, so that the total deviation of the balanced network 108 Reset signal distribution from earliest arrival to latest arrival in relation to the time cycle of the reference clock signal is small, so that it can be guaranteed that it is more or less the same everywhere. reference clock cycle arrives.

[0038] In some embodiments, the reference clock signal 107 has the highest clock frequency in the device; and in other embodiments, the reference clock signal 107 is a reference signal for generating a highest clock frequency in the device. In the latter cases, the plurality of field-programmable Target gate arrays 102 further comprise a plurality of phase-locked loops which select the highest clock frequency from the Generate reference signal. Some embodiments include at least one external storage unit 224, which is accessed by the plurality of field-programmable target gate arrays 102 can be accessed and which includes a test code for Performing the simulation of the target system. Additional details of hardware accelerators on the Basis of FPGAs that can be used in embodiments of the invention are described in the on May 10, 2012 published US Publication No. US-20 120 117 413.

[0039] In one embodiment of the operation of the simulation system 100, short Snapshots are taken to identify a period in which an error occurs and then a Repeating the simulation with a finer granularity produces a more complete waveform trace in the identified period in which the error occurs. Instead of, for example, recording a complete trace of the simulation, which time-consuming, a test can be carried out after a specified number of cycles (e.g. after several thousand). snapshot can be captured, and the first snapshot in which the error occurs can be searched. A full trace (with cycle-wise snapshots) can be created between the last snapshot before the error was detected and the first snapshot in which the error was noticed.

[0040] To achieve this simulation, it is important to ensure both cycle accuracy and cycle reproducibility This becomes a significant challenge in the design of hardware accelerators, as the DUT essentially various types of memory - register arrays, SRAMs, embedded or external DRAMs - in their various parts can.

[0041] Memory in today’s chips exists in various forms based on capacity, access time and Power consumption. Chip designers use register arrays for very fast and small memory, usually in the order of a few kilobytes. Register arrays or register files are several thousand compactly arranged registers. Other basic forms of memory are static random access memory (static random access memory (SRAM) and dynamic random access memory (DRAM). SRAMs are faster than DRAMs, but have a larger area and power consumption and are therefore used in capacities of few megabytes. DRAMs have higher densities and generally cover the high megabyte range up to several gigabytes. In a hardware accelerator, this memory could be any form of memory which is available either on the FPGA or outside the FPGA. Cycle accuracy

[0042] The problem of cycle accuracy in the allocation of DUT memory to a hardware Accelerator memory based on FPGAs is considered. This hardware accelerator memory is called Target memory.

[0043] As previously noted, DUT memory in the form of register files or SRAMs may have multiple read / write ports The memory present on the FPG, the target memory, usually has a single read and a single write port. To model a multi-port memory using a single-port memory, A simple time-division multiplexing technique can be used. In this technique, all parallel events are an arbitration technique. This technique is not sufficient to ensure cycle accuracy of the assigned In embodiments of the invention, the target memory is hyperclocked, which means that the memory is operated at a higher clock frequency than the DUT clock, with the additional Memory clock cycles are used to multiplex between pins. Since no additional DUT cycles are required in be used to multiplex between multiple read and write ports, the hyperclocked memory model maintains cycle accuracy.

[0044] This technique can also be used to establish a data port width mapping between the DUT and the target memory. For example, the DUT memory to be modeled is a level Two-Cache of a microprocessor. In today's microprocessors, the cache line can have a width of 128 bytes or Depending on the size of the cache, you may want to model it using an external SRAM attached to the FPGA. To save pins on the FPGA, use Embodiments of the invention use an external SRAM with a smaller width and use the same hyperclock technology, to perform the multiple read or write operations required to construct the DUT memory data width If, in this example, one decides to use an external eight-bit SRAM for To model the L2 cache, 128 read or write operations would have to be performed to To mimic the behavior of a single read or write operation of the DUT cache. To ensure cycle accuracy between the DUT and the target storage model, every 128 read or write operations in less than one DUT clock cycle.

[0045] The DUT memory itself may take longer than a single cycle to complete a read or write operation so that the previous restriction can be weakened. This weakening leads to the expense of Simplicity to a more powerful system. Read or write latency can be optimized based on the history of operations vary greatly, making it difficult to track the number in the worst case, so it is easier to complete the target storage operations in less than a single DUT cycle and the result subsequently only displayed when the desired latency time has been reached.

[0046] To generalize this technique, the maximum frequency at which a target memory can be operated is equal to Ft. The DUT memory to be assigned has Nd read or write ports, whichever is larger. Nd> =1

[0047] The target memory has a single read and a single write port. The data width of the DUT- memory is Wd and that of the target memory is Wt. Wd>=Wt

[0048] In the case where Wt > Wd, the additional bits in the destination memory may remain unused.

[0049] Let At be the worst-case number of Ft clock cycles required when performing a read or a write operation on the target memory. To maintain cycle accuracy, the DUT clock (with frequency Fd) and the target memory clock (with frequency Ft) satisfy the following equation: Fd<= Ft / ((Wd / Wt)*(At+Nd))

[0050] Equation 3 assumes that the target memory has a pipeline architecture. Additional details, which are described in Embodiments of the invention can be used to generate clock signals are described in the simultaneously pending application No. (Agent's Reference YOR920120165US1) entitled ´´Generating Clock Signals For a Cycle Accurate, Cycle Reproducible FPGA Based Hardware Accelerator'', which is hereby submitted the disclosure of which is hereby incorporated by reference in its entirety.

[0051] Another form of DUT memory that requires a special approach when porting to an FPGA The target memory required is DRAM. The DUT can use an integrated DRAM or a separate DRAM chip for In both cases, each of the two can use SRAM or DRAM as the target memory for Use to model the DUT DRAM.

[0052] Fig. 4 shows a block diagram of a target memory model implementing a DUT-DRAM. The block diagram of Fig. 4 shows a DUT DRAM control unit 402 associated with an FPGA logic. Instructions and Data sent and received by this control unit is processed by the protocol management and data Parser block 404 interprets DRAM commands such as read, write, update, preload, Activate etc. and convert them into corresponding commands for the memory control unit 406 of the target memory 410 The target memory control unit 406 then takes over these converted commands and controls the target memory outside the chip. This memory could be in the form of SRAM or DRAM.

[0053] In this embodiment, this technique separates the DUT memory interface protocol from the Memory capacity. The former is managed in the FPGA logic (using the DUT memory protocol manager 404 and a Error detection and reporting block 416), and the latter can be implemented using any memory subsystem (Target memory 410) available on the hardware accelerator board. In this way, the DUT memory control unit 402, like the rest of the DUT logic, is operated at the frequency Fd, whereas the Protocol management 404, the target storage control unit 406 and the target storage array 410 are operated at the frequency Ft as derived in equation (3).

[0054] Separating the DUT memory interface protocol from the memory capacity and executing the former with the DUT clock frequency Fd and the latter with the hyper clock frequency Ft offers another advantage - the FD- Clock generator 412 can be designed to be pauseable, whereas the Ft clock generator 414 can remain free-running. Both the Both the pauseable and the free-running clocks should have a constant phase relationship in order to Cycle reproducibility is maintained. If the DUT clock is pauseable, functions such as operation of the Hardware accelerator in single-step mode. Operating the target memory using a free-running Clock enables the use of a DRAM as target memory.

[0055] Fig. 3 shows a synchronization of free-running clock signals with pauseable clock signals. As shown therein As can be seen, clock phases are generated using a control unit 226 of an asynchronous state machine so that they all executed in synchronism (for the sake of clarity, a simplified version with four states S1, S2, S3 S4). In one or more cases, the state machine control unit 226 is quite flexible, whereby the generation of any rational set of clock frequencies while maintaining the phase In at least some cases, the ´´Go´´ signal from the global control unit 110 can be must be asserted and / or canceled to start and / or stop the simulation execution. As with D1 in As can be seen in Fig. 3, in the clock control unit the cancellation of the Go signal until the first inactive section (LOW) of the clock, thus avoiding potential clock pulse disturbances. Furthermore, as also described in As can be seen in Fig. 3, the rising edge of the Go signal is delayed by D2 to allow the pauseable clocks be continued in the correct state. In this figure, measures have stopped after S2 and can only be continued that they continue at S3. Derived clocks with lower frequencies (e.g. x2, x4 (compared to x1)) are generated by falling pulses instead of maintaining a 50% duty cycle. The advantage of this scheme is to ensure periods in which all clocks are inactive (LOW), which are considered to be favorable Time windows are used to start and / or stop the clock state machine without disruption.

[0056] The DUT storage protocol management in the embodiment of Fig. 4 should have the following functions process: 1. Interpret the DUT storage protocol; 2. Error detection and reporting; 3. Address translation between DUT and target memory; 4. Data width mapping between DUT and target memory; 5. Update compensation; and 6. Support for exploring the architecture of different DUT memory configurations.

[0057] In addition to modeling the DUT memory protocol itself in the FPGA logic, embodiments of the Invention an additional test logic to monitor correct compliance with the protocol by the remaining DUT logic and thus provide valuable coverage for the test. For example, test circuits can be inserted to check for correct timing of a write-after-read operation to the same storage location and report any non-compliance.

[0058] The DRAMs must be updated regularly to maintain their content. This update should be performed in the target memory must be correctly modeled. If the target memory is an SRAM, the Update can be modeled by stopping the SRAM clocks during the update period, making it suitable for all other operations are not made available. Embodiments of the invention model a detector 416, which sets an error flag if a read or write command is issued by the DUT during the update period. logic is generated.

[0059] If the target memory is modeled using DRAM, two separate updates must be processed because both the DUT and the target memory have their own refresh rates. The target memory will usually hyperclocked to compensate for the mismatch in width and depth, as in equation (3), and therefore the update for the DUT DRAM does not overlap the update for the target DRAM. In addition, the target DRAM refresh period should always be invisible to the DUT logic, since the target memory model otherwise the cycle accuracy will be lost. To solve this problem, embodiments of the invention provide two approaches ready.

[0060] One approach is to perform the update required in the target memory by To minimize address scrambling. In DRAMs, the linear address is divided into row, column, bank and rank addresses When low-order bits of the linear address are assigned to rank and bank addresses, different banks are addressed more frequently, reducing the need for updates. This low-order address bits can be further randomized using a known pseudorandom binary sequence, which ensures a variation in the bits. In addition to the address scrambling, at the times where the DUT memory requires an update, an update in the target memory is forced. Both techniques - address scrambling and forced refresh - take place at a hyperclock frequency and are therefore invisible to the DUT clock cycle, thus maintaining cycle accuracy. In the rare In case an update is required for the target memory, embodiments of the invention keep the DUT clocks for the duration of the update and restart them when the update is finished. The DUT clocks run during of the target memory update period, therefore no state change takes place in the DUT, which causes the Cycle accuracy of the entire system is maintained. This technique offers the greatest performance with the Disadvantage of higher complexity.

[0061] The second approach to the above problem provides a simpler solution with reduced or minimal performance cost. Let Rc be the number of cycles required to perform the target memory update is required. Then equation (3) becomes: Fd<=Ft / ((Wd / Wt)*(At+Rc+Nd))

[0062] In this way, the target update period when calculating the allowable DUT operating frequency is always taken into account.

[0063] DRAMs have a large instruction set compared to SRAMs. Not all instructions required to operate a DRAM have a functional equivalent in SRAM. For example, a bank activation command cannot explicitly modeled in an SRAM target memory. To process this instruction, the Protocol management in the block diagram of Fig. 4 this command and uses it to determine the row address of the bank extract which is activated. This line address is then used to to form the linear address of the SRAM used as the target memory. If the target memory is is also a DRAM, the extracted row address can then be used to determine the address for the target DRAM. Similarly, a mode set register command should be interpreted to generate read and write latencies can be extracted. These latencies can then be used to analyze the instruction results to the DUT logic at the desired time. This maintains cycle accuracy. Cycle reproducibility

[0064] In order for a hardware accelerator to exhibit the property of cycle-reproducible behavior, a Memory in any form can be started in the same state after an update. Embodiments of the invention provide an initialization circuit to achieve this cycle-reproducible behavior. The circuit loads a known state into memory using a multiplexed write port. These are simple analog Circuits are available that initialize all memory contents to zero, but they are not useful if the data must be stored with an error correction code or parity. FPGA vendors suggest that during the Configuration to include a binary file to initialize all memory contents to a known state. Although this technique is superior in terms of resource utilization, it is not flexible. The term Preloading in the technique disclosed herein is used to emphasize that at this time no DUT clocks Initializing the entire memory of a complex chip could involve several Pre-charge circuits, although it may not be necessary to pre-charge the entire memory state. For example, in a microprocessor, only the boot memory and the main memory may need to be preloaded. loaded so that the entire memory model is cycle-reproducible. Consequently, parts of the memory system be selectively selected for preloading to maintain cycle reproducibility of the hardware accelerator.

[0065] Memory is usually the most expensive resource in a computer system. Although the main purpose of simulation accelerators is to analyze the DUT memory in a cycle-accurate and cycle-reproducible manner model, they could also be used for a storage density calculation of a system, where Memory density calculation refers to populating the DUT with the correct number of DRAM memory chips to to achieve the highest performance. The DRAM addressing space is divided into row, column, bank and rank addresses For a specific application, it may be desirable to have more ranks and smaller benches for the same total memory to achieve higher performance. Prior knowledge of this data can significantly reduce the cost of the system. It can also be used to create highly to create application-optimized systems. To achieve this level of optimization, embodiments of the Invention a programmable address translation from the address space of the DUT-DRAM to the address space of the This programmability works like a control panel on which any address bit can be side can be connected to any other address bit on the other side. Since the latency times for all Operations are correctly modeled and there is a one-to-one correspondence between each storage location, the Application can be run with several different configurations to determine the impact on the to examine performance.

[0066] The description of the present invention has been presented for the purpose of illustration and description, However, this is not intended to be exhaustive or limited to the invention in the form presented. Numerous modifications and variations will be apparent to those skilled in the art without departing from the scope of the invention. The embodiments were selected and described in order to best explain the principles of the invention and its practical application and to help other experts understand the invention for various embodiments with different, for the to allow for modifications suitable for the intended use.

Claims

1. Method for using a field-programmable gate array (FPGA) to control the operation of a device under test (DUT) simulate, wherein the DUT comprises a unit memory having a number of input terminals, and the FPGA is associated with a target memory having a second number of input terminals, the second number less than the first number, the method comprising: Applying a specific set of inputs to the unit memory via the input terminals of the unit memory at a frequency Fd and in a defined time cycle; and Applying the specific set of inputs to the target memory via the input terminals of the target memory at a frequency Ft, where Ft greater than Fd to transfer all of the specific set of inputs to the target memory in the defined time cycle to maintain cycle accuracy between the unit memory and the target memory.

2. The method of claim 1, further comprising: Creating a cycle-accurate model of the DUT memory by separating the DUT memory interface protocol from the memory array of the target storage.

3. The method according to claim 1, further comprising creating a cycle-accurate and cycle-reproducible model of the DUT memory by operating an associated DUT memory interface with a pauseable DUT clock and Operating the target memory with a free-running clock; and wherein the pauseable DUT clock and the free-running Clock have a constant frequency and phase relationship.

4. The method according to claim 1, wherein: the unit memory has a data width of Wd and the target memory has a data width of Wt; the input ports of the unit memory include one or more read ports and one or more Include write ports; Nd is set to be equal to the larger of the number of read ports or the number of write ports of the Unit memory corresponds, At is a predefined number representing a defined number of Ft clock cycles that are used to perform a read or write operation on the target storage; and Fd is less than or equal to (Ft) / ((Wd / Wt))(At + Nd)).

5. The method of claim 1, wherein the DUT memory is a DUT DRAM memory and the target memory is a target DRAM memory and the method further comprises: Hiding an update of the target DRAM memory by Scrambling the addresses of the target DRAM memory to avoid the need to update the target DRAM memory reduce, Force a refresh in the target DRAM memory when a refresh of the DUT DRAM memory is carried out, and Stopping a DUT cycle while the target memory update is in progress and restarting the DUT clock after the target memory update is complete.

6. The method of claim 1, wherein the DUT memory is a DUT DRAM memory and the target memory is a target DRAM memory and the target DRAM memory is updated at specified times and the method further comprises: Concealing the target memory update by hyperclocking the target memory so that the target memory and the DUT Memory operating at different frequencies, and hiding the update of the target memory using the Frequency difference between the DUT memory operation and the target memory operation.

7. The method of claim 1, wherein instruction sequences are applied to the device memory and the method of Furthermore, it has: Use the target memory to detect and correct incorrect command sequences applied to the unit memory. identify.

8. The method of claim 1, further comprising: Providing a programmable address translation between the device memory and the target memory for Converting addresses in the device memory to addresses in the target memory; and Using programmable address translation to investigate device memory performance optimization.

9. The method of claim 1, further comprising: Using one or more unit clocks to operate the unit memory; Resetting the unit memory at specified times to a defined non-zero unit memory state; and Stopping all of the one or more unit cycles while the unit memory is at the defined non-zero unit memory state is reset to reset the unit memory with a cycle reproducibility to equip.

10. The method of claim 1, wherein applying a particular set of inputs to the device memory contains: Using a first sustainable clock to operate the unit memory at the frequency Fd; and Using a second clock to operate the target memory at frequency Ft; Stopping the first stoppable beat under defined conditions; Allowing the second measure to run freely when the first measure is stopped in order to play at least some of the specific sets of Apply inputs to the target memory while the first clock is stopped; and Maintaining a constant phase relationship between the first and second beats.

11. A system for simulating the operation of a device under test (DUT), the DUT comprising a device memory that stores a Number of input ports, wherein the system comprises: at least one field-programmable gate array (FPGA); a target memory associated with the FPGA for data exchange, the target memory comprising a second number of input terminals, the second number being less than the first number; a DUT control unit for applying a specific set of inputs to the unit memory via the Input terminals of the unit memory at a frequency Fd and in a defined time cycle; and a target memory control unit for applying the determined set of inputs to the target memory via the Input terminals of the target memory at a frequency Ft, where Ft is greater than Fd, to all of the particular set of Apply inputs to the target memory in the defined time cycle to ensure cycle accuracy between the Unit memory and target memory.

12. The system of claim 11, wherein: the target memory control unit creates a cycle-accurate model of the DUT memory by separating the interface protocol of the DUT memory is created from the memory array of the target memory.

13. The system of claim 11, wherein: a suspensible DUT clock is used to operate an associated DUT memory interface; and the target memory control unit creates a cycle-accurate and cycle-reproducible model of the DUT memory by operating of the target memory with a free-running clock, whereas the DUT memory interface with the pauseable DUT clock; and wherein the pauseable DUT clock and the free-running clock have a constant frequency and have a phase relationship.

14. The system of claim 11, wherein: the DUT memory is a DUT DRAM memory and the target memory is a target DRAM storage; and the target memory controller hides an update of the target DRAM memory by Scrambling the addresses of the target DRAM memory to avoid the need to update the target DRAM memory reduce, Force a refresh in the target DRAM memory when a refresh of the DUT DRAM memory is carried out, and Stopping a DUT cycle while the target memory update is in progress and restarting the DUT clock after the target memory update is complete.

15. The system of claim 11, wherein: the DUT memory is a DUT DRAM memory and the target memory is a target DRAM memory and the target DRAM memory is updated at specified times; and the target memory controller hides the update of the target memory by hyperclocking the target memory, so that the Target memory and DUT memory operate at different frequencies, and hiding the update of the Target memory using the frequency difference between the DUT memory operation and the target memory operation.

16. Manufactured item which has: at least one physical, computer-readable unit in which computer-readable program code logic is physically embodied, in order to to simulate the operation of a device under test (DUT) using a field-programmable gate array (FPGA), where the DUT a unit memory having a number of input terminals, wherein the FPGA is associated with a target memory which has a second number of input terminals, the second number being less than the first Number, wherein the computer-readable program code logic, when executed, performs the following: Applying a specific set of inputs to the unit memory via the input terminals of the unit memory at a frequency Fd and in a defined time cycle; and Applying the specific set of inputs to the target memory via the input terminals of the target memory at a frequency Ft, where Ft is greater than Fd, to apply all of the particular set of inputs in the defined time cycle to to apply the target memory to ensure cycle accuracy between the unit memory and the target memory to maintain.

17. The article of manufacture of claim 16, wherein the computer-readable program code logic, when executed, furthermore carries out: Creating a cycle-accurate model of the DUT memory by separating the DUT memory interface protocol from the memory array of the target storage.

18. The article of manufacture of claim 17, wherein the computer-readable program code logic, when executed, furthermore carries out: Creating a cycle-accurate and cycle-reproducible model of the DUT memory by operating using an associated DUT memory interface with a pauseable DUT clock and operating the target memory with a free-running clock; and wherein the pauseable DUT clock and the free-running clock have a constant frequency and have a phase relationship.

Citation Information

Patent Citations

  • asynchronous control transfer

    DE102007060783A1

  • Techniques For Use With Automated Circuit Design and Simulations

    US20080313578A1

  • FPGA Simulated Annealing Accelerator

    US20090319253A1

  • Memory-based trigger generation scheme in an emulation environment

    US20100223502A1

  • Control Board For Connection Between FPGA Boards And Test Device Thereof

    US20110304352A1