为什么硬件模拟器在加载芯片时以错误代码:在工作和内置的文件夹中找不到芯片的方式响应?我在Mux4way16和Mux8way16上也有类似的错误。有人知道问题出在哪里吗?谢谢!
CHIP Mux{
IN a, b, sel;
OUT out;
PARTS:
// output depending on sel=> and(sel,a)= sela, and(not(sel),b)= sel'b => or(and(sel,a), and(not(sel),b))= sela + (sel)'b
Not(in= sel,out= notsel);
Nand(a= notsel,b= a,out= out1);
Nand(a= sel,b= b,out= out2);
Nand(a= out1,b= out2,out= out);
}发布于 2022-06-12 16:51:51
您的代码似乎在我的计算机上正确运行。由于某种原因,硬件模拟器可能找不到您的和实现,也可能找不到实现(或者没有正确编译)。
您还可能希望只使用Not和Nand (或仅使用Nand)重新编码您的Mux实现,这需要更少的门。
https://stackoverflow.com/questions/72592495
复制相似问题