From: Luke Kenneth Casson Leighton Date: Fri, 14 Aug 2020 17:17:48 +0000 (+0100) Subject: add hrfid unit test X-Git-Tag: semi_working_ecp5~351 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=49bd48e836a7f490481a196b6ddacf07a9e31d2b;p=soc.git add hrfid unit test --- diff --git a/src/soc/fu/trap/test/test_pipe_caller.py b/src/soc/fu/trap/test/test_pipe_caller.py index 5ec59766..45fea5a2 100644 --- a/src/soc/fu/trap/test/test_pipe_caller.py +++ b/src/soc/fu/trap/test/test_pipe_caller.py @@ -72,6 +72,14 @@ def set_alu_inputs(alu, dec2, sim): class TrapTestCase(TestAccumulatorBase): + def case_0_hrfid(self): + lst = ["hrfid"] + initial_regs = [0] * 32 + initial_regs[1] = 1 + initial_sprs = {'SRR0': 0x12345678, 'SRR1': 0x5678} + self.add_case(Program(lst, bigendian), + initial_regs, initial_sprs) + def case_1_rfid(self): lst = ["rfid"] initial_regs = [0] * 32