בתאריך יום רביעי, 14 באוגוסט 2013 22:48:18 UTC+3, מאת Chris Waugh:
> Can anyone please tell me how to give one clock cycle in VHDL testbench? The output result some come with one clock cycle. How can I do that?
Here is an example:
p_2 : process
variable cnt : integer := 0;
variable j : integer := 0;
begin
wait until clk_int'event and clk_int = '1';
if(not fifo_read_en) then
wait;
end if;
assert false report "start fifo drive" severity warning;
for j in 1 to 31 loop
wait until clk_int'event and clk_int = '1';
end loop;
reset_1 <= '1';
for j in 1 to 9 loop
wait until clk_int'event and clk_int = '1';
end loop;
reset_1 <= '0';
for j in 1 to 4 loop
wait until clk_int'event and clk_int = '1';
end loop;
mac_tx_tready_1 <= '0';
mac_rx_tvalid_1 <= '0';
mac_rx_tlast_1 <= '0';
for j in 1 to 7 loop
wait until clk_int'event and clk_int = '1';
end loop;
while(fifo_done = '1') loop
http://bknpk.no-ip.biz/my_web/SDIO/vhdl_p_2_test_control.html