如何在vhdl中使用3输入逻辑门?
我刚刚学习 vhdl,并尝试使用 3 输入与非门。我的代码是:
G => (A nand B nand C) after 3 ns;
但这不能编译。
I am just learning vhdl, and am trying to use a 3-input nand gate. The code I have is:
G => (A nand B nand C) after 3 ns;
but this does not compile.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

发布评论
评论(3)
~没有更多了~
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
我不是 VHDL 专家,但我认为你有几个错误 - 可能应该是:
即分配方向错误,我不确定 nand 是否按照你需要的方式进行交换3 个输入,因此使用
and
作为输入,然后使用not
反转输出。I'm not an expert on VHDL but I think you have a couple of mistakes there - it should probably be:
i.e. the assignment is in the wrong direction and I'm not sure that nand commutes in the way that you need it to for 3 inputs, hence the use of
and
for the inputs and thennot
to invert the output.