Python module containing system_verilog files for CV32E40P cpu.
Project description
pythondata-cpu-cv32e40p
Non-Python files needed for the cpu cv32e40p packaged into a Python module so they can be used with Python libraries and tools.
This is useful for usage with tools like LiteX.
The data files can be found under the Python module pythondata_cpu_cv32e40p
. The
pythondata_cpu_cv32e40p.data_location
value can be used to find the files on the file
system.
Example of getting the data file directly;
import pythondata_cpu_cv32e40p
my_data_file = "abc.txt"
with open(os.path.join(pythondata_cpu_cv32e40p.data_location, my_data_file)) as f:
print(f.read())
Example of getting the data file using litex.data.find
API;
from pythondata_cpu_cv32e40p import data_file
my_data_file = "abc.txt"
with open(data_file(my_data_file)) as f:
print(f.read())
The data files come from https://github.com/antmicro/cv32e40p
and are imported using git subtrees
to the directory
pythondata_cpu_cv32e40p/system_verilog.
Installing from git repository
Manually
You can install the package manually, however this is not recommended.
git clone https://github.com/litex-hub/pythondata-cpu-cv32e40p.git
cd pythondata-cpu-cv32e40p
sudo python setup.py install
Using pip with git repository
You can use pip to install the data package directly from github using;
pip install --user git+https://github.com/litex-hub/pythondata-cpu-cv32e40p.git
If you want to install for the whole system rather than just the current user,
you need to remove the --user
argument and run as sudo like so;
sudo pip install git+https://github.com/litex-hub/pythondata-cpu-cv32e40p.git
You can install a specific revision of the repository using;
pip install --user git+https://github.com/litex-hub/pythondata-cpu-cv32e40p.git@<tag>
pip install --user git+https://github.com/litex-hub/pythondata-cpu-cv32e40p.git@<branch>
pip install --user git+https://github.com/litex-hub/pythondata-cpu-cv32e40p.git@<hash>
With requirements.txt
file
Add to your Python requirements.txt
file using;
-e git+https://github.com/litex-hub/pythondata-cpu-cv32e40p.git
To use a specific revision of the repository, use the following;
-e https://github.com/litex-hub/pythondata-cpu-cv32e40p.git@<hash>
Installing from PyPi
Using pip
pip install --user pythondata-cpu-cv32e40p
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
File details
Details for the file pythondata-cpu-cv32e40p-0.0.post118.tar.gz
.
File metadata
- Download URL: pythondata-cpu-cv32e40p-0.0.post118.tar.gz
- Upload date:
- Size: 1.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc0dca5797098f737c2b2e7e5f404959f4a2f3970de37b80f5bba87a1ba6ffc0 |
|
MD5 | d20eb022ec1a4cb3229764c24edf6353 |
|
BLAKE2b-256 | 00c38123ec34c61a1e1e7aa69f16cd45936f92404743617e9ef27d33c7c6c5a2 |
File details
Details for the file pythondata_cpu_cv32e40p-0.0.post118-py3-none-any.whl
.
File metadata
- Download URL: pythondata_cpu_cv32e40p-0.0.post118-py3-none-any.whl
- Upload date:
- Size: 1.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d16c7da38bd9c95f5748ab32efbe76db1c51cb1fbc6115a53ce933bd12521255 |
|
MD5 | ba512565e07ec4479aa8799aa776ab0e |
|
BLAKE2b-256 | cc701183de6abe9586a155d521858d24c4aa19d1d71532208b926927a1350453 |
File details
Details for the file pythondata_cpu_cv32e40p-0.0.post118-py2-none-any.whl
.
File metadata
- Download URL: pythondata_cpu_cv32e40p-0.0.post118-py2-none-any.whl
- Upload date:
- Size: 1.5 MB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.7.1 requests/2.26.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/2.7.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 396845bd9a457116752b358606714e520d34b3b45e005c6635dccb5ba3675855 |
|
MD5 | 5eaaa63e2ec236d1098ff1e50fd5d4d2 |
|
BLAKE2b-256 | a906afc8d56da4a737c075fee7e18555912ca3c2c3dbda683e80f82df6af097a |