问题
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