S
Shaun
Guest
I'm trying to implement a synthesizable array of D flip-flops using a
for-loop. I'm using the Altera Quartus compiler. It doesn't seem to
like having the sensitivity list inside the for-loop. Is the following
code correct, and if it is, how can I reword it to make it more
palatable to Quartus?
Thanks,
Shaun
wire [7:0] rx;
reg [7:0] active;
always begin
integer i;
for (i = 0; i < 8; i = i + 1) begin
@(negedge rx)
active <= 1'b1;
end
end
Error (10856): Verilog HDL error at repeater.v(83): multiple event
control statements not supported for synthesis
for-loop. I'm using the Altera Quartus compiler. It doesn't seem to
like having the sensitivity list inside the for-loop. Is the following
code correct, and if it is, how can I reword it to make it more
palatable to Quartus?
Thanks,
Shaun
wire [7:0] rx;
reg [7:0] active;
always begin
integer i;
for (i = 0; i < 8; i = i + 1) begin
@(negedge rx)
active <= 1'b1;
end
end
Error (10856): Verilog HDL error at repeater.v(83): multiple event
control statements not supported for synthesis