add test pspec for scoremulti to work
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 25 Nov 2021 09:16:54 +0000 (09:16 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 25 Nov 2021 09:16:54 +0000 (09:16 +0000)
src/soc/experiment/score6600_multi.py

index e2498ef5397dfb3a5dad1a1a5f1f4b1c837c68a5..ac7152e36ca9bba58908d2b2ffa973db87bd91ac 100644 (file)
@@ -20,6 +20,8 @@ from soc.experiment.compldst_multi import LDSTCompUnit
 from soc.experiment.compldst_multi import CompLDSTOpSubset
 from soc.experiment.l0_cache import TstL0CacheBuffer
 
+# for testing purposes
+from soc.config.test.test_loadstore import TestMemPspec
 from soc.experiment.alu_hier import ALU, BranchALU
 from soc.fu.alu.alu_input_record import CompALUOpSubset
 
@@ -436,7 +438,12 @@ class Scoreboard(Elaboratable):
         self.fpregs = RegFileArray(rwid, n_regs)
 
         # Memory (test for now)
-        self.l0 = TstL0CacheBuffer()
+        pspec = TestMemPspec(ldst_ifacetype='testpi',
+                             addr_wid=48,
+                             mask_wid=8,
+                             reg_wid=64)
+        dut = TstL0CacheBuffer(pspec)
+        self.l0 = TstL0CacheBuffer(pspec)
 
         # issue q needs to get at these
         self.aluissue = IssueUnitGroup(2)