V3.6.2 What Comes Along from the Block Bench

MediumImplement22 minIcarus Verilog · serverReview the topic

Decide which parts of a block's UVM environment come along into the chip bench, go passive, stay behind or must be replaced. Then read the numbers of the chip's own UVM environment.

Hardware context: The UVM environment of soc_tb and a UART0 block environment reused in it. Sorting a block environment for chip-level reuse.

The UART0 block had a UVM environment. An APB agent (driver, sequencer, monitor) wrote its registers, and a UART pad agent played the pads. There were a register model, sequences, and a scoreboard that took its expected bytes from the APB driver. Now it is reused in soc_tb, where the fabric drives UART0's registers. Codes are in the table. Numbers come from the bench manual and the E7 gate (plan §3.10).

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
CodeAt chip level the part
1Comes along unchanged
2Comes along, passive: its driver and sequencer stay behind
3Stays behind: the chip does this job now
4Is replaced at chip level
soc_uvm (stage E7)Value
Registers in the generated register model79
Registers with a back door6
Handles in soc_vsequencer: bus, uart, gpio, jtag, regs, api6
UVM tests2
Build, laptop at -O0 (E7 gate, three builds)49 to 73 s
Limit of one UVM build on the site240 s
EntryYour decision
APB_MONITORThe block's APB monitor.
APB_DRIVERThe block's APB driver.
APB_AGENTThe APB agent as a whole.
SB_EXPECTThe scoreboard's expected bytes, taken from the APB driver.
REG_MODELUART0's register model.
RESET_DRIVEThe block bench's task that pulled UART0's reset.
PAD_AGENTThe UART pad agent on TX and RX.
PASSIVE_VALUEThe value of uvm_active_passive_enum for UVM_PASSIVE.
REGSRegisters in the chip's generated register model.
BACKDOORRegisters that have a back door in that model.
HANDLESHandles the virtual sequencer holds.
LIMITSeconds a learner's UVM build may take on the site.
NEW_PARTChoose the code for one more part of the block environment. K = 0: a sequence that wrote TXDATA through the APB driver. K = 1: a coverage collector fed by the APB monitor. K = 2: a check in the driver that every write answered OKAY.

Examples

Example 1

APB MONITOR
Input
The block's APB monitor.
Output
matches = 1

It only reads; at chip level it watches the fabric's writes to UART0.

Example 2

APB DRIVER
Input
The block's APB driver.
Output
matches = 1

The chip's fabric drives UART0's APB port now; a second driver would fight it.

Example 3

APB AGENT
Input
The APB agent as a whole.
Output
matches = 1

is_active set to passive: the monitor is built, the driver and sequencer are not.

Constraints and Contract

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

Hints

Hint 1

At chip level the fabric does, so the block's driver stays behind.

Hint 2

Monitors and their subscribers come along.

Hint 3

Anything fed by the driver must be fed by a monitor instead.

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 2 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

APB MONITOR

Input
The block's APB monitor.
Expected output
matches = 1

It only reads; at chip level it watches the fabric's writes to UART0.

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

Icarus Verilog · server