Stimulus provided on Active Ege or Inactive Edge from Testbe

Guest
I have a query regarding the input stimulus from the testbench.
For a design with posedge as active edge, what is a better practice, to
give the stimulus on the posedge or the inactive ege (negedge).

I understand that for Gate Level Simulation, giving on the negedge will
make more sense as the setup/hold violations will be avoided.

Is there any other reason why negedge should be preferred for driving
the stimulus.

For RTL simulation, does driving the stimulus at either of the edges
matter?

Thanks,
Vishesh
 
Some time the edge of stimulus is to simulate the real case. For
example, your design is connecting to outside camera, and the camera's
signals are active on falling edge of clock.
If you have to use falling edge testbench in gate-level, then use same
in RTL sim as well.
Otherwise, It doesn't hurt to use either edge.

Nandy
www.nandigits.com
Netlise Debug/ECO in GUI mode.
 

Welcome to EDABoard.com

Sponsor

Back
Top