-
Notifications
You must be signed in to change notification settings - Fork 242
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
Gowin. FFs placement. #1386
Gowin. FFs placement. #1386
Conversation
* Allow clusters to be created from FFs and LUTs; * Immediately create pass-through LUTs from free LUTs adjacent to FF - at the same time ensure alternating use of LUT inputs; * In case of constant networks, such pass-through LUTs are disconnected from networks altogether; * Allow FF to be placed directly into SSRAM slides - this is useful when using synchronous reading. Signed-off-by: YRabbit <rabbit@yrabbit.cyou>
himbaechel/uarch/gowin/gowin.cc
Outdated
if (ctx->debug) { | ||
log("make a pass-through.\n"); | ||
} | ||
IdString lut_input = lut_tmpl.at(cur_lut_tmpl).first; |
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.
is there a reason for changing which LUT input is used each time? this seems like something that long term might be better dealt with using LUT permutation
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.
There is no particular reason. I can use the I3 input to all LUTS if you think it is so convenient for the one who will implement Permutation in the future.
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 make the code a bit simpler, if there are no other downsides I would just stick to I3 particularly if permutation is planned for the future
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.
done
Signed-off-by: YRabbit <rabbit@yrabbit.cyou>
Signed-off-by: YRabbit <rabbit@yrabbit.cyou>
Allow clusters to be created from FFs and LUTs;
Immediately create pass-through LUTs from free LUTs adjacent to FF - at the same time ensure alternating use of LUT inputs;
In case of constant networks, such pass-through LUTs are disconnected from networks altogether;
Allow FF to be placed directly into SSRAM slides - this is useful when using synchronous reading.