Skip to main content

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:

  1. Open opcode-formats in a text editor
  2. 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.
  3. Make sure there is an empty line separating the argluts/arglut_formats and ##OPCODES. The code will not function otherwise.
  4. 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
  5. 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-1.0.3.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

parse_opcodes-1.0.3-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file parse-opcodes-1.0.3.tar.gz.

File metadata

  • Download URL: parse-opcodes-1.0.3.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

Hashes for parse-opcodes-1.0.3.tar.gz
Algorithm Hash digest
SHA256 489663fb9634d0a726171b131f4219853936944f9655a9ef39173955a62d8ef0
MD5 602275157990eca60d5db1fb4657ae6b
BLAKE2b-256 a4cf9f6c227b6bb075a2be155501c9c69c2b1045b48b46664c4bbcdb36544ace

See more details on using hashes here.

File details

Details for the file parse_opcodes-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: parse_opcodes-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.8 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

Hashes for parse_opcodes-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3a7a0be90747d4f9d2c5acff3f013c98c8ad81835d8503919b5725f9d650a06a
MD5 926f22e38bcf465e9ed0ace1de7ae81f
BLAKE2b-256 1366af6ff802e092d324a39ade971a6b979c263127834c2b6f52f16cde989fd7

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