takes a list of instruction names, opcodes, and arguments and turns it into a 32-column spreadsheet, with each column representing a bit
Project description
This package was created to create simple spreadsheets of opcodes as part of the RISC V Architecture.
Using this package is relatively straightforward:
- Open opcode-formats in a text editor
- Place any args you want to add under ##ARGLUTS. Bear in mind they must follow the format of a dictionary in Python (arglut['argname'] = (n, n)). The bit range must be expressed as a tuple. 2a. If an arglut appears is formatted differently than its name implies, you must also add to the arglut_format dictionary. The key is the name of the arg while the value is the item this code will actually parse. A "|" represents a break, while ":" colon separates a range. So for example 'imm[20|10:1|11|19:12]' takes up bits 20, 10 to 1, 11, and 19 to 12.
- Make sure there is an empty line separating the argluts/arglut_formats and ##OPCODES. The code will not function otherwise.
- Place any opcodes you want to add under ##OPCODES, separated by newlines (enter/return). The format is hard to describe, but just follow what's already written
- Run main, if all goes well, an excel spreadsheet will appear in the parse folder. You can then open that up and format it to whatever you want.
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
parse_opcodes-2.0.1.tar.gz
(5.5 kB
view details)
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 parse_opcodes-2.0.1.tar.gz.
File metadata
- Download URL: parse_opcodes-2.0.1.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac378002fb77a067686d4a474ffe34ba1e96f080e4248bcd9be83d09ae37a346
|
|
| MD5 |
b031f03f1656f4ecd2b7868937a643f6
|
|
| BLAKE2b-256 |
565e7dc3c5518d7466e0c39fb345d7cf3ffe7c2bab0d06440bde94c2d38f5152
|
File details
Details for the file parse_opcodes-2.0.1-py3-none-any.whl.
File metadata
- Download URL: parse_opcodes-2.0.1-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c30da52870e87064ded95a3191572c18be914d76ad4c2921083f6ad44e68d283
|
|
| MD5 |
e057e578d866bc69a5c5a3b433c616cb
|
|
| BLAKE2b-256 |
b978e0921123f2d9ea5dfdbe0d9514de4a47d1b9e3a56bcfc8f1bc5090d715bd
|