Skip to content

Conversation

@mkorbel1
Copy link
Contributor

Description & Motivation

There was a bug where if you have a LogicStructure with total width of 1-bit, then do an addTypedOutput on that struct, then assign the output, you could get something in generated SystemVerilog like assign myOut[0] = ... even though myOut would only be 1-bit. This is illegal in SystemVerilog.

This PR fixes the bug and adds tests to cover it. Also added a paranoia test on the BusSubset but that one was already covered.

Related Issue(s)

N/A

Testing

Added tests

Backwards-compatibility

Is this a breaking change that will not be backwards-compatible? If yes, how so?

No

Documentation

Does the change require any updates to documentation? If so, where? Are they included?

No

@mkorbel1 mkorbel1 merged commit d22fdd2 into intel:main Oct 30, 2025
3 checks passed
@mkorbel1 mkorbel1 deleted the onebitslicefix branch October 30, 2025 15:56
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.

1 participant