57. Reset Synchronizer

Loading simulator…

What is already provided

  • Clock (Clock-1) is the common 1 Hz source; nReset (DigitalInput-1) is the external active-LOW reset.
  • VCC (Rail-1) supplies a fixed logic HIGH, and nResetSync (DigitalOutput-1) is the output indicator.
  • The starter contains no D flip-flops or connections. Keep these four supplied components unchanged.

What is missing

Build the two-stage reset-release chain, including both configured DFFs and their constant-HIGH, clock, asynchronous-reset, and output connections.

Build the reset synchronizer

  1. Place and configure both reset stages.
    • Implement: Add RESET_FF1 (FlipFlopD-1) and RESET_FF2 (FlipFlopD-2). In EWsim, enable asynchronous set/reset, select rising-edge clock triggering, and make preset and reset active-LOW (UseRS="true", Trigger="Clock", invertPins="in1,in2,").
    • Why: Both stages must clear without a clock edge but load data only on the rising edge.
  2. Provide the HIGH data value and disable both presets.
    • Connect: VCC.outnod (Rail-1) → RESET_FF1.in0, RESET_FF1.in1, and RESET_FF2.in1, using fanout Nodes as needed.
    • Why: FF1 receives a constant 1; HIGH on each active-LOW preset (in1) keeps the preset inactive.
  3. Create the two-stage data path.
    • Connect: RESET_FF1.out0 (Q) → RESET_FF2.in0 (D).
    • Why: FF2 captures FF1's previous Q at each rising edge, delaying reset release by one additional cycle.
  4. Connect the same clock to both stages.
    • Connect: Clock-1.outnod → RESET_FF1.in3 and RESET_FF2.in3, using a fanout Node.
    • Why: Both flip-flops update on the same rising edge, ensuring synchronized reset release.
  5. Connect asynchronous reset to both stages.
    • Connect: DigitalInput-1.outnod (nReset) → RESET_FF1.in2 and RESET_FF2.in2, using a fanout Node.
    • Why: Both Q outputs clear immediately when nReset = 0, without waiting for a clock edge.
  6. Connect the synchronized reset output.
    • Connect: RESET_FF2.out0 (Q) → DigitalOutput-1.inpin (nResetSync).
    • Why: Only FF2's Q provides the required two-edge release timing.

How the completed circuit works

  • When nReset = 0, both DFFs clear asynchronously and nResetSync = 0.
  • After nReset becomes 1, the first rising edge loads 1 into FF1 while FF2 remains 0.
  • The second rising edge transfers FF1's previous 1 into FF2, so nResetSync = 1; it remains HIGH until nReset is asserted again.
  • Reasserting nReset = 0 clears both stages immediately, restarting the two-edge release sequence.