From: Luke Kenneth Casson Leighton Date: Sun, 26 Jun 2022 11:57:33 +0000 (+0100) Subject: adapt TRAP function in main state pipeline to put KAIVB X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=10f4200e58562d6070203afdddea1dc0c0eb5f88;p=soc.git adapt TRAP function in main state pipeline to put KAIVB into top bits --- diff --git a/src/soc/fu/trap/main_stage.py b/src/soc/fu/trap/main_stage.py index c47b396e..3b9c7bed 100644 --- a/src/soc/fu/trap/main_stage.py +++ b/src/soc/fu/trap/main_stage.py @@ -74,8 +74,9 @@ class TrapMainStage(PipeModBase): nia_o = self.o.nia svsrr0_o, srr0_o, srr1_o = self.o.svsrr0, self.o.srr0, self.o.srr1 - # trap address + # trap address, including KAIVB override comb += nia_o.data.eq(trap_addr) + comb += nia_o.data[13:].eq(self.kaivb[13:]) comb += nia_o.ok.eq(1) # addr to begin from on return