Python-based interface for Verilator models
Project description
This package provides wrapper to generate and use verilator hardware models.
Installing Non-Development Version
If you want to just install the pyverilator package, you should be able to using the following command:
$ pip3 install https://github.com/csail-csg/pyverilator
Usage
sim = PyVerilator.build('my_verilator_file.v')
sim.io.a = 2
sim.io.b = 3
print('c = ' + sim.io.c)
Installing for Development
To install this package for development, you should use a virtual environment, and install the package in editable mode using pip.
To create a virtual environment for this project, run the command below.
$ python3 -m venv path/to/new-venv-folder
To start using your new virtual environment, run the command below. This needs to be run each time you open a new terminal.
$ source path/to/new-venv-folder/bin/activate
At this point you are now using your new virtual environment. Python packages you install in this environment will not be available outside your virtual environment. If you want to stop using the virtual environment, just run deactivate.
To install the pyverilator package in editable mode, inside the pyverilator top git repository folder, run the command below.
$ pip3 install -e .
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for PyVerilator-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d40fb989e5f310d4275bb8ce0f1f7aed68cb22017bec20f03e2be3c6a4efba9b |
|
MD5 | 83c4a75a5f88cc3d075ef9a29e90a25f |
|
BLAKE2b-256 | c3128478afd00250b3811fcee28dabd68b7ab5eacd23806b7c685eda0d2aad7f |
Hashes for PyVerilator-0.0.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 686b9289660fa6a81963b55a7423e1c74e1d0ca33352a9bca6fd7323d6b9acd6 |
|
MD5 | e296fba80375966008460aa14b125a95 |
|
BLAKE2b-256 | a67c6cd9ba8036897283f637d08a860cf38132ccae96b0582be4e79a75eb7839 |