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
| Signal | Width | Role |
|---|---|---|
question | 8 | input of each check |
Full specification
| Code | At chip level the part |
|---|---|
| 1 | Comes along unchanged |
| 2 | Comes along, passive: its driver and sequencer stay behind |
| 3 | Stays behind: the chip does this job now |
| 4 | Is replaced at chip level |
| soc_uvm (stage E7) | Value |
|---|---|
| Registers in the generated register model | 79 |
| Registers with a back door | 6 |
| Handles in soc_vsequencer: bus, uart, gpio, jtag, regs, api | 6 |
| UVM tests | 2 |
| Build, laptop at -O0 (E7 gate, three builds) | 49 to 73 s |
| Limit of one UVM build on the site | 240 s |
| Entry | Your decision |
|---|---|
| APB_MONITOR | The block's APB monitor. |
| APB_DRIVER | The block's APB driver. |
| APB_AGENT | The APB agent as a whole. |
| SB_EXPECT | The scoreboard's expected bytes, taken from the APB driver. |
| REG_MODEL | UART0's register model. |
| RESET_DRIVE | The block bench's task that pulled UART0's reset. |
| PAD_AGENT | The UART pad agent on TX and RX. |
| PASSIVE_VALUE | The value of uvm_active_passive_enum for UVM_PASSIVE. |
| REGS | Registers in the chip's generated register model. |
| BACKDOOR | Registers that have a back door in that model. |
| HANDLES | Handles the virtual sequencer holds. |
| LIMIT | Seconds a learner's UVM build may take on the site. |
| NEW_PART | Choose 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