Vijay Vinay
Member level 5
Hello,
I am new to writing the testbench files in VHDl but I have somehow written a test bench file. The context of the file is as follows
.
What I actually need is that , when I change reset_n_i i =0 ,then it should stop the simulation and should print the above message as "Output is zero, make the reset_n_i value to 1". The same for enable_i also. But it is not working in this manner. Help is appreciated
I am new to writing the testbench files in VHDl but I have somehow written a test bench file. The context of the file is as follows
Code ActionScript - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 wait for 100 ns; reset_n_i <= '0'; wait for clk_128m_i_period*10; reset_n_i <= '1'; wait for clk_128m_i_period; fmcw_trig_i <= '1'; fstep_i <= "1111111100"; fmcw_bw_i <= "000000000010011100010000"; wait for 1 ms; reset_n_i <= '0'; assert reset_n_i='0' report "Output is zero, make reset value to 1" severity Error; assert fmcw_trig_i='0' report " FMCW modulation works only if fmcw_trig_i=1" severity Error; report "End of the simulation";
What I actually need is that , when I change reset_n_i i =0 ,then it should stop the simulation and should print the above message as "Output is zero, make the reset_n_i value to 1". The same for enable_i also. But it is not working in this manner. Help is appreciated