VF.6.1 The Readiness Check

EasyImplement12 minIcarus Verilog · serverReview the topic

One question from each road into the track: SystemVerilog, C, the chip, buses, UVM, clock crossings and coverage. A wrong answer names the lesson to read first.

Hardware context: The SoC Verification track as a map, with the lessons each module stands on. A readiness check across the track.

Answer each entry with a number. Each one is a prerequisite of a module of SoC Verification; the lesson's readiness table names the lesson that teaches it. UVM codes are in the table. PINMUX gives pad IOn two bits at bits 2n + 1 to 2n: 0 released, 1 GPIO, 2 serial, 3 auxiliary.

This worksheet uses named constants. The first three entries show how to record your decisions.

Replace each unresolved value of 4294967295 with your result.

Signals in the Timeline

SignalWidthRole
question8input of each check
Full specification
CodeUVM part
1A sequence
2A driver
3A monitor
4A scoreboard
EntryYour decision
MASKEDAn 8-bit register stores wdata & 8'h7f. It is written with 8'h80. What does it read?
AFTER_RESETThe same register resets to 8'h00. What does it read after reset?
C_MASKIn C, what is 0x3C & 0x0F, in decimal?
RX_PINMUXThe PINMUX value that gives pad IO1 the serial function and releases every other pad.
CHIP_ID_ATAddress of CHIP_ID on ap_soc.
UART_SOURCEThe ap_plic input of UART0.
APB_CYCLESHow many clock cycles does an APB transfer with no wait state take?
UVM_PINSCode of the UVM part that turns transactions into values on the pins.
SYNC_FLOPSHow many flip-flops does a basic synchronizer for one bit use?
MAIN_WORDThe TB_STATUS value start-up code writes just before main.
GPIO_PADThe PINMUX value that gives pad IO N the GPIO function and releases every other pad.

Examples

Example 1

MASKED
Input
An 8-bit register stores wdata & 8'h7f. It is written with 8'h80. What does it read?
Output
matches = 1

Bit 7 is dropped and no other bit is set.

Example 2

AFTER RESET
Input
The same register resets to 8'h00. What does it read after reset?
Output
matches = 1

The reset value.

Example 3

C MASK
Input
In C, what is 0x3C & 0x0F, in decimal?
Output
matches = 1

0x3C & 0x0F = 0x0C = 12.

Constraints and Contract

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

Hints

Hint 1

Masks and shifts are the C and SystemVerilog of every chip test.

Hint 2

Addresses and interrupt inputs come from the map and irq.csv.

Hint 3

APB in two cycles; a driver drives, a monitor watches.

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

15 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

MASKED

Input
An 8-bit register stores wdata & 8'h7f. It is written with 8'h80. What does it read?
Expected output
matches = 1

Bit 7 is dropped and no other bit is set.

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

Icarus Verilog · server