From 49bd48e836a7f490481a196b6ddacf07a9e31d2b Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 14 Aug 2020 18:17:48 +0100 Subject: [PATCH] add hrfid unit test --- src/soc/fu/trap/test/test_pipe_caller.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.30.2