|
我所写的程序
module prioritylineup(a,b,c,aout,bout,cout);
input a,b,c;
output aout,bout,cout;
if(a)
begin
aout=1; bout=0; cout=0; end
else if(!a&&b)
begin aout=0; bout=1; cout=0; end
else if(!a&&!b&&c)
begin aout=0; bout=0; cout=1; end
else if(!a&&!b&&!c)
begin aout=0; bout=0; cout=0; end
endmodule
调试时一直报有两个错
Error (10170): Verilog HDL syntax error at prioritylineup.v(4) near text "if"; expecting an identifier ("if" is a reserved keyword ), or "endmodule", or a parallel statement
Error (10112): Ignored design unit "prioritylineup" at prioritylineup.v(1) due to previous errors
求教如何改正,谢谢 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?我要注册
x
|