S8.12.1 Work a Boundary Chain by Hand

EasyImplement12 minIcarus Verilog · serverReview the topic

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

SignalWidthRole
question8input of each check
Full specification
StepWhat the tester does
1Preload: shifts in 0, 0, 0, then one update.
2Shifts in 1, then 1, then 0.
3One update.
4One capture. The board holds pin 2 low, pin 1 high and pin 0 high.
5Shifts 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.

EntryYour decision
AFTER_1The shift stages after the first shift of step 2, as a decimal number.
AFTER_2The shift stages after the second shift of step 2.
AFTER_3The shift stages after the third shift of step 2.
DRIVERS_STEP2The update stages at the end of step 2.
DRIVERS_STEP3The update stages after step 3.
DRIVERS_ONHow many drivers are on after step 3?
CAPTUREDThe shift stages after the capture.
DRIVERS_STEP4The update stages after the capture.
OUT_1The first bit on the scan output in step 5.
OUT_2The second bit on the scan output.
OUT_3The third bit on the scan output.
PULSESHow many clock pulses do the five steps take in all?
PULSES_NSuppose 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

Report a problem with this page

Your code SystemVerilogSaved locally
Ln 1, Col 1Tab indents · Ctrl/⌘ + Enter runs samples
Not run yet

AFTER 1

Input
The shift stages after the first shift of step 2, as a decimal number.
Expected output
matches = 1

The 1 is in cell 0: 001.

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

Icarus Verilog · server