If the solution is completed in Python, it was probably because I gave up on the other languages.
To compile and run MIPS assembly code:
mips.sh <filename>.asm
To compile and run Verilog files:
iverilog <filename>.v -o <filename>
vvp <filename>
Made with ❤ by: Reuben Ninan