扰流器警报:包含来自Memory.hdl (项目5)的简短代码片段。
我收到了这个问题标题中列出的错误,但我确信它与连接内部部件的输出引脚与芯片的输入引脚无关。
这是创建错误的代码。到目前为止,程序中没有其他代码。
CHIP Memory {
IN in[16], load, address[15];
OUT out[16];
PARTS:
DMux(in=load,sel=address[14],a=load_ram,b=load_other);
}怎么一回事?!
发布于 2016-04-22 23:13:55
解决方案:从引脚名称中删除下划线字符。
硬件模拟器正在产生错误的错误信息。问题是下划线字符(_)不是引脚名称的有效字符。因此,当硬件模拟器看到a=load_ram时,它将其解析为a=load ram。由于load是Memory输入引脚的名称,这就解释了为什么会看到该错误。
http://nand2tetris-questions-and-answers-forum.32033.n3.nabble.com/Cannot-connect-part-s-output-pin-to-gate-s-input-pin-tp4025858p4025859.html
https://stackoverflow.com/questions/36804684
复制相似问题