self.ad = go_record(1, name="cu_ad") # address go in, req out
self.st = go_record(1, name="cu_st") # store go in, req out
- self.exception_o = LDSTException("exc")
+ self.exception_o = LDSTException("exc_o")
self.ld_o = Signal(reset_less=True) # operation is a LD
self.st_o = Signal(reset_less=True) # operation is a ST
return m
def get_out(self, i):
- """make LDSTCompUnit look like RegSpecALUAPI"""
+ """make LDSTCompUnit look like RegSpecALUAPI. these correspond
+ to LDSTOutputData o and o1 respectively.
+ """
if i == 0:
- return self.data_o
+ return self.data_o # LDSTOutputData.regspec o
if i == 1:
- return self.addr_o
+ return self.addr_o # LDSTOutputData.regspec o1
# return self.dest[i]
def get_fu_out(self, i):
class LDSTOutputData(FUBaseData):
+ # these need to tie up with LDSTCompUnit.get_out index numbers
+ # LDSTCompUnit is unusual in that it's non-standard to RegSpecAPI
regspec = [('INT', 'o', '0:63'), # RT
('INT', 'o1', '0:63'), # RA (effective address, update mode)
# TODO, later ('CR', 'cr_a', '0:3'),
unittest.main(exit=False)
suite = unittest.TestSuite()
# suite.addTest(TestRunner(HelloTestCases.test_data, svp64=svp64))
- suite.addTest(TestRunner(DivTestCases().test_data, svp64=svp64))
+ #suite.addTest(TestRunner(DivTestCases().test_data, svp64=svp64))
# suite.addTest(TestRunner(AttnTestCase.test_data, svp64=svp64))
suite.addTest(TestRunner(GeneralTestCases.test_data, svp64=svp64))
suite.addTest(TestRunner(LDSTTestCase().test_data, svp64=svp64))
- suite.addTest(TestRunner(CRTestCase().test_data, svp64=svp64))
- suite.addTest(TestRunner(ShiftRotTestCase().test_data, svp64=svp64))
- suite.addTest(TestRunner(LogicalTestCase().test_data, svp64=svp64))
- suite.addTest(TestRunner(ALUTestCase().test_data, svp64=svp64))
- suite.addTest(TestRunner(BranchTestCase().test_data, svp64=svp64))
+ #suite.addTest(TestRunner(CRTestCase().test_data, svp64=svp64))
+ #suite.addTest(TestRunner(ShiftRotTestCase().test_data, svp64=svp64))
+ #suite.addTest(TestRunner(LogicalTestCase().test_data, svp64=svp64))
+ #suite.addTest(TestRunner(ALUTestCase().test_data, svp64=svp64))
+ #suite.addTest(TestRunner(BranchTestCase().test_data, svp64=svp64))
# suite.addTest(TestRunner(SPRTestCase.test_data, svp64=svp64))
runner = unittest.TextTestRunner()