Skip to content
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

Add entries for default parameters, and how to present parameters as strings. #19

Merged
merged 1 commit into from
Mar 22, 2021

Conversation

litghost
Copy link
Contributor

Fixes #12 (from a schema perspective).

@@ -590,4 +591,47 @@ struct Device {
# Which sites have LUT BELs?
lutElements @1 : List(LutElements);
}

enum ParameterFormat {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what ParameterFormat would be used for a Bitstring type parameter?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like it might also be useful to specify that a parameter has to use Bitstring instead of a textValue representation?

Copy link
Contributor Author

@litghost litghost Mar 22, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So I think tools should always accept textValue representations, because all parameters can be encoded as a textValue. Encoding as a more specific field type should be allowed, especially as an interior/intermediate state. For example, nextpnr should accept textValue for LUT init, but for larger designs it is likely faster for nextpnr to be given bitstringValue representation to avoid re-parsing constants.

Vendor tools (thinking Lattice and Vivado) will likely want textValue-like representations, and so ParameterFormat is more about narrowing the textValue space for tools that accept narrower inputs. The bridge (e.g. PhysicalNetlistToDcp) between the PhysicalNetlist format and the vendor format (e.g. DCP) will be responsible for converting from the wider input space to the narrower vendor accepted space.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Understood, that seems reasonable

…strings.

Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
Copy link
Contributor

@clavin-xlnx clavin-xlnx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

Property type considerations
3 participants