check.storage: allow interrupts during instruction fetches.

dinofly
Jean-François Nguyen 2 years ago
parent a3dd57ac46
commit c90e8fc496

@ -57,10 +57,10 @@ class InsnStorageTestbench(Elaboratable, metaclass=ABCMeta):
prefixed.eq(insn_po == 1), prefixed.eq(insn_po == 1),
] ]


with m.If(dut.pfv.stb & ~dut.pfv.intr): with m.If(dut.pfv.stb):
with m.If(dut.pfv.cia == storage.addr): with m.If(dut.pfv.cia == storage.addr):
m.d.comb += Assert(dut.pfv.insn[32:] == storage.data) m.d.comb += Assert(dut.pfv.insn[32:] == storage.data)
with m.If(prefixed & (dut.pfv.cia + 4 == storage.addr)): with m.If(prefixed & (dut.pfv.cia + 4 == storage.addr) & ~dut.pfv.intr):
m.d.comb += Assert(dut.pfv.insn[:32] == storage.data) m.d.comb += Assert(dut.pfv.insn[:32] == storage.data)


return m return m

Loading…
Cancel
Save