Turn the register description of three blocks into a reset check. Check every reset value under the right mask, every access that must answer ERROR, and a hole in each page.
Hardware context: The register description of ap_soc v1.5 (regs/*.json, the register-model table) turned into a sweep. A reset check of three blocks from their description.
The table below is the register-model description of UART0, GPIO and ap_sysctl, one line per field. Write the reset check it implies, as a sequence table for the bus-manager seat. The table runs straight after reset.
Read every register that has a readable field. Check each field that has a reset value and does not move by itself. Where the reads of a register answer ERROR, check that a read does; do the same for writes. Leave TB_STATUS, TB_PUTC and TB_EVENT alone: the bench reads a meaning into them. Last, offset 0xFFC of each page holds no register: check that it answers ERROR to a read and to a write.
This is ap_soc's rule for a wrong access (facts 27.6): an error, not a silent zero. Hidden faulty chips each break one thing your check covers.
Full specification
| Register | Address | Field | Bits | Access | Reset | Moves by itself | A read | A write |
|---|---|---|---|---|---|---|---|---|
| TXDATA | 0x1000_0000 | data | 7:0 | wo | — | no | ERROR | OKAY |
| STATUS | 0x1000_0004 | room | 0 | ro | — | yes | OKAY | ERROR |
| STATUS | 0x1000_0004 | rx_ready | 1 | ro | — | yes | OKAY | ERROR |
| STATUS | 0x1000_0004 | rx_full | 2 | ro | — | yes | OKAY | ERROR |
| IRQ_ENABLE | 0x1000_0008 | room | 0 | rw | 0x0 | no | OKAY | OKAY |
| IRQ_ENABLE | 0x1000_0008 | rx_ready | 1 | rw | 0x0 | no | OKAY | OKAY |
| RXDATA | 0x1000_000c | data | 7:0 | ro | — | yes | OKAY | ERROR |
| DIV | 0x1000_0010 | cycles | 15:0 | rw | 0x10 | no | OKAY | OKAY |
| DIR | 0x1000_1000 | value | 15:0 | rw | 0x0 | no | OKAY | OKAY |
| IN | 0x1000_1004 | value | 15:0 | ro | — | yes | OKAY | ERROR |
| OUT | 0x1000_1008 | value | 15:0 | rw | 0x0 | no | OKAY | OKAY |
| SET | 0x1000_100c | value | 15:0 | w1s | — | no | ERROR | OKAY |
| CLR | 0x1000_1010 | value | 15:0 | w1c | — | no | ERROR | OKAY |
| TGL | 0x1000_1014 | value | 15:0 | w1t | — | no | ERROR | OKAY |
| IRQ_ENABLE | 0x1000_1018 | value | 15:0 | rw | 0x0 | no | OKAY | OKAY |
| LEVEL_MODE | 0x1000_101c | value | 15:0 | rw | 0x0 | no | OKAY | OKAY |
| ACTIVE_HIGH | 0x1000_1020 | value | 15:0 | rw | 0xffff | no | OKAY | OKAY |
| STATUS | 0x1000_1024 | value | 15:0 | w1c | — | yes | OKAY | OKAY |
| MASKED_STATUS | 0x1000_1028 | value | 15:0 | ro | — | yes | OKAY | ERROR |
| CHIP_ID | 0x1000_4000 | value | 31:0 | ro | 0x2a5310c5 | no | OKAY | ERROR |
| RESET_CAUSE | 0x1000_4004 | power_on | 0 | ro | — | yes | OKAY | ERROR |
| RESET_CAUSE | 0x1000_4004 | pin | 1 | ro | — | yes | OKAY | ERROR |
| RESET_CAUSE | 0x1000_4004 | watchdog | 2 | ro | — | yes | OKAY | ERROR |
| RESET_CAUSE | 0x1000_4004 | software | 3 | ro | — | yes | OKAY | ERROR |
| RESET_CAUSE | 0x1000_4004 | debug | 4 | ro | — | yes | OKAY | ERROR |
| SOFT_RESET | 0x1000_4008 | timer | 0 | wo | — | no | ERROR | OKAY |
| SOFT_RESET | 0x1000_4008 | chip | 1 | wo | — | no | ERROR | OKAY |
| STRAPS | 0x1000_400c | boot | 0 | ro | — | yes | OKAY | ERROR |
| PINMUX | 0x1000_4010 | select | 31:0 | rw | 0x0 | no | OKAY | OKAY |
| CLK_GATE | 0x1000_4014 | uart0 | 0 | rw | 0x1 | no | OKAY | OKAY |
| CLK_GATE | 0x1000_4014 | gpio | 1 | rw | 0x1 | no | OKAY | OKAY |
| CLK_GATE | 0x1000_4014 | timer | 2 | rw | 0x1 | no | OKAY | OKAY |
| CLK_GATE | 0x1000_4014 | spi | 3 | rw | 0x1 | no | OKAY | OKAY |
| CLK_GATE | 0x1000_4014 | dma | 4 | rw | 0x1 | no | OKAY | OKAY |
| LOCK | 0x1000_4018 | pinmux | 0 | w1s | 0x0 | no | OKAY | OKAY |
| LOCK | 0x1000_4018 | clk_gate | 1 | w1s | 0x0 | no | OKAY | OKAY |
| LOCK | 0x1000_4018 | debug | 2 | w1s | 0x0 | no | OKAY | OKAY |
| TB_STATUS | 0x1000_4020 | value | 31:0 | rw | 0x0 | no | OKAY | OKAY |
| TB_PUTC | 0x1000_4024 | value | 31:0 | rw | 0x0 | no | OKAY | OKAY |
| TB_EVENT | 0x1000_4028 | value | 31:0 | rw | 0x0 | no | OKAY | OKAY |
| TB_ARG | 0x1000_402c | value | 31:0 | rw | 0x0 | no | OKAY | OKAY |
Bits shows the field's position. A read or a write of ERROR means the register has no readable or no writable field. "Moves by itself" marks a field the hardware changes; mask it out of a reset read.
Rows: who op address data mask expect delay repeat (two words, four hex numbers, two decimal numbers). A core r row checks (value & mask) == (expect & mask). Rows core re and core we must answer ERROR. A core poll row reads until the masked value matches, at most data reads. The bench manual lists every row.
Given Files
Read-only files supplied by the bench.
The sequence table · bench manual
One row a line: who op address data mask expect delay repeat. Two words, four hex numbers, two decimal numbers. delay: cycles to wait before the row. repeat: how often the row runs. A line that starts with # is a comment. With +core=bfm the table is the test: the bench writes TB_STATUS = 2 before the first row and the pass or fail word after the last. With +core=cpu a table holds the bench's side of a firmware test.
| who | op | Meaning |
|---|---|---|
core | w wh wb | Write a word, a half, a byte of data at address; the answer must be OKAY |
core | r rh rb | Read; (value & mask) must equal (expect & mask) |
core | we re | Write or read that must answer ERROR |
core | wq rq | As w and r, with the next row's address phase on this row's data phase (back to back) |
core | poll | Read until the masked value is the expected one; data = the most reads (0: 1,000) |
core | irq | The interrupt pins now (bit 0 software, 1 timer, 2 external) against mask and expect |
core | wait_irq | Wait until a pin of mask is high; data = the most cycles |
core | idle | End a back-to-back run |
dma | copy | One job from address to data of mask bytes; STATUS must be expect (2 DONE, 4 FAULT) |
jtag | idcode | TAP reset, read IDCODE, compare |
jtag | halt resume step | Debug control (a halt waits for the core) |
jtag | rr rw | Read or write the register numbered address (0x1000 + n, a CSR, 0x7b0, 0x7b1) |
jtag | stream | Start background word reads at address A, count D, maximum random gap M, expected word E |
tb | wait_release | Wait for the system bus and core resets to release. Seat tables also hold each row at dispatch during reset. |
tb | watchdog | Set the seat stall limit to data system clocks (zero disables it). A stalled request reports its row, address and direction. |
tb | gaps | Maximum random gap D before each seat row, in system cycles (0 disables gaps) |
jtag | mr mw | Read or write a word of memory through the debug manager |
jtag | arm status | "Halt at reset" = data; {halted, error, busy} against mask and expect |
jtag | cmd | Command number address (0 to 7, facts 27.10) with the word data; its reply against mask and expect |
tb | uart_send | Send the byte data to the chip |
tb | uart_expect | The next byte from the chip must be expect; address = the most bit times to wait |
tb | gpio_set gpio_pulse | Pad address to level data; a pulse of data cycles of CLK |
tb | gpio_expect | The sixteen pads against mask and expect |
tb | reset supply | The reset pin, or the supply, for data cycles of CLK |
tb | wait_event | Wait until the test writes address to TB_EVENT |
tb | arg | Deposit data in TB_ARG |
tb | wait_status | Wait until (TB_STATUS & mask) equals (expect & mask) |
tb | poke peek | Back-door write of mask bytes (0: 4) of data; back-door read against mask, expect |
tb | wait | Only the delay |
sym | a symbol name | Back-door write of data to that C variable, with the symbol's size |
core and dma rows need +core=bfm. soc-rows.mjs turns a list of core and tb rows into both forms: a table for the seat, or a table in SRAM for an interpreter in ROM, with a hand-shake wherever the list goes from one side to the other.
## The sequence table
One row a line: `who op address data mask expect delay repeat`. Two words, four hex numbers, two decimal
numbers. `delay`: cycles to wait before the row. `repeat`: how often the row runs. A line that starts with `# `
is a comment. With `+core=bfm` the table is the test: the bench writes TB_STATUS = 2 before the first row and
the pass or fail word after the last. With `+core=cpu` a table holds the bench's side of a firmware test.
| who | op | Meaning |
| --- | --- | --- |
| `core` | `w` `wh` `wb` | Write a word, a half, a byte of `data` at `address`; the answer must be OKAY |
| `core` | `r` `rh` `rb` | Read; `(value & mask)` must equal `(expect & mask)` |
| `core` | `we` `re` | Write or read that must answer ERROR |
| `core` | `wq` `rq` | As `w` and `r`, with the next row's address phase on this row's data phase (back to back) |
| `core` | `poll` | Read until the masked value is the expected one; `data` = the most reads (0: 1,000) |
| `core` | `irq` | The interrupt pins now (bit 0 software, 1 timer, 2 external) against `mask` and `expect` |
| `core` | `wait_irq` | Wait until a pin of `mask` is high; `data` = the most cycles |
| `core` | `idle` | End a back-to-back run |
| `dma` | `copy` | One job from `address` to `data` of `mask` bytes; STATUS must be `expect` (2 DONE, 4 FAULT) |
| `jtag` | `idcode` | TAP reset, read IDCODE, compare |
| `jtag` | `halt` `resume` `step` | Debug control (a halt waits for the core) |
| `jtag` | `rr` `rw` | Read or write the register numbered `address` (`0x1000 + n`, a CSR, `0x7b0`, `0x7b1`) |
| `jtag` | `stream` | Start background word reads at address A, count D, maximum random gap M, expected word E |
| `tb` | `wait_release` | Wait for the system bus and core resets to release. Seat tables also hold each row at dispatch during reset. |
| `tb` | `watchdog` | Set the seat stall limit to `data` system clocks (zero disables it). A stalled request reports its row, address and direction. |
| `tb` | `gaps` | Maximum random gap D before each seat row, in system cycles (0 disables gaps) |
| `jtag` | `mr` `mw` | Read or write a word of memory through the debug manager |
| `jtag` | `arm` `status` | "Halt at reset" = `data`; `{halted, error, busy}` against `mask` and `expect` |
| `jtag` | `cmd` | Command number `address` (0 to 7, facts 27.10) with the word `data`; its reply against `mask` and `expect` |
| `tb` | `uart_send` | Send the byte `data` to the chip |
| `tb` | `uart_expect` | The next byte from the chip must be `expect`; `address` = the most bit times to wait |
| `tb` | `gpio_set` `gpio_pulse` | Pad `address` to level `data`; a pulse of `data` cycles of CLK |
| `tb` | `gpio_expect` | The sixteen pads against `mask` and `expect` |
| `tb` | `reset` `supply` | The reset pin, or the supply, for `data` cycles of CLK |
| `tb` | `wait_event` | Wait until the test writes `address` to TB_EVENT |
| `tb` | `arg` | Deposit `data` in TB_ARG |
| `tb` | `wait_status` | Wait until `(TB_STATUS & mask)` equals `(expect & mask)` |
| `tb` | `poke` `peek` | Back-door write of `mask` bytes (0: 4) of `data`; back-door read against `mask`, `expect` |
| `tb` | `wait` | Only the delay |
| `sym` | a symbol name | Back-door write of `data` to that C variable, with the symbol's size |
`core` and `dma` rows need `+core=bfm`. `soc-rows.mjs` turns a list of `core` and `tb` rows into both forms: a
table for the seat, or a table in SRAM for an interpreter in ROM, with a hand-shake wherever the list goes from
one side to the other.
UART0 · register manual
| Offset | Register | Bits | Field | Access | Reset | Held by | Meaning |
|---|---|---|---|---|---|---|---|
0x000 | TXDATA | 7:0 | data | wo | not stored | The low byte is the next byte to send. Byte to send. | |
0x004 | STATUS | 0 | room | ro | block | Transmit room and receive queue state. The transmitter can take a byte. | |
0x004 | STATUS | 1 | rx_ready | ro | block | At least one received byte waits. | |
0x004 | STATUS | 2 | rx_full | ro | block | The receive queue is full. | |
0x008 | IRQ_ENABLE | 0 | room | rw | 0x0 | regs | Which status bits raise interrupt source 1. ROOM raises the request. |
0x008 | IRQ_ENABLE | 1 | rx_ready | rw | 0x0 | regs | RX_READY raises the request (new in v1.5). |
0x00C | RXDATA | 7:0 | data | ro | block | The oldest received byte. The read removes it from the queue. Received byte. | |
0x010 | DIV | 15:0 | cycles | rw | 0x0010 | regs | Bit time in clk_sys cycles (new in v1.5). clk_sys cycles a bit. |
## UART0 (base 0x1000_0000, interrupt source 1, clk_sys, PD_MAIN) | Offset | Register | Bits | Field | Access | Reset | Held by | Meaning | | --- | --- | --- | --- | --- | --- | --- | --- | | `0x000` | TXDATA | 7:0 | data | wo | | not stored | The low byte is the next byte to send. Byte to send. | | `0x004` | STATUS | 0 | room | ro | | block | Transmit room and receive queue state. The transmitter can take a byte. | | `0x004` | STATUS | 1 | rx_ready | ro | | block | At least one received byte waits. | | `0x004` | STATUS | 2 | rx_full | ro | | block | The receive queue is full. | | `0x008` | IRQ_ENABLE | 0 | room | rw | `0x0` | regs | Which status bits raise interrupt source 1. ROOM raises the request. | | `0x008` | IRQ_ENABLE | 1 | rx_ready | rw | `0x0` | regs | RX_READY raises the request (new in v1.5). | | `0x00C` | RXDATA | 7:0 | data | ro | | block | The oldest received byte. The read removes it from the queue. Received byte. | | `0x010` | DIV | 15:0 | cycles | rw | `0x0010` | regs | Bit time in clk_sys cycles (new in v1.5). clk_sys cycles a bit. |
GPIO · register manual
| Offset | Register | Bits | Field | Access | Reset | Held by | Meaning |
|---|---|---|---|---|---|---|---|
0x000 | DIR | 15:0 | value | rw | 0x0000 | regs | 1 turns the output driver of that pin on. One bit for each pin. |
0x004 | IN | 15:0 | value | ro | block | The pin levels, after two sampling flip-flops. One bit for each pin. | |
0x008 | OUT | 15:0 | value | rw | 0x0000 | regs | The saved output value. One bit for each pin. |
0x00C | SET | 15:0 | value | w1s | acts on OUT.value | A 1 sets that bit of OUT. One bit for each pin. | |
0x010 | CLR | 15:0 | value | w1c | acts on OUT.value | A 1 clears that bit of OUT. One bit for each pin. | |
0x014 | TGL | 15:0 | value | w1t | acts on OUT.value | A 1 inverts that bit of OUT. One bit for each pin. | |
0x018 | IRQ_ENABLE | 15:0 | value | rw | 0x0000 | regs | A 1 lets that pin's status bit raise interrupt source 2. One bit for each pin. |
0x01C | LEVEL_MODE | 15:0 | value | rw | 0x0000 | regs | 1: the pin is a level cause. 0: an edge cause. One bit for each pin. |
0x020 | ACTIVE_HIGH | 15:0 | value | rw | 0xFFFF | regs | 1: a high level, or a rising edge, is the event. One bit for each pin. |
0x024 | STATUS | 15:0 | value | w1c | block | Raw status. A written 1 clears the saved edge flag of that pin. One bit for each pin. | |
0x028 | MASKED_STATUS | 15:0 | value | ro | block | STATUS AND IRQ_ENABLE. One bit for each pin. |
## GPIO (base 0x1000_1000, interrupt source 2, clk_sys, PD_MAIN) | Offset | Register | Bits | Field | Access | Reset | Held by | Meaning | | --- | --- | --- | --- | --- | --- | --- | --- | | `0x000` | DIR | 15:0 | value | rw | `0x0000` | regs | 1 turns the output driver of that pin on. One bit for each pin. | | `0x004` | IN | 15:0 | value | ro | | block | The pin levels, after two sampling flip-flops. One bit for each pin. | | `0x008` | OUT | 15:0 | value | rw | `0x0000` | regs | The saved output value. One bit for each pin. | | `0x00C` | SET | 15:0 | value | w1s | | acts on OUT.value | A 1 sets that bit of OUT. One bit for each pin. | | `0x010` | CLR | 15:0 | value | w1c | | acts on OUT.value | A 1 clears that bit of OUT. One bit for each pin. | | `0x014` | TGL | 15:0 | value | w1t | | acts on OUT.value | A 1 inverts that bit of OUT. One bit for each pin. | | `0x018` | IRQ_ENABLE | 15:0 | value | rw | `0x0000` | regs | A 1 lets that pin's status bit raise interrupt source 2. One bit for each pin. | | `0x01C` | LEVEL_MODE | 15:0 | value | rw | `0x0000` | regs | 1: the pin is a level cause. 0: an edge cause. One bit for each pin. | | `0x020` | ACTIVE_HIGH | 15:0 | value | rw | `0xFFFF` | regs | 1: a high level, or a rising edge, is the event. One bit for each pin. | | `0x024` | STATUS | 15:0 | value | w1c | | block | Raw status. A written 1 clears the saved edge flag of that pin. One bit for each pin. | | `0x028` | MASKED_STATUS | 15:0 | value | ro | | block | STATUS AND IRQ_ENABLE. One bit for each pin. |
ap_sysctl · register manual
| Offset | Register | Bits | Field | Access | Reset | Held by | Meaning |
|---|---|---|---|---|---|---|---|
0x000 | CHIP_ID | 31:0 | value | ro | 0x2A5310C5 | const | The chip's identity: the IDCODE of the TAP. Fixed number. |
0x004 | RESET_CAUSE | 0 | power_on | ro | block | Sticky record of reset sources since power-on. Power-on reset. | |
0x004 | RESET_CAUSE | 1 | pin | ro | block | Reset pin. | |
0x004 | RESET_CAUSE | 2 | watchdog | ro | block | Watchdog. | |
0x004 | RESET_CAUSE | 3 | software | ro | block | Software request. | |
0x004 | RESET_CAUSE | 4 | debug | ro | block | Debug request. | |
0x008 | SOFT_RESET | 0 | timer | wo | not stored | Reset requests from software. 1 arms one restart of the timer. | |
0x008 | SOFT_RESET | 1 | chip | wo | not stored | 1 requests the software reset (new in v1.5). | |
0x00C | STRAPS | 0 | boot | ro | block | Straps as sampled at power-up (new in v1.5). 0: start in the boot ROM. 1: start in SRAM. | |
0x010 | PINMUX | 31:0 | select | rw | 0x00000000 | regs | Two bits for each of sixteen pads: 0 released, 1 GPIO, 2 serial, 3 auxiliary. Pad n uses bits 2n+1 and 2n. |
0x014 | CLK_GATE | 0 | uart0 | rw | 0x1 | regs | 1 lets that block's clock run (new in v1.5). UART0. |
0x014 | CLK_GATE | 1 | gpio | rw | 0x1 | regs | GPIO. |
0x014 | CLK_GATE | 2 | timer | rw | 0x1 | regs | Timer and PWM. |
0x014 | CLK_GATE | 3 | spi | rw | 0x1 | regs | SPI. |
0x014 | CLK_GATE | 4 | dma | rw | 0x1 | regs | DMA. |
0x018 | LOCK | 0 | pinmux | w1s | 0x0 | regs | Write-once locks. Only a reset clears one (new in v1.5). 1: PINMUX ignores writes. |
0x018 | LOCK | 1 | clk_gate | w1s | 0x0 | regs | 1: CLK_GATE ignores writes. |
0x018 | LOCK | 2 | debug | w1s | 0x0 | regs | 1: the debug lock is closed. |
0x020 | TB_STATUS | 31:0 | value | rw | 0x00000000 | regs (power-on reset only) | Scratch word 0. The firmware kit reports progress, pass and fail here. Plain storage. |
0x024 | TB_PUTC | 31:0 | value | rw | 0x00000000 | regs (power-on reset only) | Scratch word 1. The firmware kit writes one character here. Plain storage. |
0x028 | TB_EVENT | 31:0 | value | rw | 0x00000000 | regs (power-on reset only) | Scratch word 2. The firmware kit writes an event number here. Plain storage. |
0x02C | TB_ARG | 31:0 | value | rw | 0x00000000 | regs (power-on reset only) | Scratch word 3. A bench leaves a word for the firmware here. Plain storage. |
## ap_sysctl (base 0x1000_4000, clk_sys, PD_MAIN) | Offset | Register | Bits | Field | Access | Reset | Held by | Meaning | | --- | --- | --- | --- | --- | --- | --- | --- | | `0x000` | CHIP_ID | 31:0 | value | ro | `0x2A5310C5` | const | The chip's identity: the IDCODE of the TAP. Fixed number. | | `0x004` | RESET_CAUSE | 0 | power_on | ro | | block | Sticky record of reset sources since power-on. Power-on reset. | | `0x004` | RESET_CAUSE | 1 | pin | ro | | block | Reset pin. | | `0x004` | RESET_CAUSE | 2 | watchdog | ro | | block | Watchdog. | | `0x004` | RESET_CAUSE | 3 | software | ro | | block | Software request. | | `0x004` | RESET_CAUSE | 4 | debug | ro | | block | Debug request. | | `0x008` | SOFT_RESET | 0 | timer | wo | | not stored | Reset requests from software. 1 arms one restart of the timer. | | `0x008` | SOFT_RESET | 1 | chip | wo | | not stored | 1 requests the software reset (new in v1.5). | | `0x00C` | STRAPS | 0 | boot | ro | | block | Straps as sampled at power-up (new in v1.5). 0: start in the boot ROM. 1: start in SRAM. | | `0x010` | PINMUX | 31:0 | select | rw | `0x00000000` | regs | Two bits for each of sixteen pads: 0 released, 1 GPIO, 2 serial, 3 auxiliary. Pad n uses bits 2n+1 and 2n. | | `0x014` | CLK_GATE | 0 | uart0 | rw | `0x1` | regs | 1 lets that block's clock run (new in v1.5). UART0. | | `0x014` | CLK_GATE | 1 | gpio | rw | `0x1` | regs | GPIO. | | `0x014` | CLK_GATE | 2 | timer | rw | `0x1` | regs | Timer and PWM. | | `0x014` | CLK_GATE | 3 | spi | rw | `0x1` | regs | SPI. | | `0x014` | CLK_GATE | 4 | dma | rw | `0x1` | regs | DMA. | | `0x018` | LOCK | 0 | pinmux | w1s | `0x0` | regs | Write-once locks. Only a reset clears one (new in v1.5). 1: PINMUX ignores writes. | | `0x018` | LOCK | 1 | clk_gate | w1s | `0x0` | regs | 1: CLK_GATE ignores writes. | | `0x018` | LOCK | 2 | debug | w1s | `0x0` | regs | 1: the debug lock is closed. | | `0x020` | TB_STATUS | 31:0 | value | rw | `0x00000000` | regs (power-on reset only) | Scratch word 0. The firmware kit reports progress, pass and fail here. Plain storage. | | `0x024` | TB_PUTC | 31:0 | value | rw | `0x00000000` | regs (power-on reset only) | Scratch word 1. The firmware kit writes one character here. Plain storage. | | `0x028` | TB_EVENT | 31:0 | value | rw | `0x00000000` | regs (power-on reset only) | Scratch word 2. The firmware kit writes an event number here. Plain storage. | | `0x02C` | TB_ARG | 31:0 | value | rw | `0x00000000` | regs (power-on reset only) | Scratch word 3. A bench leaves a word for the firmware here. Plain storage. |
Examples
Example 1
The Good Chip- Input
your table
- Output
pass; visited shows UART0, GPIO, ap_sysctl and an ERROR
Every reset value matches the description, and every wrong access answers ERROR.
Example 2
A Hidden Faulty Chip- Input
your table on a faulty chip
- Output
fail
One reset value or one read path is wrong; one of your rows must see it.
Example 3
A Volatile Field- Input
RESET_CAUSE with every bit in the mask
- Output
fails on the good chip
The power-on bit is set after the first reset. A reset read must mask what moves.
Constraints and Contract
- At most 120 rows.
- The good chip must pass straight after reset. Each hidden faulty chip must fail one of your rows.
Hints
Hint 1
RESET_CAUSE says why the chip reset: its bits move by themselves.
Hint 2
A register with only write-only fields answers ERROR to a read: use core re.
Hint 3
The mask of a reset read is the OR of its fixed fields' masks. Its expect is the OR of their reset values, each in its own field.
What the grader checks: Your table runs straight after reset with +core=bfm, on the good chip and on several hidden faulty chips. The good chip must pass, and the region map must show UART0, GPIO, ap_sysctl and an ERROR answer. The grader cannot see whether you covered every register, only that each hidden chip fails.
1 checks on ap_soc v1.5 · bus seat · server. Run the examples first, then check the full regression. Full checks use the server judge. Downloads contain your text only; the chip, the bench and the hidden checks stay on the server. A passing result establishes the tested cases, not a proof for all possible inputs.
See all 2 problems on this path