Forum Discussion
Altera_Forum
Honored Contributor
17 years agoCreating delay on an internal signal
I have an internal signal on a Cyclone II that I need to delay on the order of several nanoseconds. Best practices and omg-he's using-asynchronous-code aside, what would be the best way to do this? C...
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).