V3.1.1 The Parts of the Bench

EasyImplement12 minIcarus Verilog · serverReview the topic

Sort the parts of soc_tb into active models, passive checkers, bench control and test front ends. Then count what one recorded run made them do.

Hardware context: soc_tb, the bench around ap_soc v1.5: pad models, checkers, loader, end of test. Sorting the parts of a chip bench and reading one run's result block.

Work from the picture of the bench in lesson V3.1 and the bench manual. Part codes are in the table. Counts come from one recorded run of ap_soc v1.5, the lesson's lab. An assembly program sends a byte on the UART, reads the SPI flash, loops a GPIO pad and receives a byte. Meanwhile the bench reads IDCODE over JTAG.

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
CodeKind of part
1Active: a model on the pads that drives the chip
2Passive: a checker or monitor that only reads
3Bench control: clocks and reset, loader, end of test
4A test front end: what the test is written in
Recorded run (Verilator 5.052, the pre-built bench)Value
verdict, reasonpass, pass
records compared with the model511
bytes on the UART TX pad1
SPI frames1
JTAG scans1
lines "checker: ..." the passive checkers printed at the end11
EntryYour decision
UART_MODELThe UART model on IO0 and IO1.
AHB_CHECKERThe P4 AHB checker on a manager port.
LOADERThe loading of the +rom and +ram images before the first instruction.
JTAG_HOSTThe JTAG host on the four JTAG pads.
MAILBOXThe monitor of writes to TB_STATUS, TB_PUTC and TB_EVENT.
END_RULESThe order of authority that decides how a run ends.
TABLEThe sequence table on the bus-manager seat.
MODEL_COMPAREThe retire trace compared with ap_iss.
AHB_COUNTHow many AHB checkers does soc_tb place (four manager ports and five target ports)?
APB_COUNTHow many APB checkers?
COMPAREDHow many records did the model compare in the recorded run?
CHECKER_LINESHow many "checker: ..." lines did the run print?
CHECKERSA chip with N AHB managers and the five AHB targets of ap_soc. How many AHB checkers does a bench in the style of soc_tb place?

Examples

Example 1

UART MODEL
Input
The UART model on IO0 and IO1.
Output
matches = 1

It drives the chip's receive pad and listens to its transmit pad.

Example 2

AHB CHECKER
Input
The P4 AHB checker on a manager port.
Output
matches = 1

It reads the port and drives nothing.

Example 3

LOADER
Input
The loading of the +rom and +ram images before the first instruction.
Output
matches = 1

Bench control: the image arrives by the back door.

Constraints and Contract

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

Hints

Hint 1

A part that drives a pad is active. One that only reads is passive.

Hint 2

Clocks, loading and the end of a test belong to the bench itself.

Hint 3

The result block and the checkers' last lines say what each part did.

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

17 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

UART MODEL

Input
The UART model on IO0 and IO1.
Expected output
matches = 1

It drives the chip's receive pad and listens to its transmit pad.

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

Icarus Verilog · server