Giter VIP home page Giter VIP logo

python4rtlverification's Introduction

Python for UVM Verification Examples

I've tested all the code examples in Python for UVM Verification using either Jupyter notebooks or cocotb directories. The notebook and directory names match the chapter headings.

Installing cocotb

It is best to install cocotb before installing pyuvm, especially on Windows.

You can find cocotb installation instructions on the cocotb.org website.

Jupyter Notebooks

I used Jupyter notebooks for the Python-only examples. The easiest way to use these notebooks is to install Jupyter using pip:

% pip install jupyter
% cd <this repository directory>
% jupyter notebook

This command will launch your web browser in the directory and present you with a directory list. Open any .ipynb file to see the code examples. You can learn more about Jupyter on jupyter.org or simply Google the name to see many resources.

cocotb directories

To run the examples in directories, you need the following: Python 3.7 or later—I recommend the free Anaconda Individual Edition A Verilog simulator—cocotb supports all the popular simulators, including the free Verilog simulator, Icarus. The tox script tests the examples Verilog. pyuvm and cocotb—If you use pip to install pyuvm, you'll get cocotb automatically. Install pyuvm using pip:

% pip install pyuvm

You can test all the examples by running tox in the example repository:

% cd python4uvm_examples
% pip install pytest tox
% tox

Tox should test all the cocotb examples and return a congratulatory message. Run the cocotb examples by CDing into the example directory and using make:

% cd python4uvm_examples
% cd 	20_coroutines
% make

Contributing to the examples

This repository's code must match the code in the printed book Python for UVM Verification. So it's challenging to change the code, but I'm happy to accept pull requests that fix minor typos.

Staying up to date

Be sure to pull from this repository periodically to stay up to date with the latest repairs and changes to cocotb

python4rtlverification's People

Contributors

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