Implement the RISC-V 32-bit Microprocessor on The Powder Toy.
- Copy the tptriscv folder in the src directory to the TPT data directory.
- Copy the examples folder to the TPT data directory.
- Run TPT, open the console, and enter the following command.
dofile("tptriscv/main.lua")
- Select the DBG material, install one of the blank spaces on the canvas, and unstop the simulation to import the example file.
- The inspection will be done automatically. Please wait a moment and we will inform you of the results. (The real-time dis-assembly will be activated while it is running, please wait as there is no abnormality.)
- Once the operation is complete, you must save the changed memory information. Please enter a file name.
- Compare the printed and original files with each other to see what has changed.
Yes, it is always possible, but please be careful because the source code is very unstable because it is in the early stages of development.
It includes what appears to be a normal operation of the processor, the implementation of a compressed set of instructions, the implementation of some multiplication and division of instructions, debugging, and real-time display assembly output.
Yes, of course. If it's an environment where LuaJIT and BitOp libraries are supported, it can be driven. But I would like to let you know that it doesn't guarantee complete compatibility because it's being developed around TPT right now.