parser for the OPF PowerISA 3.1C pdf
Find a file
Jacob Lifshay 38a1fb328b
All checks were successful
/ test (push) Successful in 3m54s
add build dependencies to readme
2026-01-06 16:13:36 -08:00
.forgejo/workflows attempt to fix CI 2026-01-06 14:29:06 -08:00
parse_powerisa_pdf wip 2026-01-05 11:27:52 -08:00
scripts port QuadTree to rust 2026-01-01 08:41:26 -08:00
src clean up dead code 2026-01-06 15:29:14 -08:00
.gitignore port QuadTree to rust 2026-01-01 08:41:26 -08:00
Cargo.lock clean up dead code 2026-01-06 15:29:14 -08:00
Cargo.toml clean up dead code 2026-01-06 15:29:14 -08:00
LICENSE.md initial commit 2024-10-24 21:42:22 -07:00
Notices.txt initial commit 2024-10-24 21:42:22 -07:00
pyproject.toml fix python code not getting installed properly 2026-01-06 14:19:54 -08:00
README.md add build dependencies to readme 2026-01-06 16:13:36 -08:00

parser for the OPF PowerISA 3.1C pdf to attempt to extract all instructions' pseudo-code including subscripts/superscripts and other formatting

Using the new Rust code:

Usage:

  • Download the OPF PowerISA 3.1C pdf (yes you need that exact version) from https://openpower.foundation/specifications/isa/

  • Install Rust -- you need version 1.89.0 or later.

    Getting it from https://rustup.rs/ is recommended.

  • Install required build dependencies:

    On Debian 12:

    sudo apt update
    sudo apt install build-essential clang unzip
    
  • Compile and run:

    cargo run -- path/to/downloaded/OPF_PowerISA_v3.1C.pdf > out.log
    
  • This will spit out lots of errors and then successfully create the output file -- powerisa-instructions.xml in the current directory.

Using the old Python code:

Usage:

  • Download the OPF PowerISA 3.1C pdf (yes you need that exact version) from https://openpower.foundation/specifications/isa/

  • Obtain CPython 3.11 (the default python3 in Debian Bookworm)

    On Debian Bookworm you can do:

    sudo apt update
    sudo apt install python3-venv
    
  • Create a venv:

    python3.11 -m venv --upgrade-deps path/to/your/new/.venv
    
  • Activate the venv:

    . path/to/your/new/.venv/bin/activate
    
  • Install this project in the venv:

    pip install -e .
    
  • Run it:

    parse_powerisa_pdf path/to/downloaded/OPF_PowerISA_v3.1C.pdf > out.log
    
  • This will spit out lots of errors and then successfully create the output file -- powerisa-instructions.xml in the current directory.