Skip to content
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

Fix EOS-S3 build on latest F4PGA #1799

Closed

Conversation

arturkow2
Copy link

No description provided.

F4PGA uses new clock names which differs from names used in QORC SDK.

Signed-off-by: Artur Kowalski <artur.kowalski@3mdeb.com>
Signed-off-by: Artur Kowalski <artur.kowalski@3mdeb.com>
This requires patched F4PGA: chipsalliance/f4pga#666

Signed-off-by: Artur Kowalski <artur.kowalski@3mdeb.com>
@arturkow2 arturkow2 force-pushed the s3_fix_f4pga_toolchain branch from d3448ed to c0071c1 Compare October 12, 2023 16:36
"EOS3FF512-PDN64": {
"default_target": "bitstream",
"dependencies": {
"build_dir": "build",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By setting build_dir to build directory all output files are located in this sub-dir instead of directly into gateware (as for all toolchains). But by using self._build_dir instead of build prepare_cmd will override .sdc file: what do you think about renaming xxx.sdc (in build_timing_constraints) by xxx_in.sdc ?

Comment on lines +102 to +106
if subprocess.call(make_cmd + ["bitstream_openocd"]) != 0:
raise OSError("Error occured during QuickLogic Symbiflow's script execution.")

if subprocess.call(make_cmd + ["bitstream_jlink"]) != 0:
raise OSError("Error occured during QuickLogic Symbiflow's script execution.")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These two commands produces only bitstream/rules for openOCD and jlink so we lost ability to obtain .bit.bin and .bit.h files: it's required to add bitstream_bitheader and bitstream_binary too.
What do you think about using a dict to iterate on all 4 targets and improving error message with target name?

@trabucayre
Copy link
Collaborator

Looks good, just two small remarks. Unfortunately by applying another PR and a modification there is a conflict. If you prefer I could apply by myself this PR and, at the same time, addressing the two comments.

@trabucayre
Copy link
Collaborator

Applied. Thanks @arturkow2

@trabucayre trabucayre closed this May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants