summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-08-03 13:29:38 -0400
committerIan Moffett <ian@osmora.org>2024-08-03 13:29:38 -0400
commit18d02bc7af5ed29e4c8ff094c9c161fc6f115ec7 (patch)
treebfdd41102c38fca804bb896ef5caafd61344aa90
parent7809654477167686e34819b13356393e74f7df67 (diff)
tb/soc: irq: Pulse IRQ ACK high
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r--tb/soc/irq/tb_pimc.cpp5
1 files changed, 5 insertions, 0 deletions
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;