V8.2.2 What a Toggle Proves

EasyImplement12 minIcarus Verilog · serverReview the topic

Sort pad faults by what a walking-one test can say about them, then count steps and pairs from the recorded walk.

Hardware context: The sixteen IO pads of ap_soc v1.5, the board model around them and the bus-manager seat. What a toggle proves and what it only suggests.

The lesson's walk drove a one into 15 of the sixteen pads of ap_soc from the board, one pad at a time. PINMUX stayed at its reset value, and the seat read GPIO IN after each step (46 rows, record-v8-labs.mjs). IO1 was skipped: the board's UART line owns it. The same table passed on the good chip and on a chip whose SPI data input samples the clock pad. Enter a code for each fault, and whole numbers for the rest.

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

Replace each unresolved value of 65535 with your result.

Signals in the Timeline

SignalWidthRole
question8input of each check
Full specification
CodeWhat the walk says
1Proved by the walk: a failing step names it
2Only suggested: the walk passes, but a function test or a proof is still needed
3Not reached: the walk never drives or watches it
EntryYour decision
SHORTTwo GPIO pads shorted together on the die.
STUCKA pad stuck low.
SERIALThe SPI data input wired to the clock pad, in serial mode only.
IO1_INGPIO IN of pad 1 is broken.
LATEA pad reaches GPIO IN one cycle later than its neighbours.
WAKEIO15 never reaches the wake detector of ap_pwrctl.
STEPSSteps of a walking one over the sixteen pads.
PAIRSPairs of pads a short could join among sixteen.
IO15_INGPIO IN of pad 15 is broken; its wake path is fine.
ROWS_PER_PADRows the recorded walk spent on each pad, rounded down.
PAIRS_ATPairs of pads a short could join among PADS pads: PADS × (PADS - 1) / 2.

Examples

Example 1

SHORT
Input
Two GPIO pads shorted together on the die.
Output
matches = 1

Driving one pad moves the other; the step that drives either fails.

Example 2

STUCK
Input
A pad stuck low.
Output
matches = 1

The step that drives it reads 0.

Example 3

SERIAL
Input
The SPI data input wired to the clock pad, in serial mode only.
Output
matches = 1

The walk never selected the serial functions. It passed on exactly this chip.

Constraints and Contract

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

Hints

Hint 1

GPIO mode only, from the board, read through GPIO IN.

Hint 2

Every pad at each step: shorts and stuck pads fail.

Hint 3

Other selections, other listeners, and timing hidden by the wait.

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

15 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

SHORT

Input
Two GPIO pads shorted together on the die.
Expected output
matches = 1

Driving one pad moves the other; the step that drives either fails.

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

Icarus Verilog · server