Declaring inout/input port as wand

旧城冷巷雨未停 提交于 2019-12-11 16:08:03

问题


When I execute the following code I get the then following error, but to my understanding input ports can be of net type, then why does this error occur?

module a(inout<or input> i);
wand i;
endmodule

Assertion failed: (0), function draw_net_input_x, file draw_net_input.c, line 727. sh: line 1: 25015 Done /opt/local/lib/ivl/ivlpp -L -F"/tmp/ivrlg2190eb213" -f"/tmp/ivrlg190eb213" -p"/tmp/ivrli190eb213"

25016 Abort trap: 6 | /opt/local/lib/ivl/ivl -C"/tmp/ivrlh190eb213" -C"/opt/local/lib/ivl/vvp.conf" -- - tmp/zGBnch/a.out:12: syntax error

where as this code works fine.

 module a(inout<or input> i);
   wire i;
 endmodule

You can refer to this question as to what made me ask this question.

来源:https://stackoverflow.com/questions/45168064/declaring-inout-input-port-as-wand

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!