summaryrefslogtreecommitdiff
path: root/riscv/riscv_step.sail
diff options
context:
space:
mode:
authorPrashanth Mundkur2018-07-03 14:47:59 -0700
committerPrashanth Mundkur2018-07-03 14:48:04 -0700
commitedc516ff87fa45fd812dd5d7025d5d94c44a80ee (patch)
treeb58d6365aa1ebd00116e8aa7e30d94b85dc2d485 /riscv/riscv_step.sail
parent53959905b8e4bfd4877c1e052195391d89bdb0d6 (diff)
Allow the riscv htif_tohost mmio port to be readable, and ack writes to that port.
Diffstat (limited to 'riscv/riscv_step.sail')
-rw-r--r--riscv/riscv_step.sail2
1 files changed, 2 insertions, 0 deletions
diff --git a/riscv/riscv_step.sail b/riscv/riscv_step.sail
index 2ac80cc6..af41c098 100644
--- a/riscv/riscv_step.sail
+++ b/riscv/riscv_step.sail
@@ -114,6 +114,8 @@ function loop () = {
i = i + 1;
if i == insns_per_tick then {
tick_clock();
+ /* for now, we drive the platform i/o at every clock tick. */
+ tick_platform();
i = 0;
}
}