From: Luke Kenneth Casson Leighton Date: Sat, 24 Nov 2018 01:22:06 +0000 (+0000) Subject: no immediate constant, make 32-bit wide X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7083f7113cf52cf11b344e97c7bd8fb0ae0c29f4;p=rv32.git no immediate constant, make 32-bit wide --- diff --git a/cpu_decoder.py b/cpu_decoder.py index 3239a0d..3f91824 100644 --- a/cpu_decoder.py +++ b/cpu_decoder.py @@ -63,7 +63,7 @@ class CPUDecoder(Module): """ calculate immediate """ ci = {} - no_imm = 0x0 + no_imm = Constant(0x0, 32) # R-type: no immediate for op in [OP.amo, OP.op, OP.op_32, OP.op_fp]: