Logic hazards in the real world
Combinational-logic hazards only matter when driving circuits or systems (outputs) that have state
- Registers or state machines
- esp asynchronous circuits
- Outputs that control an operation
What to do?
- Within a circuit
- Set the clock period longer than the critical path (incl hazards)
- CAD tools find the critical path for you
- Driving outputs
- Synchronize your combinational logic before driving outputs
- Use registers to synchronize the combinational result