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
| Signal | Width | Role |
|---|---|---|
question | 8 | input of each check |
Full specification
| Code | What the walk says |
|---|---|
| 1 | Proved by the walk: a failing step names it |
| 2 | Only suggested: the walk passes, but a function test or a proof is still needed |
| 3 | Not reached: the walk never drives or watches it |
| Entry | Your decision |
|---|---|
| SHORT | Two GPIO pads shorted together on the die. |
| STUCK | A pad stuck low. |
| SERIAL | The SPI data input wired to the clock pad, in serial mode only. |
| IO1_IN | GPIO IN of pad 1 is broken. |
| LATE | A pad reaches GPIO IN one cycle later than its neighbours. |
| WAKE | IO15 never reaches the wake detector of ap_pwrctl. |
| STEPS | Steps of a walking one over the sixteen pads. |
| PAIRS | Pairs of pads a short could join among sixteen. |
| IO15_IN | GPIO IN of pad 15 is broken; its wake path is fine. |
| ROWS_PER_PAD | Rows the recorded walk spent on each pad, rounded down. |
| PAIRS_AT | Pairs 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