dipin
Full Member level 4
hi,
i had a verilog code that contains two for loops.The code works fine and it is synthesizable(checked using xilinx ISE 14.4)
this is my code
its a pipelined operation.
my question is is there any probem if use a for loop in verilog???
did all the tool and FPGA support for loop??
thanks & regards
i had a verilog code that contains two for loops.The code works fine and it is synthesizable(checked using xilinx ISE 14.4)
this is my code
Code:
for(i=0 ; i<N ; i=i+1) begin
if(yin[i+1] < 0 ) begin
xin[i+2] <= xin[i+1] - yin[i+1] ;
yin[i+2] <= yin[i+1] + xin[i+1] ;
end else begin
xin[i+2] <= xin[i+1] + yin[i+1] ;
end
end
my question is is there any probem if use a for loop in verilog???
did all the tool and FPGA support for loop??
thanks & regards