chipsalliance / VeeR-ISS

Apache License 2.0
114 stars 33 forks source link

Custom Instructions #37

Open Ankelih opened 9 months ago

Ankelih commented 9 months ago

Hello,

Is there a feature to add custom instructions like adding custom CSR?

yesilzeytin commented 9 months ago

As far as I can tell from the source codes, modifying

https://github.com/chipsalliance/VeeR-ISS/blob/e6b4fb17bd9bf15a9df225bea804be663648903a/InstId.hpp#L408 https://github.com/chipsalliance/VeeR-ISS/blob/e6b4fb17bd9bf15a9df225bea804be663648903a/Hart.hpp#L1335 https://github.com/chipsalliance/VeeR-ISS/blob/e6b4fb17bd9bf15a9df225bea804be663648903a/Hart.cpp#L6324 https://github.com/chipsalliance/VeeR-ISS/blob/e6b4fb17bd9bf15a9df225bea804be663648903a/InstEntry.cpp#L2201

These four source files' relative sections under "// Custom" comments could let us achieve this. But since I haven't used it yet and only plan to do so, an insight regarding it or a possible feature implementation such as Spike's would be nice.