Skip to content

Handle empty cores in the VUnit backend - #577

Open
rithikasridharbabu-2007 wants to merge 1 commit into
olofk:mainfrom
rithikasridharbabu-2007:fix/507-vunit-empty-cores
Open

rithikasridharbabu-2007 wants to merge 1 commit into
olofk:mainfrom
rithikasridharbabu-2007:fix/507-vunit-empty-cores

Conversation

@rithikasridharbabu-2007

Copy link
Copy Markdown

Fixes #507

A core with no files can appear in the dependency list without an entry in core_files. The generated VUnit script then crashes when it tries to look up that core.

This gives each core in the dependency list an empty file list before adding its source files. It also handles projects where every core is empty.

Added tests that run the generated script with empty cores and check that dependencies between source files still work.

Tests:

  • All 4 VUnit tests pass. Both new cases failed before the fix.
  • The Black pre-commit check passes.
  • Full suite on macOS/Python 3.11: 238 passed, 3 failed. The same three failures also occur with the original VUnit backend: test_ghdl_04, test_icarus, and test_icarus_minimal. They are generated-command comparison failures outside this change.

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.

VUnit tool does not handle empty cores

2 participants