新手请教一个问题

[复制链接]
5395|1
 楼主| qjmxxgui 发表于 2011-2-11 23:01 | 显示全部楼层 |阅读模式
ST, TE, RS, tc, FOR
module inst(a,b,c);
output c;
input[1:0] a,b;
assign c=(a==b)?1:0;
endmodule

这样的一段代码,编译一直不过,错误如下,请问为什么呢?
Error: Incorrect connector style at port "a[1..0]" for symbol "inst" of type inst
Error: Incorrect connector style at port "b[1..0]" for symbol "inst" of type inst
Error: Can't elaborate top-level user hierarchy
danieldx 发表于 2011-2-12 10:11 | 显示全部楼层
你不是在一个工程中编译的吧?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

0

主题

281

帖子

1

粉丝
快速回复 在线客服 返回列表 返回顶部