Forum Discussion
Altera_Forum
Honored Contributor
18 years agoCreating a clock pulse
I am trying to create 7 different clock pulses that will go from high to low at a certain time. Can anyone help me? This is what I have so far: library IEEE; use IEEE.std_logic_1164.all; ...
Altera_Forum
Honored Contributor
18 years agoYou know that the behavioural timing statements as wait for, after are for simulation only, not for synthesizable code (FPGA programs)?
Your construct may not necessarily work in simulation, cause it misses a trigger event:process (O) is
begin
if(O='0') then
O<='1' after 5ns;
end if;
end process; This is a usual form process
begin
wait for 5 ns;
O<='1';
wait;
end process; To generate clock pulses in FPGA you need an input clock, and flipflops respectively a state machine to create a program flow.