Add program counter
This commit is contained in:
parent
0e71e94d9c
commit
b3412a9706
|
@ -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).
|
||||
|
|
Loading…
Reference in New Issue