Skip to content

Commit

Permalink
F4PGA: Allow VPR options to be configured at the flow level
Browse files Browse the repository at this point in the history
  • Loading branch information
Pocketkid2 authored and olofk committed Dec 15, 2022
1 parent 3606d9d commit 7c19718
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion edalize/flows/f4pga.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,15 @@ class F4pga(Edaflow):
"type": "str",
"desc": "Place and route tool. Valid options are 'vpr'/'vtr' and 'nextpnr'. Defaults to VPR.",
},
# Optional, if empty uses default F4PGA VPR options
"vpr_options": {
"type": "list",
"desc": "Options to VPR, if the standard F4PGA values are not sufficient",
},
}

# Standard F4PGA command line arguments to VPR
VPR_OPTIONS = [
DEFAULT_VPR_OPTIONS = [
"--max_router_iterations",
"500",
"--routing_failure_predictor",
Expand Down Expand Up @@ -152,6 +157,7 @@ def configure_flow(self, flow_options):
lookahead_file = arch_dir + f"{chip}/rr_graph_{chip}.lookahead.bin"
place_delay_file = arch_dir + f"{chip}/rr_graph_{chip}.place_delay.bin"
self.device_name = chip.replace("_", "-")
self.VPR_OPTIONS = flow_options.get("vpr_options", self.DEFAULT_VPR_OPTIONS)
pnr_options.update(
{
"vpr_options": [
Expand Down

0 comments on commit 7c19718

Please sign in to comment.