-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PortProduct prefixing, auto-generating notation #914
Comments
On a related note, |
Maybe we could add a "t_separator" option to |
To me, it's perfectly natural to write
I'd be fine with that as well. |
We should also think about how this interacts with |
We discussed this offline: Adding
Correct @leonschoorl @DigitalBrains1 ? |
I think that is what we discussed. But: how does CλaSH know when we write:
that it should fill in the
and then I'd rather use |
Yeah, excellent point. I'll edit it in. |
Using a
Synthesize
annotation, we can specify names for the ports of the generated component.Currently:
PortName ""
indicates an auto-generated name is wanted.PortProduct "pre" [ Portname "a", PortName "" ]
creates two ports namedpre_a
andpre_X
, where X is auto-generated.This has two undesirable aspects:
PortName ""
is a bit of a misnomer.After some internal discussion, we suggest
AutoName
that does the exact same asPortName ""
and keep the latter for backward compatibility.AbsPortName s
which gives the port the names
without any of the prefixes of the enclosing PortProducts.Note that the current documentation regarding prefixes is wrong, this is based on actual behaviour of CλaSH 1.0.1.
The text was updated successfully, but these errors were encountered: