VF.3.2 Read the Run

EasyImplement12 minIcarus Verilog · serverReview the topic

Read the recorded run of the tour's test. Put its steps in order, then read its console, its status words and its result block.

Hardware context: One C test on ap_soc v1.5, from power-good to the pass word. Reading a run's timeline and result block.

The run is the one of lesson VF.3: first_test.c on ap_soc v1.5 (soc_tb, Verilator 5.052). Its console lines were "CONSOLE 375: hello from ap_soc" and "CONSOLE 691: byte sent". Its result block said visited = 0099, uart_bytes = 1. Event codes are in the table. Verdict codes: 1 pass, 2 fail.

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
CodeEvent
1The PLL locks
2The bus leaves reset
3The core leaves reset
4The core fetches its first instruction
5Start-up code writes TB_STATUS = 2
6The pass word is written
Visited bitRegion
0boot ROM
1ap_clint
2ap_plic
3SRAM
4UART0
5GPIO
6timer
7ap_sysctl
8SPI
9DMA
10watchdog
11ap_pwrctl
EntryYour decision
FIRSTCode of the first event of the six.
SECONDCode of the second event.
LASTCode of the last event.
MAIN_CYCLEThe cycle at which start-up code wrote TB_STATUS = 2.
CONSOLE_BYTESconsole_bytes in the result block.
REGIONSHow many regions did the run touch?
UART_BITWhich visited bit says the run touched UART0?
PASS_WORDThe value of the pass word.
FAIL_CODEA run ends with TB_STATUS = 0xBAD0_0007. Enter its fail code.
TEXT_ONLYA run prints every expected line but its reason is "checker". Verdict code.
NO_WORDA run prints both lines but never writes a pass or fail word. Verdict code.
BYTESA changed test prints a first line of L characters, then "byte sent". Each line ends with a newline. Enter console_bytes.

Examples

Example 1

FIRST
Input
Code of the first event of the six.
Output
matches = 1

The PLL locks before the bus or the core leaves reset.

Example 2

SECOND
Input
Code of the second event.
Output
matches = 1

The bus leaves reset before the core.

Example 3

LAST
Input
Code of the last event.
Output
matches = 1

The pass word ends the test.

Constraints and Contract

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

Hints

Hint 1

Clocks, then the bus reset, then the core, then the first fetch.

Hint 2

verdict and reason decide; the console is only text.

Hint 3

console_bytes counts every character written, newlines included.

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

16 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

FIRST

Input
Code of the first event of the six.
Expected output
matches = 1

The PLL locks before the bus or the core leaves reset.

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

Icarus Verilog · server