From b3412a9706226e1e464ed6f4affcfe0a672d9fdb Mon Sep 17 00:00:00 2001 From: Victor Timofei Date: Mon, 10 Jan 2022 21:01:15 +0200 Subject: [PATCH] Add program counter --- risc-v_shell.tlv | 3 +++ 1 file changed, 3 insertions(+) diff --git a/risc-v_shell.tlv b/risc-v_shell.tlv index d3a9792..4d63404 100644 --- a/risc-v_shell.tlv +++ b/risc-v_shell.tlv @@ -46,6 +46,9 @@ // YOUR CODE HERE // ... + $next_pc[31:0] = $reset ? 0 : ($pc + 4); + + $pc[31:0] = >>1$next_pc; // Assert these to end simulation (before Makerchip cycle limit).