This is a template for Verilog projects using open source EDA tools. It provides a quickstart workflow for synthesizing, simulating, and viewing traces for rtl.
- Ubuntu Linux
- GNU Make
- OSS CAD Suite - installed via
make init
After cloning the repo, run:
make init
source oss-cad-suite/environment
This will download and install the OSS CAD Suite tools and setup the environment.
Note: run the source oss-cad-suite/environment
if starting a new terminal.
To run synthesis simply run make:
make
This will synthesize the design to JSON.
To run verilator simulation run the build simulation command:
make buildsim
To view the trace with gtkwave, first run synthesis and simulation then run:
make view_trace
make show_synth
- Show diagram of designmake resources
- Report resource usagemake clean
- Delete generated files
See the Makefile for additional targets.
- Edit
src/test_name.v
to add your Verilog design. - Edit the
PROJECT_NAME
variable to change the module name. - Edit the board target, seed, etc. by modifying the Makefile variables.
- edit the
sim/test_name.cpp
tile to reflect the new name of the top module.
The license of this repo is Apache-2.0.