/icarus-verilog

Quick starter project for using Icarus Verilog + Cocotb

Primary LanguagePython

Icarus Verilog

What is this?

This project is starter project that accelerates and simplifies the process of creating Verilog projects.

How to use?

Prequisites

Installation

  1. Clone the repository using the git clone command.
git clone https://github.com/KhalidNusserat/icarus-verilog.git
  1. Open Visual Studio Code in the current directory.
code .
  1. Install the "Dev Containers" extension.
  2. Open the command palette by pressing Ctrl + Shift + P and type "Dev Containers: Reopen in Container".

How to run?

Note that projects are stored under src/ in the following structure:

src/

---- project_a/
-------- Makefile
-------- verilog_file.sv
-------- test_file.py

---- project_b/
-------- Makefile
-------- verilog_file.sv
-------- test_file.py

And in order to build and run a project, you can use the following command (Make sure to only run the command from the root directory).

make project_name

For example, to run the example project, you use this command:

make example