Skip to content

daedaleanai/sw-axi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sw-axi

Building and running instructions

sw-axi uses CMake for building. It requires the following packages on Debian/Ubuntu:

  • build-essential
  • cmake
  • libflatbuffers-dev
  • golang

It also requires one of the following simulators:

  • Xilinx Xsim
  • Modelsim

You can type the following to build it:

]==> git clone [email protected]:daedaleanai/sw-axi.git
]==> cd sw-axi
]==> mkdir build
]==> cd build
]==> cmake .. -DUSE_MODELSIM
]==> make

The above will detect modelsim and build the compatible SystemVerilog simulation archives. Alternatively, you can specify USE_XSIM to use the Xilinx simulator distributed together with Vivado.

You need to use one of the runtime scripts to run the simulation. Like this:

]==> cd tests/01-handshake
]==> ../../../scripts/run-modelsim.sh testbench 01-handshake-sv.tar

This will set up the simulation environment, including DPI, and run module testbench.