The following warnings occurred:
Warning [2] Undefined variable $usersbrowsing - Line: 92 - File: showthread.php(1617) : eval()'d code PHP 8.1.16 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1617) : eval()'d code 92 errorHandler->error_callback
/showthread.php 1617 eval

Creating new instructions in RISC-V
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,
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".

Forum Jump: