Setup and Hold time

If Set up and hold time fails then what happens?Please suggest me

In reply to truptipatro:

Then might not get desired behavior always. As FF is preparing output for you in setup-hold region, data should be stable in setup-hold window.

In theory FF should remain in meta-stable state indefinitely, but the way simulator behaves (practically) FF output will go to either ‘0’ or ‘1’ in the case.

In reply to MayurKubavat:
Digital simulators do not respect the setup and hold times, as they do do not model the metastability regions. Setup and hold times are typically checked by static timing analyzers.
In hardware, a setup or hold violation will cause a FF with inputs in the metastability region (as the signal changes from one level to the other) to flip to one level or another; there might be a toggle. This is because FF are designed with latchup (feedback). In fact, one way to make am oscillator is to take the output of an inverter and tie it back to its input.


Ben Cohen
http://www.systemverilog.us/ ben@systemverilog.us

  • SVA Handbook 4th Edition, 2016 ISBN 978-1518681448
  • A Pragmatic Approach to VMM Adoption 2006 ISBN 0-9705394-9-5
  • Using PSL/SUGAR for Formal and Dynamic Verification 2nd Edition, 2004, ISBN 0-9705394-6-0
  • Real Chip Design and Verification Using Verilog and VHDL, 2002 isbn 0-9705394-2-8
  • Component Design by Example ", 2001 ISBN 0-9705394-0-1
  • VHDL Coding Styles and Methodologies, 2nd Edition, 1999 ISBN 0-7923-8474-1
  • VHDL Answers to Frequently Asked Questions, 2nd Edition ISBN 0-7923-8115

In reply to MayurKubavat:

Thanks.