Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A method of fpga interactive simulation based on tcl

A simulation method, interactive technology, applied in the direction of software testing/debugging, etc.

Active Publication Date: 2017-04-12
SHANGHAI BEIJING UNIV FOUNDER TECH COMP SYST
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In addition, there is a certain amount of repetitive work to develop and test test cases for the same function on the simulation platform and the board-level test platform.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method of fpga interactive simulation based on tcl
  • A method of fpga interactive simulation based on tcl
  • A method of fpga interactive simulation based on tcl

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] The TCL_PLI library allows any Tcl statement to be called in the verilog simulation. The function of PLI is to initialize the Tcl interpreter and map the Tcl function to the verilog task. In addition, it can also help start the script in the Tcl interpreter. Control the interaction between verilog and Tcl. Verilog's task has an entry that allows Tcl to pass variables to Verilog. Similarly, Verilog can also pass returned variables to Tcl. PLI provides this kind of information sharing and data transfer between Tcl and verilog.

[0019] There are four PLI functions in the TCL_PLI library: $tcllnit, $tclExec, $tclGetArgs, and $tclClose. $tcllnit is used to create and initialize a new Tcl interpreter. It defines a new Tclfunction that can be called by Verilog's task and is mapped to the corresponding task. It also defines how many parameters can be used. $tclExec is used to execute a new script to map Tcl commands to Verilog tasks. $tclGetArgs is used to get the parameter v...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an FPGA (Field Programmable Gate Array) interactive simulation method based on Tcl (Tool Command Language). The method comprises the steps of 1) establishing a Tcl interpreter in an FPGA verification platform verilog, and establishing a communication channel between the verilog and the Tcl; 2) creating a test case in the verilog by the Tcl; 3) calling the test case by the Tcl interpreter; when the Tcl interpreter receives a write operation command name, the Tcl interpreter calls the write operation task in the verilog according to the write operation command and transmits the address and data for performing the write operation to the verilog to switch process; when the Tcl interpreter receives a read operation command name, the Tcl interpreter calls the read operation task in the verilog according to the read operation command and transmits the data for performing the read operation to the verilog to switch process; when the Tcl interpreter receives a wait operation command name, the Tcl interpreter calls the wait operation task in the verilog according to the wait operation command; 4) after finishing the task of the verilog, returning a return value to the Tcl interpreter and switching the process. By adopting the method, the workload of developing and debugging the test case is reduced; the simulation process can be controlled in real time.

Description

Technical field [0001] The invention relates to a Tcl-based FPGA interactive simulation method, which belongs to the technical field of computer software. [0002] technical background [0003] With the increasing capacity and scale of FPGA, the complexity of FPGA design is getting higher and higher. In order to ensure the quality of the design, FPGA verification engineers need to use Verilog or Systemverilog language to build a verification platform and write test cases and use simulation tools to perform FPGA Functional simulation. At the same time, the FPGA engineer needs to convert the FPGA code into a loading file and download it to the FPGA device for board-level testing. In board-level testing, FPGA engineers also need to write test scripts based on software drivers to perform board-level testing on FPGAs. FPGA simulation is to verify the FPGA design code. The advantage of this method is that it can directly see the simulated waveform, which is convenient for FPGA engineer...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/36
Inventor 蔡潇
Owner SHANGHAI BEIJING UNIV FOUNDER TECH COMP SYST
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products