PULP Community
Creating new instructions in RISC-V - Printable Version

+- PULP Community (https://pulp-platform.org/community)
+-- Forum: PULP's Community forum (https://pulp-platform.org/community/forumdisplay.php?fid=1)
+--- Forum: PULP General questions (https://pulp-platform.org/community/forumdisplay.php?fid=2)
+--- Thread: Creating new instructions in RISC-V (/showthread.php?tid=293)



Creating new instructions in RISC-V - teotro - 07-06-2022

Hi everyone,

I am new in RISC-V and I am using Pulpissimo.
Is there somewhere a tutorial of how to create new custom instructions in RISC-V?
For instance, a "mod" instruction.
What are the steps to do it?

Thank you in advance,
Theodoros


RE: Creating new instructions in RISC-V - bluewww - 07-08-2022

If you are asking for a full tutorial how to do this then no we don't have such a thing.

I would look into the cv32e40p core and look into the id stage (where instructions are decoded) and ex stage (where instructions are executed) to get started. Maybe try to trace/follow the signals belonging to an already implemented instruction for example "add".