Skip to content

Conversation

KrystalDelusion
Copy link
Member

@KrystalDelusion KrystalDelusion commented Oct 14, 2025

What are the reasons/motivation for this change?

Close #5366.
The current approach to interfaces in read_verilog -sv involves expanding module ports to include all interface signals instead. Since this changes the number and index of ports, it is not possible to use interfaces in positional arguments (without refactoring),

Explain how this is achieved.

  • Document partial support rather than full support for system verilog interfaces (and modports).
  • Error when using interfaces in positional arguments.

Make sure your change comes with tests. If not possible, share how a reviewer might evaluate it.

New test added for error, current version of Yosys silently fails to match arguments post interface-expansion. Shouldn't affect any other tests.

@KrystalDelusion KrystalDelusion changed the title Cactch partial support of modports Catch partial support of modports Oct 14, 2025
@KrystalDelusion KrystalDelusion self-assigned this Oct 14, 2025
Add test to check that it does error.
Also some formatting fixes.
@KrystalDelusion KrystalDelusion changed the title Catch partial support of modports Catch partial support of SVI Oct 14, 2025
@KrystalDelusion KrystalDelusion marked this pull request as ready for review October 14, 2025 20:43
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.

Interface and modport support bug ?

1 participant