-
Notifications
You must be signed in to change notification settings - Fork 36
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
"enum" parameter bitstream mapping #52
Comments
I am thinking maybe something like this:
Then the AND, OR, XOR will get automatically assigned to b00, b01, b10. This might make parsing multiple enums easier. The Vector(2) will be indicated using 2 bits for the |
We want to have the ability to support custom encodings though. Actually, Dirk did suggest out-of-band going back to hot comments here, if that's easier to work with. Something like
this would specify that |
I don't think going back to comment will be a good idea.
|
Looks good! |
Now the following Bel map:
will yield the following dictionary after parsing.
I have further looked into bitstream generation to support with an enum, but it looks like that will also require refactoring. |
looks good! |
consider this somewhat pointless example of a primitive the end user might instantiate
this would generate a FASM configuration feature in nextpnr like X6Y9A.MODE.AND or X6Y9A.MODE.XOR
the underlying hardware primitive might look like
we now need some way of specifying the mapping of
the encoding being just an example, others might be possible
one way of doing this using attributes might be like
essentially, we need to specify more things for
MODE
than just a single bit mapping - the range of bits it maps to and the set of possible values. Same for multi-bit non-enumarated configuration values (like the initial accumulator value of a DSP), which in this syntax could perhaps just specify _start and _end attributes without any of the enum stuff.The text was updated successfully, but these errors were encountered: