S5.5.1 One Synchronizer per Domain

EasyImplement22 minIcarus Verilog · serverReview the topic

Build the reset branches for two independent clock islands, including the case where one clock stops.

Hardware context: ap_crg release sequence. Cold boot and scan bring-up

Wire the supplied positive-edge reset_ff cells into domain_resets. Each cell has ports (clk, clear_n, d, q) and an asynchronous active-low clear.

Use cell instances, wires and constants only. Give each domain its own two stages, both cleared by pad_n. With clear_n high, data must settle before the rising edge. Only the second stage may drive that domain’s output.

Signals in the Timeline

SignalWidthRole
sample12input of each check
Full specification

While pad_n is low, both domains must clear immediately even with clocks stopped. Release the pad between edges. Each output stays low until the second rising edge of its own clock.

Falling edges and edges of the other clock do not advance a branch. A new low pulse restarts both branches even halfway through release. An output stays high until the next assertion.

Examples

Example 1

Assert with Clocks Stopped
Input
pad_n=0, clk_bus=0, clk_io=0
Output
bus_n = 0, io_n = 0

The pad clears both branches.

Example 2

First Bus Edge
Input
pad_n=1, clk_bus=1, clk_io=0
Output
bus_n = 0, io_n = 0

One bus edge only fills the first stage.

Example 3

Falling Bus Edge
Input
pad_n=1, clk_bus=0, clk_io=0
Output
bus_n = 0, io_n = 0

The bus branch still owes a rising edge.

Example 4

Only the Bus Wakes
Input
pad_n=1, clk_bus=1, clk_io=0
Output
bus_n = 1, io_n = 0

Its second rising edge releases bus_n. The parked IO clock has made no progress.

Constraints and Contract

  • The samples form one sequence and list clock levels, including levels that do not change. Begin with both clocks low.

Hints

Hint 1

Follow a release with clk_io parked.

Hint 2

Trace what each cell samples on a rising edge.

Hint 3

Assert the pad again before the next edge.

What the grader checks: Structural cell grammar and digital pin-level checking. Analog resolution and physical placement need separate checks.

288 checks on Icarus Verilog · server. Run the examples first, then check the full regression. Full checks use the server judge. Downloads contain your source only; samples require the simulation service. A passing result establishes the tested cases, not a proof for all possible inputs.

See all 2 problems on this path

Report a problem with this page

Your code SystemVerilogSaved locally
Ln 1, Col 1Tab indents · Ctrl/⌘ + Enter runs samples
Not run yet

Assert with Clocks Stopped

Input
pad_n=0, clk_bus=0, clk_io=0
Expected output
bus_n = 0, io_n = 0

The pad clears both branches.

Run samples executes all 4 public checks. Check all tests runs 288 checks on the server.

Icarus Verilog · server