ananthan95
Junior Member level 3
Code:
process (clk)
if falling_edge(clk) then
adc <= '1';wait for 40ns;
adc <= '0';wait for 40ns;
adc <= '0';wait for 40ns;
adc <= '1';wait for 40ns;
adc <= '1';wait for 40ns;
adc <= '1';wait for 40ns;
adc <= '1';wait for 40ns;
adc <= '0';wait for 40ns;
adc <= '1';wait for 40ns;
adc <= '0';wait for 40ns;
adc <= '1';wait for 40ns;
adc <= '0';wait for 40ns;
adc <= '0';wait for 40ns;
adc <= '0';wait for 40ns;
adc <= '0';wait for 40ns;
adc <= '1';wait for 40ns;
end if;
i want to execute the above set of statements in a test bench. that is, my clock will remain low for 640ns and I have to send my data in a 40ns interval(serial input, one after the other- 16*40 = 640). but the issue is that, wait statement will not work if i use a sensityvity list. what should i do?