Really confused about ARegister not setting properly

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Really confused about ARegister not setting properly

Aushin
For my ARegister, one of the inputs is 'instruction'.  When I click after instruction gets set the first time, it still reads 0 as being input to my ARegister, which causes it to fail before anything even happens.
Reply | Threaded
Open this post in threaded view
|

Re: Really confused about ARegister not setting properly

cadet1620
Administrator
Aushin wrote
For my ARegister, one of the inputs is 'instruction'.  When I click after instruction gets set the first time, it still reads 0 as being input to my ARegister, which causes it to fail before anything even happens.
I'm not sure I understand your question.  I assume that you are talking about your CPU.hdl and the mux on the input to the A-register and its behavior during A-instructions.  What are you clicking on?

One thing to be aware of is that when you are single stepping test scripts, the highlighted instruction is the next instruction that will be executed, not the one that is currently executing.

If you become a registered member of the forum you can send me your CPU.hdl using More > Reply to Author and I'll be happy to give you help off forum.

--Mark