Chriesibaum's BSDL file parser
Project description
Chriesibaum's BSDL File Parser
When I was tinkering around with JTAG and BSDL files, I realized that there was no truly functional BSDL file parser for Python. Perhaps I simply didn't search hard enough. In any case, many packages are no longer up to date or have broken dependencies. Let's get our hands dirty - a few moments later and here is what I needed. If you can use it too, I'm happy to receive any inputs.
Basic usage:
Download and install the package from pypi.org. It's recommended to install the package into a virtual Python environment.
pip install cb_bsdl_parser
There are two tools available to examine BSDL files:
- cb_bsdl_check: To check a BSDL file
- cb_bsdl_info: To get basic data and info from a BSDL file
cb_bsdl_check <bsdl_file> [options]
cb_bsdl_info <bsdl_file> [--cell CELL] [--print-bsr-table]
To use it in your Python project, create a BSDL object and extract the needed data:
bsdl = CBBsdl('bsdl_file.bsdl')
bsdl.get_entity_name()
# get the pin mapping as a dict:
pin_map = bsdl.get_pin_map()
# or just print the boundary scan table:
bsdl.print_bsr_table()
There is a handful of more methods available to extract other data from the BSDL file.
Development
Dev tool installation
The development is mainly being done on an Ubuntu 24.04 box. To set up a dev environment, use Python 3 and install the following packages:
pip install -r requirements.txt
pip install -r requirements_dev.txt
To use antlr4, install it from the deb package sources/store:
sudo apt install antlr4
About Café - The source of coding! ;-)
Do you like this project and would like to support it? I am delighted about every single Café- It keeps me running! Or would you sponsor the project on github sponsors? Thanks for your support!
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cb_bsdl_parser-0.7.2.tar.gz.
File metadata
- Download URL: cb_bsdl_parser-0.7.2.tar.gz
- Upload date:
- Size: 148.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97d45b4df776d937e2353976b210af6fcf740f6c36a7533bd77fee5b80b7588d
|
|
| MD5 |
67229634e783c40c9888c0eefe475c97
|
|
| BLAKE2b-256 |
0cdd6901eefff44ba730a6800022957b333e4a757b2f1883fc5f142045946d3e
|
Provenance
The following attestation bundles were made for cb_bsdl_parser-0.7.2.tar.gz:
Publisher:
publish_to_pypi.yml on chriesibaum/cb_bsdl_parser
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cb_bsdl_parser-0.7.2.tar.gz -
Subject digest:
97d45b4df776d937e2353976b210af6fcf740f6c36a7533bd77fee5b80b7588d - Sigstore transparency entry: 692347612
- Sigstore integration time:
-
Permalink:
chriesibaum/cb_bsdl_parser@bfbd13ff572633a5697a38320ce03eb8659a812c -
Branch / Tag:
refs/tags/v0.7.2 - Owner: https://github.com/chriesibaum
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_to_pypi.yml@bfbd13ff572633a5697a38320ce03eb8659a812c -
Trigger Event:
push
-
Statement type:
File details
Details for the file cb_bsdl_parser-0.7.2-py3-none-any.whl.
File metadata
- Download URL: cb_bsdl_parser-0.7.2-py3-none-any.whl
- Upload date:
- Size: 63.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02410d7cd8e755a384c1fae1629fbea35c6629812afd0d8ccf5803365e140adc
|
|
| MD5 |
53a485b4c0140b00a554e50833dc69d1
|
|
| BLAKE2b-256 |
e58fd0c749ca055e14cbc9bbf331da0862741dddb5c364989515fe1251e42445
|
Provenance
The following attestation bundles were made for cb_bsdl_parser-0.7.2-py3-none-any.whl:
Publisher:
publish_to_pypi.yml on chriesibaum/cb_bsdl_parser
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cb_bsdl_parser-0.7.2-py3-none-any.whl -
Subject digest:
02410d7cd8e755a384c1fae1629fbea35c6629812afd0d8ccf5803365e140adc - Sigstore transparency entry: 692347616
- Sigstore integration time:
-
Permalink:
chriesibaum/cb_bsdl_parser@bfbd13ff572633a5697a38320ce03eb8659a812c -
Branch / Tag:
refs/tags/v0.7.2 - Owner: https://github.com/chriesibaum
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_to_pypi.yml@bfbd13ff572633a5697a38320ce03eb8659a812c -
Trigger Event:
push
-
Statement type: