From: Luke Kenneth Casson Leighton Date: Fri, 27 Apr 2018 04:04:46 +0000 (+0100) Subject: update to have full r-type bits X-Git-Tag: convert-csv-opcode-to-binary~5447 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8f04030ac8fe5438270f1eeb412f941f414b9642;p=libreriscv.git update to have full r-type bits --- diff --git a/isa_conflict_resolution/ioctl.mdwn b/isa_conflict_resolution/ioctl.mdwn index 7acd97bd5..a48e5f63e 100644 --- a/isa_conflict_resolution/ioctl.mdwn +++ b/isa_conflict_resolution/ioctl.mdwn @@ -86,14 +86,17 @@ ioctl number: "Ioctls" (arbitrarily 8 separate R-type opcodes) then perform a redirect based on what the global state for that numbered "ioctl" has been set to: - def ioctl_fn0(*rargs): # star means "take all arguments as a tuple" + def ioctl_fn0(funct7, rs2, rs1, funct3, rd): # all r-type bits if handle_global_state[0] == CUSTOMEXT1UUID: - CUSTOMEXT1_FN0(*rargs) # apply all arguments to function + CUSTEXT1_FN0(funct7, rs2, rs1, funct3, rd) # all r-type bits elif handle_global_state[0] == CUSTOMEXT2UUID: - CUSTOMEXT2_FN0(*rargs) # apply all arguments to function + CUSTEXT2_FN0(funct7, rs2, rs1, funct3, rd, opcode) # all r-type bits else: raise Exception("undefined opcode") +Note that the "ioctl" receives all r-type bits (31:7) with the exception of the +opcode (6:0). + === RB == not quite I think. It is more like