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
| Signal | Width | Role |
|---|---|---|
question | 8 | input of each check |
Full specification
| Code | Event |
|---|---|
| 1 | The PLL locks |
| 2 | The bus leaves reset |
| 3 | The core leaves reset |
| 4 | The core fetches its first instruction |
| 5 | Start-up code writes TB_STATUS = 2 |
| 6 | The pass word is written |
| Visited bit | Region |
|---|---|
| 0 | boot ROM |
| 1 | ap_clint |
| 2 | ap_plic |
| 3 | SRAM |
| 4 | UART0 |
| 5 | GPIO |
| 6 | timer |
| 7 | ap_sysctl |
| 8 | SPI |
| 9 | DMA |
| 10 | watchdog |
| 11 | ap_pwrctl |
| Entry | Your decision |
|---|---|
| FIRST | Code of the first event of the six. |
| SECOND | Code of the second event. |
| LAST | Code of the last event. |
| MAIN_CYCLE | The cycle at which start-up code wrote TB_STATUS = 2. |
| CONSOLE_BYTES | console_bytes in the result block. |
| REGIONS | How many regions did the run touch? |
| UART_BIT | Which visited bit says the run touched UART0? |
| PASS_WORD | The value of the pass word. |
| FAIL_CODE | A run ends with TB_STATUS = 0xBAD0_0007. Enter its fail code. |
| TEXT_ONLY | A run prints every expected line but its reason is "checker". Verdict code. |
| NO_WORD | A run prints both lines but never writes a pass or fail word. Verdict code. |
| BYTES | A 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