Skip to main content

Python package to reorder init strings

Project description

Easy LUT Init String manipulation

You only need two things:

  1. A pin mapping given by rapidwright.
  2. An initstring in hex format like "0x0123456789ABCDEF"

Then by using the following you can obtain the init string found in the bitstream

from lutstrings import lut
bitstream_init_string = lut.fullConversion(pin_mapping, init_string)

The pin mapping can be obtained using rapidwright from a LUT cell with

pin_mapping = cell_lut.getPinMappingsL2P()

Currently works for any number input luts

Testing

A self test can be run by running pytest in the lutstrings/lutstrings directory

PYTHONPATH=. pytest

or by simply running the test file

python3 test_init_string.py

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

lutstrings-0.1.4.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lutstrings-0.1.4-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file lutstrings-0.1.4.tar.gz.

File metadata

  • Download URL: lutstrings-0.1.4.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.10

File hashes

Hashes for lutstrings-0.1.4.tar.gz
Algorithm Hash digest
SHA256 f7117b26a32ddde62ce3db643d64b4b545a130476ea618b41307b8874ff50d9c
MD5 b25801037feab7eea4ea6379a06108b4
BLAKE2b-256 63b8c552cbc6f6e9dd4d1d94b018a7f54f313cf3255b6ab71ddb83d0d06389bf

See more details on using hashes here.

File details

Details for the file lutstrings-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: lutstrings-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.10

File hashes

Hashes for lutstrings-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a9ea93a019170b94db355f1fa8d65c1fe3ae363d61591b68cfbda82a92011acf
MD5 a9d2f33278c7769cebcc6087e27d00e3
BLAKE2b-256 85dc1d55f51228208ebf01c86af5e45b3f5c4e1a460152de1fe8c68596f4573f

See more details on using hashes here.

Supported by

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