Giter Club home page Giter Club logo

iverilog-tutorial's Introduction

Icarus Verilog & GTKWave

Installation

The two pieces of software we need are Icarus Verilog and GTKwave both of which are open source and publicly available.

sudo apt-get install iverilog
sudo apt-get install gtkwave

Compilation

iverilog -o simple.vvp simple.v simple_tb.v

In this specific example, we are testing a Verilog module called simple.v. The test cases are contained in the file simple_tb.v, it can be named arbitrarily; although it is called modulename_tb.v by convention. We specify our output file to be simple.vvp

Running the Simulation

vvp simple.vvp

You should have something output in the form of

VCD info: dumpfile simple.vcd opened for output.
A is 1010, B is 0011.
A is 1100, B is 0101.

Viewing in Graph Form

gtkwave simple.vcd

Once GTKWave has launched

  1. locate the SST tab top-left of the screen and expand all
  2. Locate the desired test case and click
  3. Bottom-left of the screen should display a chart with Type and Signal. Drag whichever one you'd like to analyse over to the Signals tab

gtkwave annotated screenshot

iverilog-tutorial's People

Contributors

albertxie avatar andrewferguson avatar qasim avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.