|
For the CPU.hdl chip I'm receiving a comparison failure at line 4 of which I understand is because the compare file and out file lines don't match but I'm confused at the expected output for the D register. Line 4 of the compare file, really line 3, is the first C instruction and the D register is expected to have a value of 12345. I'm confused as to why. As this the first C instruction the D register should not commit to this new value until the next time step. Could someone explain how the D register can have a value of 12345 at time 1+?
CPU.cmp
|time| inM | instruction |reset| outM |writeM |addre| pc |DRegiste|
|1+ | 0|1110110000010000| 0 |*******| 0 |12345| 1| 12345 |
CPU.out
|time| inM | instruction |reset| outM |writeM |addre| pc |DRegiste|
|1+ | 0|1110110000010000| 0 | 0| 0 |12345| 1| 0 |
- Craig
|