S10.11.2 Halt Four Cores Together

MediumImplement25 minIcarus Verilog · serverReview the topic

Coordinate a halt request across four independently acknowledging cores and report when the selected group is stopped.

Hardware context: Multi-source trace and group halt controller. Multi-core bring-up and failure capture

An authorized cross-trigger reaches a synchronous group controller. Each selected core returns a one-cycle acknowledgment after seeing its request. Implement the controller.

Signals in the Timeline

SignalWidthRole
sample10input of each check
Full specification

All inputs are synchronous. Update outputs only at rising edges. Reset or release_group wins over all other inputs and clears both outputs.

While idle, trigger starts a group if members is nonzero. Copy the membership into request. Ignore acknowledgments on this starting edge.

While requests remain, ignore trigger and members. Clear each requested bit on its acknowledgment and ignore unrelated acknowledgments.

Set stopped on the edge clearing the last request. Hold stopped and ignore new triggers until reset or release_group. An empty launch stays idle.

Examples

Example 1

Reset
Input
reset=1 release=0 trigger=0 members=0 ack=0
Output
request = 0x0, stopped = 0

reset clears both outputs

Example 2

Group Starts
Input
reset=0 release=0 trigger=1 members=5 ack=5
Output
request = 0x5, stopped = 0

cores zero and two receive requests despite the launch-edge acknowledgment

Example 3

First Acknowledgment
Input
reset=0 release=0 trigger=0 members=0 ack=1
Output
request = 0x4, stopped = 0

core zero answers and core two remains outstanding

Constraints and Contract

  • Keep the module name and ports. Bit i always represents core i. Inputs are known binary values.

Hints

Hint 1

Track the group across edges.

Hint 2

Distinguish an acknowledgment arriving during launch from one answering an outstanding request.

Hint 3

Reread the rule for a launch with no members before you set stopped.

What the grader checks: Synchronous group control at the debug boundary. Clock-domain crossings and core stop latency belong to the endpoints.

456 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

Reset

Input
reset=1 release=0 trigger=0 members=0 ack=0
Expected output
request = 0x0, stopped = 0

reset clears both outputs

Run samples executes all 3 public checks. Check all tests runs 456 checks on the server.

Icarus Verilog · server