Skip to content

fix(isim): use logical_name as library for VHDL files in .prj - #574

Open
mustafacicek-eee wants to merge 1 commit into
olofk:mainfrom
mustafacicek-eee:fix/isim-vhdl-library
Open

mustafacicek-eee wants to merge 1 commit into
olofk:mainfrom
mustafacicek-eee:fix/isim-vhdl-library

Conversation

@mustafacicek-eee

@mustafacicek-eee mustafacicek-eee commented Oct 6, 2026 •

Copy link
Copy Markdown

Fixes #463

Description

When compiling VHDL files with a logical_name specified, ISim's backend was writing both work and logical_name into the generated .prj file (e.g. vhdl work <lib> <file>), causing ISim/FUSE to fail with:

ERROR:Simulator:751 - Only one file per line is allowed for VHDL files

The expected syntax for ISim .prj files is <language> <worklib> <file>.

Changes

  • Updated edalize/isim.py to use src_file.logical_name as the library name when present, falling back to work.
  • Updated reference golden test file tests/test_isim/test_isim_0.prj.

Testing

  • pytest tests/test_isim.py passes with the updated golden file.

@mustafacicek-eee

Copy link
Copy Markdown
Author

Rebased onto current main and resolved the conflict with the new f-string style. ruff, black, mypy and ty pre-commit hooks pass, and the full test suite passes (239 tests).

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.

isim fails with "Only one file per line is allowed for VHDL files" error

1 participant