|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
刚开始学verilog,在quartus里编译,碰到了这样一个问题,急求指教,谢谢:
项目名是XUANZEQI
结果编译出现问题:
Warning: Verilog HDL unsupported feature warning at XUANZE.v(14): Initial Construct is not supported and will be ignored
Error: Can't synthesize current design -- design does not contain any logic
不知道为什么!程序如下:
module XUANZE;
reg I1,I2,I3,I0;
reg S1,S0;
wire OUTPUT;
choose_4_1 mymux(OUTPUT,I0,I1,I2,I3,S1,S0);
initial
begin
I0=1;I1=0;I2=1;I3=0;
#1 $display("I0=%b,I1=%b,I2=%b,I3=%b\n",I0,I1,I2,I3);
S1=0;S0=1;
#1 $display("S1=%b,S0=%b,OUTPUT=%b\n",S1,S0,OUTPUT);
end
endmodule
module choose_4_1 (out,i0,i1,i2,i3,s1,s0);
output out;
input i0,i1,i2,i3;
input s0,s1;
//嵌套
assign out=s1?(s0?i3:i2) s0?i1:i2);
endmodule |
|