14 lines
253 B
Python
14 lines
253 B
Python
from Insn import *
|
|
|
|
"""
|
|
RV32I I-Type Instruction
|
|
"""
|
|
|
|
class InsnRV32IIType(Insn):
|
|
def elaborate(self, platform):
|
|
m = super().elaborate(platform)
|
|
|
|
m.d.comb += self.insn_imm.eq(Value.as_signed(self.rvfi_insn[20:32]))
|
|
|
|
return m
|