Add program counter

This commit is contained in:
Victor Timofei 2022-01-10 21:01:15 +02:00
parent 0e71e94d9c
commit b3412a9706
Signed by: vtimofei
GPG Key ID: B790DCEBE281403A
1 changed files with 3 additions and 0 deletions

View File

@ -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).