Help with Program Counter(PC)

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

Help with Program Counter(PC)

Tesla
This post was updated on .
Hello everyone,

I have ben trying to implement the PC chip from 3 days but without luck

i have posted my hdl below, just help me with the concept, i mean don't make comments directly regarding my hdl(because i don't want anyone ruin the joy of solving the problem myself), am i in the right way or made any mistake..??, if i do so please give me some hints; where am i wrong, Thanks in advance for any help...Thank you
Reply | Threaded
Open this post in threaded view
|

Re: Help with Program Counter(PC)

cadet1620
Administrator
In overall structure, the PC is like a Bit — a storage element that connects to out and also feeds back to some combinational circuitry that creates the next input value for the storage element.

When you connect load=True in a Register, you have logically turned it into a DFF16.

You have the right idea about using 3 Mux16s to handle the control inputs.  You just need to get the Mux16s' inputs connected in the right sequence.

--Mark

Reply | Threaded
Open this post in threaded view
|

Re: Help with Program Counter(PC)

Tesla
Thanks Mark, i guess there is some magic in the forum after visiting it and i was able to solve the problem in 5 minutes , thanks once again Mark , u are right, it's just the change of inputs of Mux16's, got a working PC chip, i will remove my almost nearly working hdl code, as i don't want to ruin the others fun of solving the problem on their own

Thannks man.....
Reply | Threaded
Open this post in threaded view
|

Re: Help with Program Counter(PC)

ivant

Yes. It's the magic of rubber duck problem solving: http://blog.codinghorror.com/rubber-duck-problem-solving/


On Wed, Mar 23, 2016, 20:38 Tesla [via Nand2Tetris Questions and Answers Forum] <[hidden email]> wrote:
Thanks Mark, i guess there is some magic in the forum after visiting it and i was able to solve the problem in 5 minutes , thanks once again Mark , u are right, it's just the change of inputs of Mux16's, got a working PC chip, i will remove my almost nearly working hdl code, as i don't want to ruin the others fun of solving the problem on their own

Thannks man.....


If you reply to this email, your message will be added to the discussion below:
To start a new topic under Project 3, email [hidden email]
To unsubscribe from Nand2Tetris Questions and Answers Forum, click here.
NAML