S7.1.1 Sort the Ports

EasyImplement12 minIcarus Verilog · serverReview the topic

A counter has arrived with its wires bundled together. Route each observation to the engineer who can explain it.

Hardware context: ap_soc pulse counter. Peripheral integration

Use these exercise codes for the port class or internal boundary that owns each observation. Classify by the job of the signal at that boundary.

This worksheet uses named constants. The first three entries show how to record your decisions.

Signals in the Timeline

SignalWidthRole
question8input of each check
Full specification
CodeBoundary
1Bus
2Register block
3Core logic
4Interrupt
5DMA handshake
6Clock and reset
7Pad and mux
EntryYour decision
BUS_WAITThe bridge waits for the target to finish.
MODESoftware leaves a mode selected between writes.
INCREMENTThe arithmetic unit advances a count.
SERVICEThe block alerts the interrupt controller.
DRAINA transfer engine accepts a request to drain data.
TICKA rising edge advances the local state.
RELEASEThe local state may leave its initial condition.
DRIVERA package driver changes from high impedance to driving.
RETURNThe selected target returns a read word to the bridge.
LATCHA field remembers that an event occurred until software clears it.
DESTINATIONThe signal requests service. TO_DMA=1 routes it to the transfer engine, 0 to the interrupt controller.

Examples

Example 1

BUS WAIT
Input
The bridge waits for the target to finish.
Output
matches = 1

Ready belongs to the bus transfer.

Example 2

MODE
Input
Software leaves a mode selected between writes.
Output
matches = 1

The register block stores that choice.

Example 3

INCREMENT
Input
The arithmetic unit advances a count.
Output
matches = 1

Counting is the work of the core logic.

Constraints and Contract

  • Keep the parameter and named constants. Use the numeric codes and units on this page.
  • For DESTINATION, enter a constant expression using TO_DMA. Only this entry changes with the parameter. The supported integer range is 0 through 1, inclusive.

Hints

Hint 1

Ask who samples the signal.

Hint 2

Distinguish a stored field from the bus transaction that wrote it.

Hint 3

Follow each request to its own consumer.

What the grader checks: Each check compares the full eight-bit answer. Parameter trials change one condition and keep the other decisions fixed.

11 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

BUS WAIT

Input
The bridge waits for the target to finish.
Expected output
matches = 1

Ready belongs to the bus transfer.

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

Icarus Verilog · server