|
When I simulated RAM512 chip, the error message 'Comparison failure at line174' was shown. My hdl file is as follows. Can you please say, where is the mistake?
CHIP RAM512 {
IN in[16], load, address[9];
OUT out[16];
PARTS:
// Put your code here:
RAM64(in = in, load = load, address = address[0..5], out = outRAM1);
RAM64(in = in, load = load, address = address[0..5], out = outRAM2);
RAM64(in = in, load = load, address = address[0..5], out = outRAM3);
RAM64(in = in, load = load, address = address[0..5], out = outRAM4);
RAM64(in = in, load = load, address = address[0..5], out = outRAM5);
RAM64(in = in, load = load, address = address[0..5], out = outRAM6);
RAM64(in = in, load = load, address = address[0..5], out = outRAM7);
RAM64(in = in, load = load, address = address[0..5], out = outRAM8);
Mux8Way16(a = outRAM1, b = outRAM2, c = outRAM3, d = outRAM4, e = outRAM5, f = outRAM6, g = outRAM7, h = outRAM8, sel = address[6..8], out = out);
}
|