Altera_Forum
Honored Contributor
15 years agoIs this code synthesizable with Quartus?
Hi all,
I'm new in the industry, and now I have one code using the for loops. Someone suggests that it could not be synthesizable. Could anyone explain why? Thanks in advance.
integer i,N;
parmeter N=7;
reg A;
always @ (A)
begin
oddparity=1'b0;
for(i=0;i<=N;i=i+1)
if(A) oddparity=~oddparity;
end