GithubHelp home page GithubHelp logo

svenka3 / activity---simulation-based-verification- Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shreyshakti/activity---simulation-based-verification-

0.0 1.0 0.0 9 KB

This repository consists of Verilog RTL modules and test-bench, used for simulating the FSM mentioned on ICARUS Verilog and compute Code Coverage on the COVERED tool, based upon the State Machine activity problem statement mentioned in Chapter-Simulation Based Verification in the book "RTL-to-GDS" authored by Dr. Sneh Saurabh sir.

Verilog 56.43% SystemVerilog 31.29% Makefile 12.28%

activity---simulation-based-verification-'s Introduction

How to add IVL_UVM to an existing TB

FSM example from:

https://github.com/shreyshakti/Activity---Simulation-based-Verification-

Used as a simple example to show how IVL_UVM can add value to simple testbenches. It is not intended as demo of full UVM capabilities.

To add IVL_UVM to an existing TB, follow below steps:

  1. Original TB is saved in orig_tb.v for reference, it is a simple linear TB, kindly review
  2. Import ivl_uvm_pkg --> line: 5 in fsm_ghub_tb.sv
  3. Added a simple monutor code using UVM Messaging feature, lines: 51-53 in fsm_ghub_tb.sv

To run:

Use the Makefile provided:

  • make orig --> runs Original TB
  • make --> runs with IVL_UVM TB

Details on IVL_UVM Integration

  • First step is to enable SV parsing in Icarus, use ** -g2012 ** flag
  • Add IVL_UVM files to your command line, done in a config file * ivl_uvm_cmds.cfg *

Sample commands:

  • iverilog -g2012 -f ivl_uvm_cmds.cfg -o ivl_uvm.vvp
  • vvp ivl_uvm.vvp

Sample output:

VCD info: dumpfile fsm_tb.vcd opened for output.
UVM_INFO fsm_ghub_tb.sv(52) @ 0.000 ns [IVL_GO2UVM] reset: 1 A: 0
UVM_INFO /Users/srini/proj/IVL_UVM/Git_ivl_uvm/ivl_uvm/ivl_uvm_src/ivl_uvm_clp.svh(510) @ 1.000 ns [IVL_GO2UVM] CLP
UVM_INFO @ 1.000 ns [TIMOUTSET] '+UVM_TIMEOUT=1' Global Timeout: 1000000.000 ns
UVM_INFO fsm_ghub_tb.sv(52) @ 20.000 ns [IVL_GO2UVM] reset: 0 A: 0
UVM_INFO fsm_ghub_tb.sv(52) @ 40.000 ns [IVL_GO2UVM] reset: 0 A: 1
UVM_INFO fsm_ghub_tb.sv(52) @ 140.000 ns [IVL_GO2UVM] reset: 0 A: 0
UVM_INFO fsm_ghub_tb.sv(52) @ 240.000 ns [IVL_GO2UVM] reset: 0 A: 1
UVM_INFO fsm_ghub_tb.sv(52) @ 260.000 ns [IVL_GO2UVM] reset: 1 A: 1
fsm_ghub_tb.sv:48: $finish called at 280 (1ns)

--- UVM Report Summary ---

** Report counts by severity
UVM_INFO : 9
UVM_WARNING : 0
UVM_ERROR : 0
UVM_FATAL : 0

*** Congratulations! Test PASSED with NO UVM_ERRORs ***

UVM_INFO /Users/srini/proj/IVL_UVM/Git_ivl_uvm/ivl_uvm/ivl_uvm_src/ivl_uvm_msg.svh(74) @ 280.000 ns [IVL_GO2UVM] Thanks for using IVL_UVM Package

activity---simulation-based-verification-'s People

Contributors

shreyshakti avatar svenka3 avatar

Watchers

 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.