Skip to content

This is a quickstart template combining synthesis, simulation, viewing of traces built into makefile targets.

License

Notifications You must be signed in to change notification settings

klei22/Open-Source-Verilog-Workflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open Source Verilog Workflow

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.

Prerequisites

Quickstart

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.

Synthesis

To run synthesis simply run make:

make

This will synthesize the design to JSON.

Simulation

To run verilator simulation run the build simulation command:

make buildsim

View Trace

To view the trace with gtkwave, first run synthesis and simulation then run:

make view_trace

Additional Commands

  • make show_synth - Show diagram of design
  • make resources - Report resource usage
  • make clean - Delete generated files

See the Makefile for additional targets.

Customizing

  • 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.

License

The license of this repo is Apache-2.0.

About

This is a quickstart template combining synthesis, simulation, viewing of traces built into makefile targets.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published