flip over to CompBROpSubset
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 15 May 2020 19:04:47 +0000 (20:04 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 15 May 2020 19:04:47 +0000 (20:04 +0100)
src/soc/branch/formal/proof_input_stage.py
src/soc/branch/test/test_pipe_caller.py

index bb62fb67c5a392c824e8afaf8b97e90723d88377..fb097c87d04a8e21e94e09c9d2d184fecdfbd3ef 100644 (file)
@@ -8,7 +8,7 @@ from nmigen.cli import rtlil
 
 from soc.alu.input_stage import ALUInputStage
 from soc.alu.pipe_data import ALUPipeSpec
-from soc.alu.alu_input_record import CompALUOpSubset
+from soc.branch.br_input_record import CompBROpSubset
 from soc.decoder.power_enums import InternalOp
 import unittest
 
@@ -24,7 +24,7 @@ class Driver(Elaboratable):
         m = Module()
         comb = m.d.comb
 
-        rec = CompALUOpSubset()
+        rec = CompBROpSubset()
         recwidth = 0
         # Setup random inputs for dut.op
         for p in rec.ports():
@@ -41,11 +41,9 @@ class Driver(Elaboratable):
                  dut.i.b.eq(b),
                  a.eq(AnyConst(64)),
                  b.eq(AnyConst(64))]
-                      
 
         comb += dut.i.ctx.op.eq(rec)
 
-
         # Assert that op gets copied from the input to output
         for p in rec.ports():
             name = p.name
@@ -64,9 +62,6 @@ class Driver(Elaboratable):
         with m.Else():
             comb += Assert(dut.o.b == b)
 
-
-
-
         return m
 
 class GTCombinerTestCase(FHDLTestCase):
index bbebf61329a47cfa7b8ba440006dc302705cdbd0..dacc50d994c03d443a4384a8ce258773f1321d8b 100644 (file)
@@ -13,7 +13,7 @@ from soc.decoder.isa.all import ISA
 
 
 from soc.branch.pipeline import BranchBasePipe
-from soc.alu.alu_input_record import CompALUOpSubset
+from soc.branch.br_input_record import CompBROpSubset
 from soc.alu.pipe_data import ALUPipeSpec
 import random
 
@@ -82,7 +82,7 @@ class BranchTestCase(FHDLTestCase):
         
 
     def test_ilang(self):
-        rec = CompALUOpSubset()
+        rec = CompBROpSubset()
 
         pspec = ALUPipeSpec(id_wid=2, op_wid=get_rec_width(rec))
         alu = BranchBasePipe(pspec)
@@ -105,7 +105,7 @@ class TestRunner(FHDLTestCase):
 
         m.submodules.pdecode2 = pdecode2 = PowerDecode2(pdecode)
 
-        rec = CompALUOpSubset()
+        rec = CompBROpSubset()
 
         pspec = ALUPipeSpec(id_wid=2, op_wid=get_rec_width(rec))
         m.submodules.branch = branch = BranchBasePipe(pspec)