m.submodules.branch = branch = BranchBasePipe(pspec)
comb += branch.p.i_data.ctx.op.eq_from_execute1(pdecode2.do)
- comb += branch.p.valid_i.eq(1)
- comb += branch.n.ready_i.eq(1)
+ comb += branch.p.i_valid.eq(1)
+ comb += branch.n.i_ready.eq(1)
comb += pdecode2.dec.raw_opcode_in.eq(instruction)
sim = Simulator(m)
alu_temp = Signal(16)
write_req_valid = Signal(reset=0)
with m.If(~Past(go_die) & Past(busy)):
- with m.If(Rose(dut.alu.n.valid_o)):
+ with m.If(Rose(dut.alu.n.o_valid)):
sync += alu_temp.eq(dut.alu.o)
sync += write_req_valid.eq(1)
# write_req_valid should only be high once the alu finishes
- with m.If(~write_req_valid & ~dut.alu.n.valid_o):
+ with m.If(~write_req_valid & ~dut.alu.n.o_valid):
comb += Assert(wr_rel == 0)
# Property 6: Write request release is held up if shadow_n
'oper_i_None__insn_type', 'i1[15:0]',
'i_valid', 'o_ready']),
('next port', 'out', [
- 'alu_o[15:0]', 'valid_o', 'ready_i'])])]
+ 'alu_o[15:0]', 'o_valid', 'i_ready'])])]
write_gtkw('test_fu_formal_bmc.gtkw',
os.path.dirname(__file__) +
fsm = core.fus.fus["mmu0"].alu
- vld = yield fsm.n.valid_o
+ vld = yield fsm.n.o_valid
while not vld:
yield
if debughang: print("not valid -- hang")
- vld = yield fsm.n.valid_o
+ vld = yield fsm.n.o_valid
if debughang==2: vld=1
yield
index = pc//4
print("pc after %08x" % (pc))
- vld = yield fsm.n.valid_o #fsm
+ vld = yield fsm.n.o_valid #fsm
while not vld:
yield
if debughang:
print("not valid -- hang")
return
- vld = yield fsm.n.valid_o
+ vld = yield fsm.n.o_valid
if debughang==2: vld=1
yield
#FIXME connect fsm inputs
comb += fsm.p.i_data.ctx.op.eq_from_execute1(pdecode2.do)
- comb += fsm.p.valid_i.eq(1)
- comb += fsm.n.ready_i.eq(1)
+ comb += fsm.p.i_valid.eq(1)
+ comb += fsm.n.i_ready.eq(1)
comb += pdecode2.dec.raw_opcode_in.eq(instruction)
sim = Simulator(m)
index = pc//4
print("pc after %08x" % (pc))
- vld = yield alu.n.valid_o
+ vld = yield alu.n.o_valid
while not vld:
yield
- vld = yield alu.n.valid_o
+ vld = yield alu.n.o_valid
yield
yield from self.check_alu_outputs(alu, pdecode2, sim, code)
m.submodules.alu = alu = SPRBasePipe(pspec)
comb += alu.p.i_data.ctx.op.eq_from_execute1(pdecode2.do)
- comb += alu.p.valid_i.eq(1)
- comb += alu.n.ready_i.eq(1)
+ comb += alu.p.i_valid.eq(1)
+ comb += alu.n.i_ready.eq(1)
comb += pdecode2.dec.raw_opcode_in.eq(instruction)
sim = Simulator(m)
m.submodules.alu = alu = TrapBasePipe(pspec)
comb += alu.p.i_data.ctx.op.eq_from_execute1(pdecode2.do)
- comb += alu.p.valid_i.eq(1)
- comb += alu.n.ready_i.eq(1)
+ comb += alu.p.i_valid.eq(1)
+ comb += alu.n.i_ready.eq(1)
comb += pdecode2.dec.raw_opcode_in.eq(instruction)
sim = Simulator(m)
msr = sim.msr.value
print("msr after %08x" % (msr))
- vld = yield alu.n.valid_o
+ vld = yield alu.n.o_valid
while not vld:
yield
- vld = yield alu.n.valid_o
+ vld = yield alu.n.o_valid
yield
yield from self.check_alu_outputs(alu, pdecode2,