希望各位大神给点建议(已解决)
部分代码如下:
always@(posedge clk or posedge rst) begin
if(rst) begin
fetch1 = 0;
fetch2 = 0;
fetch3 = 0;
add1 = 0;
add2 = 0;
and1 = 0;
and2 = 0;
jmp = 0;
mov = 0;
end
case(counter_out)
0:begin //fetch the first beat
fetch1 = 1;
fetch2 = 0;
fetch3 = 0;
add1 = 0;
add2 = 0;
and1 = 0;
and2 = 0;
jmp = 0;
mov = 0;
end
......
endcase
end
用DC逻辑综合时报以下错误(42行就是always块开始的地方):
Error: /home/onear/digitalIC/simplecpu/code/cu.v:42: The statements in this 'always' block are outside the scope of the synthesis policy. Only an 'if' statement is allowed at the top level in this always block. (ELAB-302)
*** Presto compilation terminated with 1 errors. ***