What's wrong with my PC.hdl? When I draw the circuit out, it make sense to me.
This post was updated on .
Here's my code:
*requested to edit out code*
Basically, the value coming out of the register is incremented, which is only accepted if inc is 1 (checked via Mux) which then goes through another Mux which may reset it, and then another Mux which may or may not write it depending on the value of load. Then whatever value came out of that (be it the changed value or the value coming from the old register) is put into the register.