From 18d02bc7af5ed29e4c8ff094c9c161fc6f115ec7 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sat, 3 Aug 2024 13:29:38 -0400 Subject: tb/soc: irq: Pulse IRQ ACK high Signed-off-by: Ian Moffett --- tb/soc/irq/tb_pimc.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tb') diff --git a/tb/soc/irq/tb_pimc.cpp b/tb/soc/irq/tb_pimc.cpp index 8dd0186..4fbc822 100644 --- a/tb/soc/irq/tb_pimc.cpp +++ b/tb/soc/irq/tb_pimc.cpp @@ -21,6 +21,11 @@ int main(int argc, char** argv, char** env) { for (int i = 0; i < MAX_SIM_ITER; ++i) { if (i == 5) { pimc->irq_in = 0b00000000; + pimc->irqack = 1; + } + + if (i == 10) { + pimc->irqack = 0; } pimc->clk ^= 1; -- cgit v1.2.3