verilog 顶层模块调用问题。
always@(negedgexuehao)beginif(m==0)beginm<=1;geneatorsgeneators1(.clk(clk),.data(data...
always @(negedge xuehao)beginif(m==0)beginm<=1;geneators geneators1( .clk(clk), .data(data),.pulse(pulse), .pulse2(pulse2),.out(out), .out1(out1), .p(p), .q(q),.wavekind(wavekind),.pulse1(pulse1) );endelse if(m==1)beginm<=0;xuehao xuehao1(.clk(clk), .s0_n(wavekind), .s1_n(pulse1), .s2_n(out1), .s3_n(out) );endend
想要实现m分别为0和1的条件下分别调用generator和xuehao两个子文件,编译不通过,求解释原因
显示错误:
Error (10170): Verilog HDL syntax error at all.v(27) near text "geneators1"; expecting "<=", or "="
Error (10170): Verilog HDL syntax error at all.v(37) near text "xuehao1"; expecting "<=", or "="
Error (10112): Ignored design unit "all" at all.v(1) due to previous errors 展开
想要实现m分别为0和1的条件下分别调用generator和xuehao两个子文件,编译不通过,求解释原因
显示错误:
Error (10170): Verilog HDL syntax error at all.v(27) near text "geneators1"; expecting "<=", or "="
Error (10170): Verilog HDL syntax error at all.v(37) near text "xuehao1"; expecting "<=", or "="
Error (10112): Ignored design unit "all" at all.v(1) due to previous errors 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询