Clear and preset in flip-flops
Clear and Preset set flip-flop to a known state
Clear or Reset the state to a logic 0
- Synchronous: Q=0 when next clock edge arrives
- Asynchronous: Q=0 when reset is asserted
- Doesn't wait for clock—quick but dangerous
Preset or Set the state to logic 1
- Synchronous: Q=1 when next clock edge arrives
- Asynchronous: Q=1 when reset is asserted
- Doesn't wait for clock—again, quick but dangerous