-
Notifications
You must be signed in to change notification settings - Fork 53
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
Piezo, PIFOTree: static option! #1783
Merged
Merged
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
7c9c3ac
Attempt at static incr groups
anshumanmohan b4e98fe
Better generation of static incr
anshumanmohan aa73c89
Cleaner incr generation
anshumanmohan 61655ed
Static par
anshumanmohan 9221a53
Better generation of static incr
anshumanmohan 7c3d46e
Support for non-static choice
anshumanmohan 019625e
Close?
anshumanmohan 9d89587
Pushing the generated file that's causing the error
anshumanmohan 4fb471b
Merge branch 'master' into static-pifotree.py
anshumanmohan 9ff43e9
No more static as cmd line flag
anshumanmohan a951943
Some renaming
anshumanmohan 016c00f
More renaming
anshumanmohan 6eb91bb
Add static to runt
anshumanmohan 7198553
Remove yx file
anshumanmohan 7be44bf
Neater incr
anshumanmohan 27ada34
Tidying in SDN code
anshumanmohan 3e36475
Nit
anshumanmohan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Neater incr
- Loading branch information
commit 7be44bfc3e87a34da293ce83d1f3ff6bb7d381fd
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would have been nice to have reused the existing
incr
with astatic
flag as an argument. I got a good way through it, but then the issue is that the dynamic version needs a lineincr_group.done = ...
but the static version does not.I'd usually do that with the Python idiom of
X if b else Y
, but that doesn't tango super well with the eDSL's ownwith foo as bar: baz
idiom.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just paging @sampsyo in case he knows a neat way! Like basically is there some
Y
such that I could do:and the
Y
would be a no-op, ignored when generating Calyx code?If I had a nice way of doing this, I could go through and do it for lots of helpers in the eDSL!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the sync chat; it worked like a charm!