-
Notifications
You must be signed in to change notification settings - Fork 50
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
Memories sent fix #1075
Memories sent fix #1075
Conversation
Memories_sent is now asserted when all of the x_send_done signals are asserted. Before, each bit corresponded to a different memory being done. This avoids having computations finish when any one of the memories is done.
4661912
to
423ff0c
Compare
src/backend/xilinx/toplevel.rs
Outdated
format!("{}_send_done", mem), | ||
)); | ||
} | ||
ifelse.add_seq(v::Sequential::new_nonblk_assign( |
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.
Do we still need the if memories.len() == 1
stuff? Seems like fold will do the right thing when memories[1..]
is empty? We should still probably have an assert!(..)
saying that it should have at least one element?
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.
Think you're right, made the changes
We assume that at least 1 memory is present, assertion is made at top of toplevel function
LGTM! |
Fixes a memories_sent assignment part of #1072, part of general effort in #1022