Re: Program Counter Implementation
Posted by
cadet1620 on
Dec 29, 2012; 6:19pm
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/Program-Counter-Implementation-tp2974049p4025944.html
CaptainBarnacles wrote
I guess that a good metric for complexity is the number of component parts. My solution uses two 'OR' gates, three 'Mux16' gates, a 'Register' and an 'Inc16'. Is this optimum or should I be looking for a simpler way of doing this?
Your solution is good. There are some some things that can make it a bit better, but don't spend time trying to optimize it now. I recommend that you finish the logic part of the book (chapters 1-5) and then go back to look at your earlier circuits and you will likely see ways to improve them.
For the PC, the first question is "Do I really need logic to control the
load input to the Register?"
If you want to, send me your PC.hdl and I'll send you a collection of various implementations.
--Mark