Read the chip's recorded code and toggle report: what to count, what to ignore, and what it cost.
Hardware context: The structural coverage build of ap_soc v1.5: per-instance line, branch and toggle counters. Reading a toggle report with tied ports.
Recorded on ap_soc v1.5: the eight runs of the E11 suite on the structural coverage build. It counts lines, branches and toggles per instance (Verilator 5.053 devel). Percentages round down.
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 | How to read the point |
|---|---|
| 1 | A port tied by integration: list it with its reason, then ignore it |
| 2 | A hole a test can close |
| 3 | Alive: toggled both ways |
| 4 | Logic the chip does not use: argue it out of the count with the design team |
| Port | 0 to 1 | 1 to 0 |
|---|---|---|
| u_timer.online | 8 | 0 |
| u_timer.pwm | 5 | 5 |
| u_timer.event_in | 0 | 0 |
| u_crg.debug_reset_req | 0 | 0 |
| u_crg.soft_reset_req | 0 | 0 |
| u_crg.uart_gate.enable | 8 | 0 |
| Block | Line | Branch | Toggle directions |
|---|---|---|---|
| u_timer | 17/17 | 26/32 | 427/998 |
| u_dm | 2/12 | 8/30 | 13/772 |
| u_tap | 4/27 | 4/50 | 6/268 |
| u_fabric | 61/62 | 265/306 | 8896/16294 |
The §6.2 loop runs 1,300,028 system cycles. Medians of three runs: bare coverage tool 5.475 s, functional sampler 5.645 s, structural build 14.45 s.
| Entry | Your decision |
|---|---|
| ONLINE | u_timer.online: tied high by connect.csv. |
| PWM | u_timer.pwm. |
| EVENT_IN | u_timer.event_in: the event pin, routed from pad IO4 by PINMUX select 3. |
| DEBUG_REQ | u_crg.debug_reset_req: tied low in v1.5. |
| SOFT_REQ | u_crg.soft_reset_req. |
| UART_GATE | u_crg.uart_gate.enable: rose but never fell. |
| TIMER_TOGGLE | u_timer toggle coverage, percent. |
| DM_LINE | u_dm line coverage, percent. |
| COST | Structural build time as a percent of the bare tool on the loop. |
| BLOCK_PCT | Toggle coverage of one block, in percent rounded down. K picks it: 0 u_timer, 1 u_dm, 2 u_tap, 3 u_fabric (the table above). |
Examples
Example 1
ONLINE- Input
u_timer.online: tied high by connect.csv.
- Output
matches = 1
It cannot fall on this chip; the report lists it with its integration reason.
Example 2
PWM- Input
u_timer.pwm.
- Output
matches = 1
Both directions counted.
Example 3
EVENT IN- Input
u_timer.event_in: the event pin, routed from pad IO4 by PINMUX select 3.
- Output
matches = 1
A routed function no test used: a test that selects it and pulses the pad closes it.
Constraints and Contract
- Keep the parameter and named constants. Use the numeric codes and units on this page.
- For BLOCK_PCT, enter a constant expression using K. Only this entry changes with the parameter. The supported integer range is 0 through 3, inclusive.
Hints
Hint 1
A port tied by connect.csv can never toggle: list it, do not chase it.
Hint 2
A routed function that never moved is a test to write.
Hint 3
Percent is hit over total; cost is time over the bare build.
What the grader checks: Each check compares the full eight-bit answer. Parameter trials change one condition and keep the other decisions fixed.
14 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