Q
QRaheeL
Guest
Hi guys.
An intesresting problem occured when I used "more than three" signals
in always block sens list.
XST (ISE 6.1i) reported the following error:
ERROR:Xst:1468 - dummy.v line 25: Unexpected event in always block
sensitivity list.
Same code is successfully compiled & simulated in MOdelSim5.7SE.
What kind of problem is this ?
Related to parser/editor/etc ??
//-------- C O D E - C O D E --------///
module dummy(x);
output x;
assign x = 1'b0;
reg a,b,c,d;
reg z;
initial
begin
a=0; b=0; c=0; d=0; z=0;
#100 $stop;
end
always #10 a=~a;
always #15 b=~b;
always #20 c=~c;
always #5 d=~d;
always @(posedge a or posedge b or posedge c or posedge d ) begin
if(a) z=~z;
else if(b)z=~z;
else if(c) z=~z;
else if(d) z=~z;
end
endmodule
An intesresting problem occured when I used "more than three" signals
in always block sens list.
XST (ISE 6.1i) reported the following error:
ERROR:Xst:1468 - dummy.v line 25: Unexpected event in always block
sensitivity list.
Same code is successfully compiled & simulated in MOdelSim5.7SE.
What kind of problem is this ?
Related to parser/editor/etc ??
//-------- C O D E - C O D E --------///
module dummy(x);
output x;
assign x = 1'b0;
reg a,b,c,d;
reg z;
initial
begin
a=0; b=0; c=0; d=0; z=0;
#100 $stop;
end
always #10 a=~a;
always #15 b=~b;
always #20 c=~c;
always #5 d=~d;
always @(posedge a or posedge b or posedge c or posedge d ) begin
if(a) z=~z;
else if(b)z=~z;
else if(c) z=~z;
else if(d) z=~z;
end
endmodule