The PC GUI element and the PC[] value in the .out file appear to show the stored state of the built-in PC component.
\1 A problem: These two do not show the same value on my computer after the first tick.
After clicking Single Step on “tick, output;”:
View Screen shows PC: 1
View Output shows pc 0
How do they appear on your computer?
\2 As a reminder, are these statements correct?
When I click on “tick, output;”, Combinational parts are updated.
When I click on “tock, output;”, Sequential parts are updated.
\3 By “stored state”, do you mean the value of a register after its output has been changed?
For example, initially PC.out = 0; therefore CPU.pc = 0.
In my hdl, PC.inc has a value of 1.
After clicking on “tock, output;”, PC.out changes to 1; therefore CPU.pc = 1.
This should not occur after “tick, output;” is clicked. Is that correct?
If yes, the PC GUI element is not at this point showing the current value of chip PC.out (see \1).
The PC[] value in the .out file is correct.