[libre-riscv-dev] spike-sv non-default element widths

Luke Kenneth Casson Leighton lkcl at lkcl.net
Fri Oct 12 18:35:58 BST 2018


ok! i think i got it.  took a while.  after redefining RS1, RS2 and
friends to call functions, these obtain the register entry and return,
normally, an XLEN-sized type.

what i realised is: it is perfectly possible now to return a *class* -
which contains the element width.  and, also, operator-overloads are
also possible, which ensures that the absolute perfect answer can be
returned no matter what the combinations of operations.

took long enough to work it out :)

l.



More information about the libre-riscv-dev mailing list