modelsim 仿真 udp(user defined primitive)不支持问号wildcard
时间:10-02
整理:3721RD
点击:
代码如下:
modelsim 报错:near "?": syntax error, unexpected '?', expecting '0' or '1' or 'x' or 'X'
- primitive lvlatch(q,d,clock,preset);
- output reg q;
- input d,clock,preset;
- table
- ? ? 1:?:1;
- ? ? x:?:x;
- 1 0 0:?:1;
- 0 0 0:?:0;
- ? 1 0 :?:-;
- ? x 0:?:-;
- endtable
- endprimitive
modelsim 报错:near "?": syntax error, unexpected '?', expecting '0' or '1' or 'x' or 'X'