S8.2.3 Walk to Shift-DR

EasyImplement12 minIcarus Verilog · serverReview the topic

Recover the position of a scan after a pause, a detour or a reset.

Hardware context: Two TAPs on the ap_soc board scan chain. Identifying devices on an assembled board

Read every TMS string in time order from left to right. For a state question, report the code after the final rise. For a length question, count only shift edges.

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
State codeNameTMS 0 leads toTMS 1 leads to
0ResetIdleReset
1IdleIdleSelect-DR
2Select-DRCapture-DRSelect-IR
3Capture-DRShift-DRExit1-DR
4Shift-DRShift-DRExit1-DR
5Exit1-DRPause-DRUpdate-DR
6Pause-DRPause-DRExit2-DR
7Exit2-DRShift-DRUpdate-DR
8Update-DRIdleSelect-DR
9Select-IRCapture-IRReset
10Capture-IRShift-IRExit1-IR
11Shift-IRShift-IRExit1-IR
12Exit1-IRPause-IRUpdate-IR
13Pause-IRPause-IRExit2-IR
14Exit2-IRShift-IRUpdate-IR
15Update-IRIdleSelect-DR
EntryYour decision
WAKEStart in Reset. Clock 0.
SELECTStart in Idle. Clock 1.
LOADStart in Select-DR. Clock 0.
ENTERStart in Capture-DR. Clock 0.
HOLDStart in Shift-DR. Clock 000.
LEAVEStart in Shift-DR. Clock 1.
PARKStart in Exit1-DR. Clock 00.
REJOINStart in Pause-DR. Clock 10.
COMMITStart in Exit2-DR. Clock 1.
AGAINStart in Update-DR. Clock 100.
RECOVERStart in Shift-IR. Clock 11111.
MIXEDOnce in Shift-DR, how many shift edges read the entire chain of one 32-bit ID and two one-bit BYPASS stages?
BOTH_IDSHow many shift edges read two 32-bit IDCODE registers in one chain?
IR_LENGTHThe selected instruction registers have lengths 2 and 5. How many Shift-IR edges fill both?
ARRIVALStart in Idle and apply the first EDGES bits of 100. Which state have you reached?

Examples

Example 1

WAKE
Input
Start in Reset. Clock 0.
Output
answer = 1

The last edge lands in Idle, code 1.

Example 2

SELECT
Input
Start in Idle. Clock 1.
Output
answer = 2

The last edge lands in Select-DR, code 2.

Example 3

LOAD
Input
Start in Select-DR. Clock 0.
Output
answer = 3

The last edge lands in Capture-DR, code 3.

Constraints and Contract

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

Hints

Hint 1

Mark the stated initial state.

Hint 2

Choose one outgoing arc per digit.

Hint 3

Enter the state occupied after the final rise.

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

21 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 3 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

WAKE

Input
Start in Reset. Clock 0.
Expected output
answer = 1

The last edge lands in Idle, code 1.

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

Icarus Verilog · server