-
Notifications
You must be signed in to change notification settings - Fork 220
Add Flow API and nextpnr support for Cologne Chip GateMate FPGAs #489
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
base: main
Are you sure you want to change the base?
Conversation
olofk
left a comment
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.
Thanks for this! A few things that need to be fixed and I would appreciate some simple tests also. Looks great otherwise.
|
|
||
| _flow = { | ||
| "yosys": {"fdto": {"arch": "gatemate", "output_format": "json", | ||
| "yosys_synth_options": ["-luttree", "-nomx8"], |
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.
Are these options strictly needed? We try to avoid hardcoding any options unless necessary since that makes it harder for users to change to another value.
| }}, | ||
| "nextpnr": {"deps": ["yosys"], | ||
| "fdto": {"arch": "gatemate", | ||
| "nextpnr_options": ["--router router2"], |
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 this option strictly needed? We try to avoid hardcoding any options unless necessary since that makes it harder for users to change to another value.
| "-lib", | ||
| "ccag", | ||
| " ".join(self.tool_options.get("p_r_options", "")), | ||
| "$(NEXTPNR)", |
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.
I think it's better to just have nextpnr-himbaechel here directly. This allows us to run a containerized version of nextpnr through the EDALIZE_LAUNCHER mechanism like we can do with the other nextpnr versions already.
| commands.add(command, [cfg_target], [synth_out]) | ||
|
|
||
| commands.set_default_target(targets) | ||
| commands.add_var("GMPACK := $(shell which gmpack)") |
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.
Use gmpack directly. We can use an EDALIZE_LAUNCHER to override the name if we want instead.
Cologne Chip GateMate FPGA support is updated from the proprietary p_r tool to nextpnr and migrated from the old Tool API to the Flow API