Chips wont load

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

Chips wont load

The Hardware Simulator won't load the mux chip I made. I independently checked the Or, Xor, Not, and And functions and they work but the chip wont load. I had this issue before and I deleted and redownloaded the who set of projects twice which fixed it but it keeps happening and I don't know why. I am following the order of the components in the book and only using those components. My Mux.hdl file is below.

// This file is part of
// and the book "The Elements of Computing Systems"
// by Nisan and Schocken, MIT Press.
// File name: projects/01/Mux.hdl

 * Multiplexor:
 * out = a if sel == 0
 *       b otherwise

CHIP Mux {
    IN a, b, sel;
    OUT out;

    // Put your code here:
Reply | Threaded
Open this post in threaded view

Re: Chips wont load

This post was updated on .
When I load your Mux.hdl file into the Hardware Simulator, I get the error message:

In HDL file: C:\Documents\Nand2Tetris\Test\Mux.hdl, Line 16, A pin name is expected

Is this what you are seeing?  Of course, you path to the file Mux.hdl will be different.

Your error is definitely on the line indicated by the message.