大家帮助看一些下图输入激励信号testbench 的编写,写的对不对?
Clk已经写完了,clock process自动生成了,应该没有问题,主要就是stim_proc process,帮助看看写的对不对?
constant CLK100M_period : time := 10 ns; CLK100M_process :process begin CLK100M <= '0'; wait for CLK100M_period/2; CLK100M <= '1'; wait for CLK100M_period/2; end process; -- Stimulus process stim_proc: process begin -- hold reset state for 100 ns. RESET <= '1'; CouchPulseIN <= '0'; wait for 100 ns; RESET <= '0'; CouchPulseIN <= '0'; wait for CLK100M_period*30;-- 400ns RESET <= '1'; CouchPulseIN <= '0'; wait for CLK100M_period*60;--1000ns CouchPulseIN <= '1'; Loop_A :loop wait for CLK100M_period*25000; --250us loop CouchPulseIN <= not CouchPulseIN; end loop Loop_A; -- insert stimulus here wait; end process; |