jerryt
Junior Member level 3
I have one other question regarding the test bench. If I declared that I was going to use a 1KHz clock how do I calculate what my clk_period should be as shown below to achieve a 1KHz clock? By default ISE tool creates a test bench with 1us. Also, when they say clock period I am assuming that are referring to the full clock cycle and not have the clock cycle. Is that true?
I really appreciate everyones help. Thanks!
-------------------------------------------------------------------------------------------------
-- Clock period definitions
constant clk_period : time := 1 us;
-- Clock process definitions
clk_process rocess
begin
clk <= '0';
wait for clk_period/2;
clk <= '1';
wait for clk_period/2;
end process;
----------------------------------------------------------------------------
I really appreciate everyones help. Thanks!
-------------------------------------------------------------------------------------------------
-- Clock period definitions
constant clk_period : time := 1 us;
-- Clock process definitions
clk_process rocess
begin
clk <= '0';
wait for clk_period/2;
clk <= '1';
wait for clk_period/2;
end process;
----------------------------------------------------------------------------