Problems loading my CPU.hdl

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

Problems loading my CPU.hdl

rbrisi
After a lot of thinking and gathering clues from forum's questions, I came up with my CPU design which I think is right in terms of logic (at least it seems OK to me).

I tried to load the chip in Hardware Simulator and it does not work.

Could somebody take a look at my code and check where I made mistakes? I can't figure out by myself.

Thank you and congratulations for your website, it has been a great learning experience building a computer from its atoms = Nand gates!
Reply | Threaded
Open this post in threaded view
|

Re: Problems loading my CPU.hdl

rbrisi
The CPU I came up with has the following chip parts (in excess of 1 ALU, 2 Mux16, A and DRegister and 1 PC):

12 And gates
4 Or gates
2 Not gates
1 Xor gate

Maybe something is missing, but all the inputs and outputs specified are appearing in my design.
Reply | Threaded
Open this post in threaded view
|

Re: Problems loading my CPU.hdl

ivant
You can send it to me via email. Just click on my name and choose the "Send email" link.
Reply | Threaded
Open this post in threaded view
|

Re: Problems loading my CPU.hdl

WBahn
Administrator
In reply to this post by rbrisi
What do you mean by "does not work"?

It doesn't load?

What error message, if any, are you getting?

It loads but won't run?

It runs but produces the wrong results?

If so, what results does it produce that are wrong?

If you call up an automechanic and say, "My car doesn't work, what might be wrong?" Do you expect to get a meaningful response?
Reply | Threaded
Open this post in threaded view
|

Re: Problems loading my CPU.hdl

rbrisi
Where can I find what`s wrong with my loading of the CPU chip?

If you can help me with how to debug (where to look), I coul be more specific.

I assure you I came this far in this course without knowing how to debug loading errors. Can you help me?
Reply | Threaded
Open this post in threaded view
|

Re: Problems loading my CPU.hdl

rbrisi
In reply to this post by WBahn
Basically it doesn't load
Reply | Threaded
Open this post in threaded view
|

Re: Problems loading my CPU.hdl

rbrisi
In reply to this post by ivant
Dear ivant,

I sent you an e-mail with my code.

Thank you helping me!
Reply | Threaded
Open this post in threaded view
|

Re: Problems loading my CPU.hdl

WBahn
Administrator
In reply to this post by rbrisi
How are you trying to load it? Manually in the Hardware Simulator GUI? Via a test script in the Hardware Simulator GUI? By supplying the test script as an argument on the command line?

What indication are you getting that is letting you know that there is a problem? An error message at the bottom? An error message printed to the screen? A blank screen in the GUI?

The more information you provide, the better the answers you can hope for.
Reply | Threaded
Open this post in threaded view
|

Re: Problems loading my CPU.hdl

rbrisi
WBahn thanks for trying to help me, I just found what I was looking for, maybe it will sound silly to you but here's what was happening:

When I opened my Hardware Simulator GUI and tried to load my CPU chip, it did not load, and I didn't have a clue why.

What I discovered later is that if I enlarged my GUI screen, in the bottom of the screen there is a debugging dialog box which helped me go through my errors, and then I was able to fix it and could load my CPU chip.

I assure you I came this far without knowing that and having to rely only in my own check to get things right!

So it was tricky to me the fact that valuable information which would help me fix my chips was "hidden"!

Well I see now your frustration in not knowing how to help me. And I'm sorry I wasn't being able to explain better: that's because I didn't know I had this debugging tool "hidden" underside the GUI.

Thanks again for trying to help and sorry for my lack of information!