Follow a pattern through three boundary cells by hand: what the shift stages hold, when the drivers change, and what the tester reads back.
Hardware context: Chain of three boundary cells of ap_soc, each with a shift stage and an update stage. Board test through the boundary chain of a chip
This is the boundary chain of lesson S8.12 with another pattern and other pins. Three boundary cells form a chain. Cell 0 is next to the scan input and cell 2 drives the scan output. A shift moves each bit one cell on and takes a new bit into cell 0. An update copies every shift stage into its update stage. A capture copies the level of each pin into the shift stage of its cell. A 1 in an update stage switches the driver of that pin on.
This worksheet uses named constants. The first three entries show how to record your decisions.
Signals in the Timeline
| Signal | Width | Role |
|---|---|---|
question | 8 | input of each check |
Full specification
| Step | What the tester does |
|---|---|
| 1 | Preload: shifts in 0, 0, 0, then one update. |
| 2 | Shifts in 1, then 1, then 0. |
| 3 | One update. |
| 4 | One capture. The board holds pin 2 low, pin 1 high and pin 0 high. |
| 5 | Shifts out three bits, with 0 on the scan input. |
Write three stages as one binary number, cell 2 on the left, and enter it as a decimal number: 110 is 6, and 011 is 3. Every shift, update or capture is one clock pulse.
| Entry | Your decision |
|---|---|
| AFTER_1 | The shift stages after the first shift of step 2, as a decimal number. |
| AFTER_2 | The shift stages after the second shift of step 2. |
| AFTER_3 | The shift stages after the third shift of step 2. |
| DRIVERS_STEP2 | The update stages at the end of step 2. |
| DRIVERS_STEP3 | The update stages after step 3. |
| DRIVERS_ON | How many drivers are on after step 3? |
| CAPTURED | The shift stages after the capture. |
| DRIVERS_STEP4 | The update stages after the capture. |
| OUT_1 | The first bit on the scan output in step 5. |
| OUT_2 | The second bit on the scan output. |
| OUT_3 | The third bit on the scan output. |
| PULSES | How many clock pulses do the five steps take in all? |
| PULSES_N | Suppose the chain had N cells in place of 3, and every shift went through the whole chain. How many clock pulses would the whole test take? |
Examples
Example 1
AFTER 1- Input
The shift stages after the first shift of step 2, as a decimal number.
- Output
matches = 1
The 1 is in cell 0: 001.
Example 2
AFTER 2- Input
The shift stages after the second shift of step 2.
- Output
matches = 1
The first 1 moved to cell 1, and cell 0 took another 1: 011.
Example 3
AFTER 3- Input
The shift stages after the third shift of step 2.
- Output
matches = 1
Both ones moved on, and cell 0 took the 0: 110.
Constraints and Contract
- Keep the parameter and named constants. Use the numeric codes and units on this page.
- For PULSES_N, enter a constant expression using N. Only this entry changes with the parameter. The supported integer range is 3 through 8, inclusive.
Hints
Hint 1
On each shift, move every bit one cell towards cell 2 and put the new bit in cell 0.
Hint 2
Leave the update stages alone during a shift and during a capture.
Hint 3
The scan output shows cell 2. Each further shift brings the next cell.
What the grader checks: Each check compares the full eight-bit answer. Parameter trials change one condition and keep the other decisions fixed.
13 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 1 problem on this path