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.post123.tar.gz
.
File metadata
- Download URL: pythondata-cpu-lm32-0.0.post123.tar.gz
- Upload date:
- Size: 95.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00a1ccc2aadf258e28707b39c1658dd88785cbb9116d3e9e649549d66f003030 |
|
MD5 | eea5d55634a4f40df0fd428c84c925d3 |
|
BLAKE2b-256 | a70bed9cf4c3f2535801daae9121648d220c9192b65d4e9b076f6efd2077247a |
File details
Details for the file pythondata_cpu_lm32-0.0.post123-py3.10.egg
.
File metadata
- Download URL: pythondata_cpu_lm32-0.0.post123-py3.10.egg
- Upload date:
- Size: 136.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.10.0a2+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3cac1bda34375c43cab19f01498a810a4096c4fb915a5b7ac6290c77dca5029 |
|
MD5 | d49f86bcb6ac67be8ebe1f599fa0f735 |
|
BLAKE2b-256 | 09e98372a51fd5d5e21cfb20cc3f1b4e7ed9834ddd800dd1ba848cb4734cb39d |
File details
Details for the file pythondata_cpu_lm32-0.0.post123-py3.8.egg
.
File metadata
- Download URL: pythondata_cpu_lm32-0.0.post123-py3.8.egg
- Upload date:
- Size: 136.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9270b01dc6797217d3b650f4762e94f465f60ab726aa0c7ae8bd5c529ef3457 |
|
MD5 | 7bd48060b48a311af66ab5410dce8976 |
|
BLAKE2b-256 | c3d9bef003632de0dd20458317b0652587cd7e63323c83597009821991c51d04 |
File details
Details for the file pythondata_cpu_lm32-0.0.post123-py3.7.egg
.
File metadata
- Download URL: pythondata_cpu_lm32-0.0.post123-py3.7.egg
- Upload date:
- Size: 136.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f69eae5d6e9106dcdc93801df128d851de3f901c903ea51d998df7771db9b06 |
|
MD5 | 92c81cac28d7bb14733d7482dcd4cae7 |
|
BLAKE2b-256 | 2f2c9ce0b2302a7ec4225db9fb685901c4627af53212e89c7a2b3494808d4dfc |
File details
Details for the file pythondata_cpu_lm32-0.0.post123-py3.6.egg
.
File metadata
- Download URL: pythondata_cpu_lm32-0.0.post123-py3.6.egg
- Upload date:
- Size: 136.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b0430465d692c9306f5aa2bc9d6fbff8b9612e7a9fea0ab769a0605b42b9212 |
|
MD5 | 18d60b7f66e13dcc414b6324dd429e8c |
|
BLAKE2b-256 | 329714c9924f31445f157cb31b71e62460050e161580ca01242bdf7488534080 |
File details
Details for the file pythondata_cpu_lm32-0.0.post123-py3.5.egg
.
File metadata
- Download URL: pythondata_cpu_lm32-0.0.post123-py3.5.egg
- Upload date:
- Size: 136.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.5.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 395d5bff869930cb7cbd28089bd681989aad52882fb2479453ff17f4688885e1 |
|
MD5 | cf1c6cabaf96cb43ca38b4cb94ed2b85 |
|
BLAKE2b-256 | 11e2fe806e7259883634416670cfa92cf05a0fdedc75451d0295810dcd8adc0a |
File details
Details for the file pythondata_cpu_lm32-0.0.post123-py3-none-any.whl
.
File metadata
- Download URL: pythondata_cpu_lm32-0.0.post123-py3-none-any.whl
- Upload date:
- Size: 144.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb370e86f322df6ecb058ad3563d8a0b13d4ad7f729dcb0ed0b219ba3f0e0424 |
|
MD5 | 818101398a566a90c6d1de4aa6f77b8d |
|
BLAKE2b-256 | 3084e75ebbd808b2a312955f481c4bf65b6e2d47340f6d420a7ac0e09a293c5b |