I made an hdl file for the program counter using a register as the storage unit and kind of having the same logic by which a DFF makes a 1-bit, just more complex. But I can't access a pc till Monday for some reasons, and the last time I tested the hdl file it seemed to give an error during testing (didn't have time to edit it then). The circuit I created looks fine to me and I can't point out the error. Can somebody please help me?
The hdl file is:
Edit: if I'm on the right track/practically created the PC, can someone tell me any other implementations of the PC? (for broadening my horizons)