from soc.fu.cr.pipeline import CRBasePipe
from soc.fu.alu.alu_input_record import CompALUOpSubset
-from soc.fu.alu.pipe_data import ALUPipeSpec
+from soc.fu.cr.pipe_data import CRPipeSpec
import random
def test_ilang(self):
- rec = CompALUOpSubset()
+ rec = CRPipeSpec.opsubsetkls()
- pspec = ALUPipeSpec(id_wid=2, op_wid=get_rec_width(rec))
+ pspec = CRPipeSpec(id_wid=2, op_wid=get_rec_width(rec))
alu = CRBasePipe(pspec)
vl = rtlil.convert(alu, ports=alu.ports())
with open("cr_pipeline.il", "w") as f:
m.submodules.pdecode2 = pdecode2 = PowerDecode2(pdecode)
- rec = CompALUOpSubset()
+ rec = CRPipeSpec.opsubsetkls()
- pspec = ALUPipeSpec(id_wid=2, op_wid=get_rec_width(rec))
+ pspec = CRPipeSpec(id_wid=2, op_wid=get_rec_width(rec))
m.submodules.alu = alu = CRBasePipe(pspec)
comb += alu.p.data_i.ctx.op.eq_from_execute1(pdecode2.e)