parser for the OPF PowerISA 3.1C pdf
Find a file
Jacob Lifshay da339ce00a
All checks were successful
/ test (push) Successful in 2m47s
test in forgejo ci
2025-12-31 21:42:22 -08:00
.forgejo/workflows test in forgejo ci 2025-12-31 21:42:22 -08:00
parse_powerisa_pdf add copyright headers and check script 2025-12-31 20:43:18 -08:00
scripts add copyright headers and check script 2025-12-31 20:43:18 -08:00
.gitignore test in forgejo ci 2025-12-31 21:42:22 -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 add copyright headers and check script 2025-12-31 20:43:18 -08:00
README.md add copyright headers and check script 2025-12-31 20:43:18 -08:00

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

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.