Chip name doesn't match the HDL name

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

Chip name doesn't match the HDL name

Ely0rda
I am building the memory chip and I have used the built-in RAM16K as a part , for some reason the Hardware simulator keeps throwing the error "In HDL file c:\...\nand2tetris\tools\builtInChips\RAM16k.hdl line 17 Chip name doesn't match the HDL name."
This is the code from the Memory.hdl that I have built

CHIP Memory {
    IN in[16], load, address[15];
    OUT out[16];

    PARTS:
   
    DMux(in=load, sel=address[0], a=m, b=io);
    RAM16k(in=in,load=m,address=address[1..14],out=outm);
    Screen(in=in, load=io, address=address[2..14], out=outs);
    Keyboard(out=outk);
    Mux16(a=outs, b=outk, sel=address[1], out=outio);
    Mux16(a=outm, b=outio, sel=address[0], out=out);
    }
 Does anyone understand what causes this problem?
 Thanks for taking the time to read this post, and sorry for any english errros.
Reply | Threaded
Open this post in threaded view
|

Re: Chip name doesn't match the HDL name

WBahn
Administrator
I don't recall if the HDL simulator is case-sensitive or not. Try changing the part name from RAM16k to RAM16K and see if that makes a difference.

It appears to be complaining about the contents of the RAM16K file in the builtInChips folder. Make sure that you haven't altered any files in this folder. Also make sure that there is no RAM16K.hdl file in the folder where your Memory.hdl file is located (it looks like this is not the issue).