Skip to content

V1p5 Coverage + RSTACT 0x4/0x84 support - #140

Merged
clayton8 merged 15 commits into
chipsalliance:v1p5from
clayton8:v1p5-coverage-merge-work
Feb 20, 2026
Merged

clayton8 merged 15 commits into
chipsalliance:v1p5from
clayton8:v1p5-coverage-merge-work

Conversation

@clayton8

@clayton8 clayton8 commented Feb 18, 2026 •

Copy link
Copy Markdown
Collaborator
  • Major TB update with many new tests, logs, and monitors added
  • Add missing 0x4/0x84 RSTACT support

@clayton8
clayton8 force-pushed the v1p5-coverage-merge-work branch 2 times, most recently from 3ad5b2e to ac743b3 Compare February 20, 2026 07:43
…ture

- Add I3C SDR bus monitor for continuous protocol verification
- Add bus harness for signal visibility in cocotb tests
- Add arbitration-aware I3C controller model (i3c_controller_fixed.py)
- Add TE error event monitors with expect_error API
- Update test interface with auto-start monitors (TTI, bus, TE, HDR, TE2)
- Add common test helpers (VALID_I3C_ADDRESSES, timeout_task, log_seed)
- Fix test wrapper (remove stale VERILATOR define)
- Update build system (common.mk, top_common.mk, utils.py)
- Add generic FSM state transition tracker (fsm_state_tracker.sv)
- Add FSM trackers for ccc, ccc_entdaa, descriptor_ibi, recovery_receiver
- Add auto-generated AXI CSR transaction tracker from RDL register map
- Add generator script (gen_axi_csr_tracker.py) and reg_gen updates
- Add log parsing tools for all tracker types (6 scripts)
- Trackers use explicit port connections (no stale defines)
- Add IBI tests with arbitration-aware handling and retry logic
- Add edge-case tests: flush-from-idle, late-pending shifted address
- Add IBI tests for AXI and AHB bus configurations
- Tests cover: basic IBI, MDB, no-MDB, retry, flush, collision scenarios
- Skip retry-flush tests pending IBI_QUEUE_RST design decision
- Add 52+ CCC tests covering all CCC command types
- ENTDAA with TE3/TE4 error injection and parity verification
- TE2 private write parity error detection tests
- Padding error and chaining tests
- Arbitration loss and abort scenario coverage
- GETSTATUS Sr abort edge-case test
- CCC stress tests with randomized sequences
- Add TE0 (reserved address) error detection tests
- Add TE1 (CRC/parity) error detection tests
- Add TE2 (data parity) private write error detection tests
- Add TE3 (ENTDAA parity) and TE4 (ENTDAA address) error tests
- Add TE5 (bus timeout) error detection tests
- Per-byte counter granularity assertions
- AXI-specific TE error test suite
- Add bus stall detection and recovery tests
- Add bypass mode verification tests
- Add empty queue read edge-case tests
- Add recovery interface tests (fixed 6 failing tests)
- Add target reset verification tests
- Add interrupt verification tests (FORCE register pattern, enable gating)
- Update test_i3c_target.py for IBI rework and tx-fifo fix behavior
- Update test_csr_access.py for new IBI and RSTACT CSR fields
- Update test_enter_exit_hdr_mode.py for IBI rework changes
- Update reg_map.py with RSTACT + IBI + PENDING_IBI register definitions
- Update i2c_standby_controller Makefile for build compatibility

These files overlap with upstream branches (florian/ibi-rework,
i3c-rstact-fix, v1p5-i3c-tx-fifo). This branch's versions are
considered golden and should take priority on merge conflicts.
Add missing testpoints and create new testplan files to match the
actual cocotb test implementations in verification/cocotb/top/.

Updated files:
- target.hjson: +8 testpoints (private read, TX flush, mid-byte abort)
- target_ccc.hjson: +29 testpoints (ENTDAA, TE errors, abort/chain, RSTACT)
- target_hdr.hjson: +7 testpoints (HDR timeout timer)
- target_recovery.hjson: +14 testpoints (RI errors, stress, parity isolation)
- target_recovery_bypass.hjson: +1 testpoint (read)
- target_reset.hjson: +13 testpoints (timing, FSM corner cases)

New files:
- target_ibi.hjson: 23 testpoints for IBI handling
- target_te_errors.hjson: 8 testpoints for TE error detection
- target_empty_queue.hjson: 12 testpoints for empty queue reads
@clayton8
clayton8 force-pushed the v1p5-coverage-merge-work branch from d0726b6 to 8e2e000 Compare February 20, 2026 17:34
clayton8 and others added 3 commits February 20, 2026 09:47
test_target_reset.py was missing both sda_i and sda_o parameters.
test_empty_queue_read.py was missing the sda_i parameter.
Both are required positional args in I3cController.__init__.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…eout

The dev_agent exhausted its 500-poll budget (~54us) before the bfm_agent
completed its I3C handshake sequence (~85us) and wrote the first firmware
data chunk. Added a handshake_done Event so dev_agent waits for bfm_agent
to finish setup before polling the indirect FIFO.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@clayton8
clayton8 force-pushed the v1p5-coverage-merge-work branch from 6c54290 to 3fffdee Compare February 20, 2026 19:27
…i3c_target_write

Replace manual timeout poll loops for IRQ assert/deassert with
RisingEdge/FallingEdge triggers. The global timeout_task watchdog
handles hang detection. This eliminates fragile cycle-count timeouts
that break when bus speed or clock frequency changes.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@clayton8
clayton8 force-pushed the v1p5-coverage-merge-work branch from 3fffdee to 7bdd660 Compare February 20, 2026 19:59
@clayton8 clayton8 changed the title V1p5 coverage merge work V1p5 Coverage + RSTACT 0x4/0x84 support Feb 20, 2026
clayton8 and others added 2 commits February 20, 2026 14:24
- Wrap bind axi_adapter in ifdef I3C_USE_AXI (fixes SVA-COBMMI in AHB builds)
- Add unconnected recovery_payload_available_o, recovery_image_activated_o,
  and irq_o ports to i3c_wrapper instantiation (fixes TFIPC-L lint)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Replace U+00A7 (§) with 'Sec.' in comments and docstrings across
cocotb test files. The section sign caused UnicodeEncodeError when
cocotb's logging tried to emit tracebacks through an ASCII-only
stream, masking actual test failure messages.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@clayton8
clayton8 merged commit ed63af1 into chipsalliance:v1p5 Feb 20, 2026
49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant