Give a boot manager permission to fetch only after its route, memory and peripheral island can answer.
Hardware context: ap_crg release sequence. Cold boot and scan bring-up
Implement the always-on controller that issues three release permissions. Each destination still synchronizes release locally. All status inputs here have already crossed into clk.
A permission stays set until pad_n falls. A falling pad clears all three immediately, even between clock edges. The ordered samples list clock levels.
Signals in the Timeline
| Signal | Width | Role |
|---|---|---|
sample | 12 | input of each check |
Full specification
On a rising edge with clock_ok high, grant fabric_go. Grant io_go when fabric_go was already set before that edge and fabric_ack is high.
Grant core_go when io_go was already set before that edge and both rom_ack and io_ack are high. Acknowledgments may arrive early, disappear, or arrive together.
Never move two new stages forward on one edge. During reset all grants stay low. Falling clocks and status changes between rising edges cannot grant or revoke permission.
Examples
Example 1
Clear the Sequencer- Input
pad_n=0, clk=0, clock_ok=0, fabric_ack=0, rom_ack=0, io_ack=0
- Output
fabric_go = 0, io_go = 0, core_go = 0
All grants clear before any clock edge.
Example 2
Every Status Is High- Input
pad_n=1, clk=1, clock_ok=1, fabric_ack=1, rom_ack=1, io_ack=1
- Output
fabric_go = 1, io_go = 0, core_go = 0
Only the first permission can rise.
Example 3
Clock Falls- Input
pad_n=1, clk=0, clock_ok=1, fabric_ack=1, rom_ack=1, io_ack=1
- Output
fabric_go = 1, io_go = 0, core_go = 0
The next permission still needs a rising edge.
Example 4
The Fabric Answers- Input
pad_n=1, clk=1, clock_ok=1, fabric_ack=1, rom_ack=1, io_ack=1
- Output
fabric_go = 1, io_go = 1, core_go = 0
Its prior grant and acknowledgment permit IO to start. The core still waits.
Constraints and Contract
- Here a grant means permission to start releasing reset. An acknowledgment means the destination is ready for its client. Those events can be many edges apart.
Hints
Hint 1
Start with every status high at power-up.
Hint 2
Write the permissions just before each edge.
Hint 3
Remove all status inputs after the first successful boot.
What the grader checks: The sequencer sees synchronized levels. Destination crossing, brownout detection and requalification belong outside this controller.
985 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