Python module containing verilog files for LatticeMico32 cpu.
Project description
pythondata-cpu-lm32
Non-Python files needed for the cpu lm32 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_lm32
. The
pythondata_cpu_lm32.data_location
value can be used to find the files on the file
system.
Example of getting the data file directly;
import pythondata_cpu_lm32
my_data_file = "abc.txt"
with open(os.path.join(pythondata_cpu_lm32.data_location, my_data_file)) as f:
print(f.read())
Example of getting the data file using litex.data.find
API;
from pythondata_cpu_lm32 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/m-labs/lm32.git
and are imported using git subtrees
to the directory
pythondata_cpu_lm32/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-lm32.git
cd pythondata-cpu-lm32
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-lm32.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-lm32.git
You can install a specific revision of the repository using;
pip install --user git+https://github.com/litex-hub/pythondata-cpu-lm32.git@<tag>
pip install --user git+https://github.com/litex-hub/pythondata-cpu-lm32.git@<branch>
pip install --user git+https://github.com/litex-hub/pythondata-cpu-lm32.git@<hash>
With requirements.txt
file
Add to your Python requirements.txt
file using;
-e git+https://github.com/litex-hub/pythondata-cpu-lm32.git
To use a specific revision of the repository, use the following;
-e https://github.com/litex-hub/pythondata-cpu-lm32.git@<hash>
Installing from PyPi
Using pip
pip install --user pythondata-cpu-lm32
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-lm32-0.0.post145.tar.gz
.
File metadata
- Download URL: pythondata-cpu-lm32-0.0.post145.tar.gz
- Upload date:
- Size: 96.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c67582fb4ca060ad657558b1dbd29be277885a08f3bbebbba22dfc8263c3808c |
|
MD5 | fc511c020a45bddc20ad3d0e575e765c |
|
BLAKE2b-256 | 4437a5fa035c107756ff059969262f1fa2ae4e36d80eef1f5a453a016e0b674f |
File details
Details for the file pythondata_cpu_lm32-0.0.post145-py3.9.egg
.
File metadata
- Download URL: pythondata_cpu_lm32-0.0.post145-py3.9.egg
- Upload date:
- Size: 136.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d407146ce56bdfd64accf48c217b3b8dad9a3b5659f1ae9434533d64c371f2ff |
|
MD5 | 656f6ff6804e8af9e4b5fe0ee73e8fd8 |
|
BLAKE2b-256 | 62b68e87dda9005c064b5c573148262086c5441a849b9e6b67b66835ff13b8d3 |
File details
Details for the file pythondata_cpu_lm32-0.0.post145-py3.8.egg
.
File metadata
- Download URL: pythondata_cpu_lm32-0.0.post145-py3.8.egg
- Upload date:
- Size: 136.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36e180c7195d43834d3d0b17d3186426efcfd1b4287ce1fa19d84705a4afd3ba |
|
MD5 | 599148266b9f470c334386a94f9f2866 |
|
BLAKE2b-256 | 136b3c224a98110146f58ea13e486834c5c7710377e294078287d27705cbe75b |
File details
Details for the file pythondata_cpu_lm32-0.0.post145-py3.7.egg
.
File metadata
- Download URL: pythondata_cpu_lm32-0.0.post145-py3.7.egg
- Upload date:
- Size: 136.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63e133d45ab0eaeb681a5142698dbf2e35abfe26e7627461ea9ca00c8e8965f0 |
|
MD5 | f99c15f46855ccd6f9a7b9dc263fdaed |
|
BLAKE2b-256 | 6c5e3c0b78a8128d365a4cb84c6a5a3c9be93e2bd014283c0f647de7b3396caa |
File details
Details for the file pythondata_cpu_lm32-0.0.post145-py3.6.egg
.
File metadata
- Download URL: pythondata_cpu_lm32-0.0.post145-py3.6.egg
- Upload date:
- Size: 136.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 502c7f6e3f0dc77941223370a78206cd83eb3e57b644261d9d7a8f4ec6fc5fcb |
|
MD5 | d5158ebf37997b65ced1fb6b7aaee5b9 |
|
BLAKE2b-256 | 41c51c41f05f8bd1903c774eb9fd34f55972c57faa3eb64e484528df1d83b6a9 |
File details
Details for the file pythondata_cpu_lm32-0.0.post145-py3-none-any.whl
.
File metadata
- Download URL: pythondata_cpu_lm32-0.0.post145-py3-none-any.whl
- Upload date:
- Size: 144.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b490bb4c5c2b7715ad1804cfa7134784894a245b82cfb1dbfcbe35c094d089e |
|
MD5 | 2e7610c97bdd15e9f2da7b9b878442ca |
|
BLAKE2b-256 | 461ed7457d129499da60252cc9d12b16eae3449c3cc8e892d94d98f48e396cc9 |
File details
Details for the file pythondata_cpu_lm32-0.0.post145-py2.7.egg
.
File metadata
- Download URL: pythondata_cpu_lm32-0.0.post145-py2.7.egg
- Upload date:
- Size: 136.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.7.0 requests/2.25.1 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.56.0 PyPy/7.3.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf5a22ae6523af6dd325c6fdb68eb40b847a3e1cde13153407fa3942c220ae6f |
|
MD5 | 93082e803bd3fd09e56b4f1b3a0ae221 |
|
BLAKE2b-256 | 8a898b5bf5bb4f4dd1040e6b896be0779768295daf2aff5b69ab97b6619039d9 |
File details
Details for the file pythondata_cpu_lm32-0.0.post145-py2-none-any.whl
.
File metadata
- Download URL: pythondata_cpu_lm32-0.0.post145-py2-none-any.whl
- Upload date:
- Size: 144.0 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.7.0 requests/2.25.1 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.56.0 PyPy/7.3.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ba07f0ffee7b1fdcc46f717ef68fabfaeb61361e892c1411eecbf3efe4397c4 |
|
MD5 | 18c1d171a0b48d51464598e38b06178d |
|
BLAKE2b-256 | 121b152a8dac14922e614051d904fcee295f6a69c79be9cc71c323271da9f9bd |