You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] -m (minimal) flag doesn't compile cross-library component-instantiated design units #1187
When using VUnit's -m/--minimal flag, design units that are instantiated via component instantiation across different libraries are excluded from the minimal compile set. This causes simulation to fail with unbound component errors.
The root cause is in project.py:_find_component_design_unit_dependencies(), which only searches source_file.library for matching entities/modules. When the design unit is in a different VUnit library than the file instantiating it, the dependency is not found.
Without -m, all files are compiled regardless of dependency analysis, so this works fine.
I bumped into this issue when trying to simulate an Altera IP that uses this component instantiation structure in its generated wrapper. It is a part of a larg-ish project with a lot of design-files and testbenches, so using the -m flag is very useful. This issue might be related to #1073, but the mre doesn't use any IPs.
Activity