Forum Discussion
Altera_Forum
Honored Contributor
15 years agovht test bench examples
Hello, I am specifying altera to generate a .vht test bench for my vhdl project. I want to modify this test bench so that I can specify the input signals to be some value at different times ins...
Altera_Forum
Honored Contributor
15 years ago --- Quote Start --- The above code does not change the clock signal in the signal viewer in modelsim-altera at all. --- Quote End --- Because you have told the process to wait (stop) after toggling the signal once. For a clock, what you want is
process
begin
clk <= '0';
wait for 10 ns;
clk <= '1';
wait for 10 ns;
end process;
and the process will repeat in an infinite loop repeating these waits, and hence generate a clock. Cheers, Dave