areebbeigh / rv32i-assembler

An assembler for a small subset of rv32i instructions in Python.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rv32i-assembler

Work in progress

An assembler for a small subset of rv32i instructions in Python. Uses Python Lex-Yacc for grammar definition and parsing.

Originally implemented as an assignment in the Computer Organization and Architecture course at NIT Srinagar.

  • Number of instructions implemented: 38. (work in progress)
pip install -r requirements.txt
python3 assembler.py <input> -o <output>

Pending

  • CLI -> partially done.
  • Error reporting
  • Load/Store instructions -> implemented.
  • JALR
  • SLT/SLTU/SLTI/SLTIU -> implemented.
  • Comments

Resources

About

An assembler for a small subset of rv32i instructions in Python.

License:Apache License 2.0


Languages

Language:Python 98.0%Language:Assembly 2.0%