Give two armed level sources a way to request a clock before its first edge, then hand responsibility to a sticky request.
Hardware context: ap_soc sleep controller. GPIO wake from MCU sleep
Design an always-powered wake bridge. Its wake output requests a clock from a separate safe gate. The clock controller might supply no edges until it sees wake.
Signals in the Timeline
| Signal | Width | Role |
|---|---|---|
sample | 12 | input of each check |
Full specification
For a bus-island trial, source 0 represents AXI AWAKEUP during a single read. Its service arrives after the data response. Source 1 represents APB5 PWAKEUP during a transfer. Its service follows the selected completion. The fixture supplies these clean levels at the bridge boundary.
Each source and its matching armed bit must both be high to make a live request. Inputs are clean levels. A real requester holds its level through the first sampling edge.
Drive wake immediately for a live request, including while aon_clk stands still. On each rising edge, record each live source in its own causes bit. Hold those bits through source withdrawal and mask changes.
Each service bit clears only its matching cause on a rising edge. A simultaneous live request wins for its own bit. Reset is active low and asynchronous. Reset clears both causes and suppresses wake even for a live source. Otherwise any live or remembered cause requests wake.
Examples
Example 1
Reset- Input
Reset low, sources off
- Output
status = 0
The request and memory are clear.
Example 2
Clock Stopped- Input
Source 1 and mask bit 1 high, no edge
- Output
status = 1
The gate can see the request before it supplies a clock.
Example 3
Other Mask- Input
Source 1 stays high, only bit 0 armed, still no edge
- Output
status = 0
The unsampled level has no memory.
Constraints and Contract
- Keep the ports. A live level that disappears before any sampling edge leaves no stored request. The result status packs {causes,wake} as an unsigned integer.
Hints
Hint 1
Separate the interval before the first edge from the interval after it.
Hint 2
Follow one source across a mask change.
Hint 3
Acknowledge one cause while its neighbor remains pending.
What the grader checks: Directed stopped-clock and clocked observations for every source and mask pair, with service and reset during handoff.
1291 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