Help with CPU.hdl and A register

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Help with CPU.hdl and A register

asmhack
Hi,

I can't figure out why CPU.hdl won't work as expected. I've gotten as far as Line 32 in the tests, but something is still off.

Should the load for the A register be the same as the select for the first Mux? Can someone kindly have a quick look at my practically finished CPU.hdl? Thanks
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Help with CPU.hdl and A register

cadet1620
Administrator
asmhack wrote
Should the load for the A register be the same as the select for the first Mux? Can someone kindly have a quick look at my practically finished CPU.hdl? Thanks
The A register must also be loaded whenever the A dest bit is set in C-instructions so that instructions with A= will store their result.

If you can't get your CPU working, you can email it to me and I'll give you more help debugging it.

--Mark
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Help with CPU.hdl and A register

asmhack
Thanks Mark! that helped.
Loading...