Forum Discussion
Altera_Forum
Honored Contributor
17 years agoA simple, parameterizable logic cell delay line example goes like this:
signal delay_line: std_logic_vector(DELAY-1 downto 0);
attribute keep: boolean;
attribute keep of delay_line: signal is true;
begin
gen_delay:
for i IN 1 TO DELAY-1 generate
delay_line(i) <= delay_line(i-1);
end generate;
delay_line(0) <= inp;
outp <= delay_line(DELAY-1); As discussed in another thread, the method doesn't work with CPLD (apart from MAX II, that is an embedded flash FPGA).