Altera_Forum
Honored Contributor
15 years agoSimple Delay in VHDL (sanity check)
Hi,
Anyone availible to help me with a quick sanity check :) . I created a simple delay in vhdl. My testbech offers an input clock with 40ns period and 50% duty cycle so plently of time to allow the required transitions. The problem is that when i run the simulation clk_out doesnt make any transitions at all. This must be a simple mistake but i cannot see it.library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
ENTITY clk_delay IS
PORT ( clk_in : IN STD_LOGIC;
clk_out : OUT STD_LOGIC);
END clk_delay;
ARCHITECTURE behav OF clk_delay IS
BEGIN
P1: PROCESS (clk_in)
BEGIN
IF clk_in'EVENT AND clk_in = '1' THEN
clk_out <= clk_in AFTER 5ns;
END IF;
END PROCESS;
END behav; If anyone can help i will be forever grateful. FYI: Quartus ii V8.0 with Quartus simulator. Thanks Ade.