scarv / xcrypto

XCrypto: a cryptographic ISE for RISC-V
MIT License
91 stars 10 forks source link

Instruction Modification: xc.prot.i xc.psll.i xc.psrl.i shift/rotate amount #57

Closed ben-marshall closed 5 years ago

ben-marshall commented 5 years ago

Find a way to allow 5 bits for the shift and rotate amounts in the following instructions:

Could possibly be done by using the pack-width encoding ca||cb||cc = 1?1 and letting cb be the [M|L]SB of the new 5-bit shamt / ramnt field. Any pack width where ca=cc=1 then implies operations on the entire register word.