Skip to content

ci: Include testbench target in elaboration flows - #340

Merged
phsauter merged 6 commits into
v2-devfrom
extend-elab-tests
Jul 2, 2026
Merged

ci: Include testbench target in elaboration flows#340
phsauter merged 6 commits into
v2-devfrom
extend-elab-tests

Conversation

@colluca

@colluca colluca commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

@ricted98 reported failing elaboration of cc_cdc_2phase_clearable_tb with VCS when testing v2-dev in Cheshire.

Firstly, Cheshire doesn't depend on that file at all. This PR splits the existing Bender test target into separate test and tb targets. test includes reusable test sources that might be used by dependent repos. tb includes common_cells-specific testbenches that are not expected to be reused by dependent repos.

@ricted98 suggested that we further prefix it as cc-tb, if we don't intend these files to be included by any dependencies. Bender now supports dependency-specific targets: -t my_pkg:my_target activates my_target only for my_pkg. Thus, I don't think prefixing tb is necessary; a repo should use <repo_package>:tb so no external testbench sources are included.

Finally, the PR extends the elaboration tests to include all testbench, formal and synthesis wrapper sources. The ordering of the timescale and import statements in cc_cdc_2phase_clearable_tb are exchanged so as to fix the same elaboration issue encountered by @ricted98.

@colluca
colluca force-pushed the extend-elab-tests branch from f6a986c to 74e6b52 Compare July 2, 2026 14:03
@phsauter
phsauter marked this pull request as ready for review July 2, 2026 14:45
@phsauter phsauter changed the title Add testbench, formal and synthesis sources to elaboration tests ci: Include testbench target in elaboration flows Jul 2, 2026
@phsauter
phsauter merged commit 0ea8cf9 into v2-dev Jul 2, 2026
5 checks passed
@phsauter
phsauter deleted the extend-elab-tests branch July 2, 2026 14:59
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.

2 participants