-
Notifications
You must be signed in to change notification settings - Fork 113
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
[WIP] Add QuickLogic EOS-S3 support #1758
base: main
Are you sure you want to change the base?
Conversation
@litghost, can you provide any information on what should be added to integrate the QuickLogic support with SymbiFlow? Do you think that the solution with overwriting certain packages temporarily in the CI is a good approach? I'm also aware of these DCO errors, I will do my best to resolve the problem. |
get_rel_target(REL_QUICKLOGIC_FASM_NAME quicklogic_fasm ${QUICKLOGIC_FASM_NAME}) | ||
add_custom_target( | ||
${REL_QUICKLOGIC_FASM_NAME} | ||
DEPENDS ${QUICKLOGIC_FASM_OUTPUT} |
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.
This should use add_file_dependency
, not directly depend on the output filename.
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.
Anytime an add_custom_command
depends on something that has add_file_target
, it needs to use add_file_dependency
, not just depending on the filename.
get_target_property(YOSYS_DEVICE_CELLS_MAP ${DEVICE_TYPE} CELLS_MAP) | ||
|
||
if (NOT "${YOSYS_DEVICE_CELLS_SIM}" MATCHES ".*NOTFOUND") | ||
get_file_target(YOSYS_DEVICE_CELLS_SIM_TARGET ${YOSYS_DEVICE_CELLS_SIM}) |
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 use "add_file_dependency" which does the same thing as these 3 lines?
@@ -13,6 +13,7 @@ dependencies: | |||
- symbiflow::icestorm | |||
- symbiflow::capnproto-java | |||
- litex-hub::gcc-riscv64-elf-newlib | |||
- python=3.7 |
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.
Why the drop to python 3.7?
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.
Most of the new CMake functions need better documentation. At a minimum, what do they do and how to call them. A why would be good too
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.
Please remove all *
imports, e.g.:
quicklogic/common/utils/rr_utils.py:
from data_structs import *
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.
This PR should probably be broken up, it is very large, and hard to review.
Suggestions for places to split the PR:
- A PR to setup the basic directory structure and run v2x on Verilog. I believe this PR would be relatively straight forward, and the generated output would be all the pb_types, etc.
- A PR adding the python support libraries
- A PR adding the new CMake scripts
I think that is a terrible idea. |
I think the first step here is to make a small PR that adds the QuickLogic configuration and a dummy QL CI script that is an empty shell script. We can then add that config to kokoro. I then recommend we incrementally stage PR's, per my earlier suggestion. I know this isn't a surprise, but it is practically impossible to review and merge a PR with 120k lines and ~500 files. We need to break this into small PRs with more modest goals. For example, having a PR that generates all the pb_types by invoking v2x is probably a good PR once we have the initial CI stuff setup. |
Specifically this PR would have the following files:
I notice that in this PR you didn't modify |
Ok, I will split the PR then into smaller chunks.
Here is the first PR with the initial CI setup: #1760
This PR will require all of the From the discussions in the |
Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
…e IP input is unconnected (no CLOCK pad) Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
Removing wpiflash, due to licensing terms Signed-off-by: Kishor Kumar <61860672+kkumar23@users.noreply.github.com>
Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
Signed-off-by: Kamil Rakoczy <krakoczy@antmicro.com>
Syntax update symbiflo_write_fasm to symbiflow_write_fasm Signed-off-by: Kishor Kumar <61860672+kkumar23@users.noreply.github.com>
Signed-off-by: Jan Kowalewski <jkowalewski@antmicro.com>
Signed-off-by: Jan Kowalewski <jkowalewski@antmicro.com>
Signed-off-by: Jan Kowalewski <jkowalewski@antmicro.com>
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
Signed-off-by: Jan Kowalewski <jkowalewski@antmicro.com>
Signed-off-by: Jan Kowalewski <jkowalewski@antmicro.com>
Signed-off-by: Jan Kowalewski <jkowalewski@antmicro.com>
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
Signed-off-by: Kishor Kumar <kkumar@quicklogic.com>
Signed-off-by: Kishor Kumar <kkumar@quicklogic.com>
correcting command Signed-off-by: Kishor Kumar <61860672+kkumar23@users.noreply.github.com>
Signed-off-by: Kishor Kumar <61860672+kkumar23@users.noreply.github.com>
Signed-off-by: Kishor Kumar <61860672+kkumar23@users.noreply.github.com>
adding openocd Signed-off-by: Kishor Kumar <61860672+kkumar23@users.noreply.github.com>
Signed-off-by: Jan Kowalewski <jkowalewski@antmicro.com>
Signed-off-by: Robert Winkler <rwinkler@antmicro.com>
Signed-off-by: Robert Winkler <rwinkler@antmicro.com>
Signed-off-by: Robert Winkler <rwinkler@antmicro.com>
Signed-off-by: Robert Winkler <rwinkler@antmicro.com>
Signed-off-by: Robert Winkler <rwinkler@antmicro.com>
This changes enables the option of using custom v2x package. Signed-off-by: Robert Winkler <rwinkler@antmicro.com>
This change is required by the quicklogic-yosys conda package, used in the quicklogic kokoro CI. Signed-off-by: Robert Winkler <rwinkler@antmicro.com>
Given your statement, that needs to be fixed first then? So order for now should be:
|
This PR adds support for QuickLogic devices. The codebase comes from the main QuickLogic repository, with additional changes that are required for proper integration with the SymbiFlow mainline.
At this point, these issues need to be addressed to provide the QuickLogic support:
I believe that the integration can be speeded up by replacing the
Yosys
andv2x
conda packages in the CI. Then when all the changes are available in the main repository, we can remove the package substitution. In this PR, I proposed the necessary changes for this solution.