regfile_generics
Installation
From PyPI
python3 -m pip install --upgrade regfile_generics
From source
git clone https://github.com/icglue/regfile_generics
cd regfile_generics
python3 -m pip install .
Usage
Setup Regfile and Regfile Device for Access
See tests/fixtures.py how to create a regfile by deriving from the Regfile class. Implement read/write functions and pass them (or overwrite while deriving) to an adequate RegfileDevice class.
Accessing Registers
# dict like:
regfile["reg1_high"] = {"cfg": 0x0AA, "cfg_trigger": 0x0, "cfg_trigger_mode": 0x0}
# or single field (might issue read-modify-write)
regfile["reg1_high"]["cfg"] = 0xB
# uvm like:
regfile.reg2_r.config_f.set(2)
regfile.reg2_r.update()
# write_update
regfile["reg_addr40_r"].write_update(start=1, enable_feature0=0, enable_feature1=0)
# read (can be int or dict or string context)
assert entry["cfg"] == 0x22
print(entry["cfg"])
# read entire entry to an variable, so that no further read request will be issued
Metadata
Release files for regfile-generics 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| regfile_generics-0.1.0.tar.gz | 14.5 kB | Without provenance | Details for regfile_generics-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| regfile_generics-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for regfile_generics-0.1.0-py3-none-any.whl |
Total release size: 27.2 kB
Release files / regfile_generics-0.1.0.tar.gz
| Download URL | regfile_generics-0.1.0.tar.gz |
|---|---|
| Size | 14.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
420158ed715511d8cf23dad3f91fde5fdff19c9bb6f61f403886c89dec9fd2a2
|
|
BLAKE2b-256 checksum How to use checksums |
928261246afebfbad4da08532f3ca61d923bb8b31ff6d0e62b6911d031f3e80c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / regfile_generics-0.1.0-py3-none-any.whl
| Download URL | regfile_generics-0.1.0-py3-none-any.whl |
|---|---|
| Size | 12.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d38b3a4886d0020d678c2d9bcbf1205e6a202ff82b7a44897bd0a1a2c0a5ed51
|
|
BLAKE2b-256 checksum How to use checksums |
ea169e35f4549b46f800099c0597001838d6fedf0bb1624e50e9db82e6d16166
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Security for regfile-generics 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.