The chip has a circle in its part connections

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

The chip has a circle in its part connections

Arjun Daddikar
The first time I attempted to create the Computer chip, I got the error "The chip has a circle in its part connections". While trying to debug the chip I tried using a register which worked. But what happened is that the chip became too slow.

Thanks for any help in advance.
Reply | Threaded
Open this post in threaded view
|

Re: The chip has a circle in its part connections

ivant
If all the other chips are correct you don't need additional registers. This is because both the CPU and RAM have registers internally, which break the cycle (ROM is a combinational circuit).

Putting additional registers will create problems, because the computer is supposed to do specific things at each clock and the registers will delay these to the next clock.

Make sure that all the components work properly. Many of the chips have built-in variants, which are both much faster and better tested than. For example, if you don't have a file named ALU.hdl in the same folder as CPU.hdl, then the built-in ALU will be used. Conversely, if you do have such file, it will be loaded and used in the CPU. Try moving away all .hdl files except Computer.hdl, CPU.hdl and Memory.hdl and try your tests again.
Reply | Threaded
Open this post in threaded view
|

Re: The chip has a circle in its part connections

Arjun Daddikar
But there are no built -in variants of the CPU and Memory!
Reply | Threaded
Open this post in threaded view
|

Re: The chip has a circle in its part connections

ivant
That's right. You have to implement them yourself.