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/environmentThis 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:
makeThis will synthesize the design to JSON.
To run verilator simulation run the build simulation command:
make buildsimTo view the trace with gtkwave, first run synthesis and simulation then run:
make view_tracemake show_synth- Show diagram of designmake resources- Report resource usagemake clean- Delete generated files
See the Makefile for additional targets.
- Edit
src/test_name.vto add your Verilog design. - Edit the
PROJECT_NAMEvariable to change the module name. - Edit the board target, seed, etc. by modifying the Makefile variables.
- edit the
sim/test_name.cpptile to reflect the new name of the top module.
The license of this repo is Apache-2.0.