class TestPipeIlang(unittest.TestCase):
def write_ilang(self, div_pipe_kind):
- pspec = DivPipeSpec(id_wid=2, div_pipe_kind=div_pipe_kind)
+ class PPspec:
+ XLEN = 64
+ pps = PPspec()
+ pspec = DivPipeSpec(
+ id_wid=2, div_pipe_kind=div_pipe_kind, parent_pspec=pps)
alu = DivBasePipe(pspec)
vl = rtlil.convert(alu, ports=alu.ports())
with open(f"div_pipeline_{div_pipe_kind.name}.il", "w") as f:
def test_div_pipe_core(self):
self.write_ilang(DivPipeKind.DivPipeCore)
- def test_div_pipe_core(self):
+ def test_fsm_div_core(self):
self.write_ilang(DivPipeKind.FSMDivCore)
- def test_div_pipe_core(self):
+ def test_sim_only(self):
self.write_ilang(DivPipeKind.SimOnly)