Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pythondata-cpu-lm32-0.0.post117.tar.gz (95.3 kB view details)

Uploaded Source

Built Distributions

pythondata_cpu_lm32-0.0.post117-py3.8.egg (136.4 kB view details)

Uploaded Source

pythondata_cpu_lm32-0.0.post117-py3.7.egg (136.4 kB view details)

Uploaded Source

pythondata_cpu_lm32-0.0.post117-py3.6.egg (136.4 kB view details)

Uploaded Source

pythondata_cpu_lm32-0.0.post117-py3.5.egg (136.5 kB view details)

Uploaded Source

pythondata_cpu_lm32-0.0.post117-py3-none-any.whl (139.6 kB view details)

Uploaded Python 3

File details

Details for the file pythondata-cpu-lm32-0.0.post117.tar.gz.

File metadata

  • Download URL: pythondata-cpu-lm32-0.0.post117.tar.gz
  • Upload date:
  • Size: 95.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.7

File hashes

Hashes for pythondata-cpu-lm32-0.0.post117.tar.gz
Algorithm Hash digest
SHA256 28c06ef20c1fdb6ed80774304934ef66440cfab1c0d5e6c20939746874d410de
MD5 3bfaca4894e797f8bd2f88388fc3f321
BLAKE2b-256 9615c644c3f66c4c7ee4daef1af0eba9c912db75480457ee0c25b574b1b8a2dc

See more details on using hashes here.

File details

Details for the file pythondata_cpu_lm32-0.0.post117-py3.8.egg.

File metadata

  • Download URL: pythondata_cpu_lm32-0.0.post117-py3.8.egg
  • Upload date:
  • Size: 136.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.0

File hashes

Hashes for pythondata_cpu_lm32-0.0.post117-py3.8.egg
Algorithm Hash digest
SHA256 a09aede2a6df70699a363830e9760680b4f93fb5c151f71726cd87d1eb9d1fb4
MD5 2476a3702e0bd7c0c69743b63e82f7d4
BLAKE2b-256 27eb7606225dfdd98df1a4c2227ba147c6d5cd18d1015839ce52614f3ed46010

See more details on using hashes here.

File details

Details for the file pythondata_cpu_lm32-0.0.post117-py3.7.egg.

File metadata

  • Download URL: pythondata_cpu_lm32-0.0.post117-py3.7.egg
  • Upload date:
  • Size: 136.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.1

File hashes

Hashes for pythondata_cpu_lm32-0.0.post117-py3.7.egg
Algorithm Hash digest
SHA256 f18a980f4fb4dc1d959f98995e855e6d5037848ab6df195f93be8b83b8e9c798
MD5 251c87f09870069d7e4986afcf8f47c7
BLAKE2b-256 3275c038559a29f0cecc26cc41653781e137893f7babd37e13b58a17ca8f72b7

See more details on using hashes here.

File details

Details for the file pythondata_cpu_lm32-0.0.post117-py3.6.egg.

File metadata

  • Download URL: pythondata_cpu_lm32-0.0.post117-py3.6.egg
  • Upload date:
  • Size: 136.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.7

File hashes

Hashes for pythondata_cpu_lm32-0.0.post117-py3.6.egg
Algorithm Hash digest
SHA256 92c62cbbd6ca8cae16a17587d9551880f6efacef6a68302f40c33ded15808967
MD5 f88307d84ca0aa874c90d0169ba364a0
BLAKE2b-256 93b63a3543b4b7f1d7af839175fe414f51a55c8f583a4c2efaa47994f6341faf

See more details on using hashes here.

File details

Details for the file pythondata_cpu_lm32-0.0.post117-py3.5.egg.

File metadata

  • Download URL: pythondata_cpu_lm32-0.0.post117-py3.5.egg
  • Upload date:
  • Size: 136.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.5.6

File hashes

Hashes for pythondata_cpu_lm32-0.0.post117-py3.5.egg
Algorithm Hash digest
SHA256 73cd92d6916cad24b168cd73ac57e37d2317f9c973bcbf6f17e6736b804b99fc
MD5 bad6ccba944cd20ea3ff0a8cb86d8a74
BLAKE2b-256 27dfd24f397df135c9d0cbde2cbb8e6175a40dd0aa73a2f85b76d3bd4bf6f7c2

See more details on using hashes here.

File details

Details for the file pythondata_cpu_lm32-0.0.post117-py3-none-any.whl.

File metadata

  • Download URL: pythondata_cpu_lm32-0.0.post117-py3-none-any.whl
  • Upload date:
  • Size: 139.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.7

File hashes

Hashes for pythondata_cpu_lm32-0.0.post117-py3-none-any.whl
Algorithm Hash digest
SHA256 dce1c28af1264d3f9038b6361630308f463d75505d7abbc528e0524063d9d5a1
MD5 a6dd6c6874028281e291c9cbab519b6c
BLAKE2b-256 768287c410f1297f6ed68813a0847d0d733616fa24e74c2d3d8f456eb17c9a05

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page