summaryrefslogtreecommitdiff
path: root/tb/soc/irq
diff options
context:
space:
mode:
Diffstat (limited to 'tb/soc/irq')
-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;