Skip to content

Fix veri_lint.sh: compile required packages and skip third-party sources#24

Open
Shivam-Shukla0 wants to merge 1 commit into
bsc-loca:mainfrom
Shivam-Shukla0:fix/veri-lint-missing-packages
Open

Fix veri_lint.sh: compile required packages and skip third-party sources#24
Shivam-Shukla0 wants to merge 1 commit into
bsc-loca:mainfrom
Shivam-Shukla0:fix/veri-lint-missing-packages

Conversation

@Shivam-Shukla0

Copy link
Copy Markdown

make lint fails on a fresh clone because veri_lint.sh only compiles riscv_pkg.sv and drac_pkg.sv, while drac_pkg.sv references fpnew_pkg and several units import mmu_pkg. The -I dirs don't help since packages need to be compiled, not just discoverable.

Two changes:

  • add cf_math_pkg, fpnew_pkg and mmu_pkg to the verilator invocation in dependency order
  • exclude common_cells/cvfpu internal sources and their test/ files from the file sweep — they are third-party libraries with their own CI, and some import packages (ecc_pkg, etc.) outside this repo's lint scope

Verified on Verilator 5.048 and 5.020: PKGNODECL / Import package not found errors go from hundreds to zero.

Note: after this change the lint no longer stops on PKGNODECL, but pre-existing WIDTHEXPAND/ASCRANGE warnings in riscv_pkg/drac_pkg/fpnew_pkg now surface. Those look like a separate issue and I've kept them out of scope here.

Fixes #22

drac_pkg.sv references fpnew_pkg (cvfpu) and several units import
mmu_pkg, but veri_lint.sh only compiled riscv_pkg and drac_pkg,
so 'make lint' failed on a fresh clone with PKGNODECL errors.

This adds cf_math_pkg, fpnew_pkg and mmu_pkg to the compile line in
dependency order, and excludes common_cells/cvfpu internal sources
and their test files from the lint sweep.
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.

make lint fails on a fresh clone: veri_lint.sh does not compile fpnew_pkg/mmu_pkg required by the RTL

1 participant