vhdl testbench help
Hello all,
@mouzid & cloudz88
That told you Avimit is true since the process will generate only one clock pulse after 10 ns. I think you meant to write:
S<='1' after 10 ns;
process
wait until S='1';
clk<='0';
wait for X ns;
clk<='1';
wait for X ns;
@ Avimit
What do you think about this solution ?
The technique you provided is a kind of gating technique of the clock. I is alright but in certain application it doesn't. In fact, when the enabling stop_clk signal comes in an appropriate time (when clk is low) that's ok. Now, Suppose that stop_clk rises when clk is high. As a result the width of the first pulse will be inferior than the conventional half period of the clock cycle and this can cause the disfonctionnement of the system.
Cheers,
Master_PicEngineer.