Skip to content

Commit

Permalink
build/xilinx/vivado: Rename opt_directive to vivado_opt_directive for…
Browse files Browse the repository at this point in the history
… consistency with other directives.
  • Loading branch information
enjoy-digital committed Sep 12, 2024
1 parent 203c981 commit dc8c1bd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions litex/build/xilinx/vivado.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def build(self, platform, fragment,
synth_mode = "vivado",
enable_xpm = False,
vivado_synth_directive = "default",
opt_directive = "default",
vivado_opt_directive = "default",
vivado_place_directive = "default",
vivado_post_place_phys_opt_directive = None,
vivado_route_directive = "default",
Expand All @@ -131,7 +131,7 @@ def build(self, platform, fragment,
self._enable_xpm = enable_xpm

self.vivado_synth_directive = vivado_synth_directive
self.opt_directive = opt_directive
self.vivado_opt_directive = vivado_opt_directive
self.vivado_place_directive = vivado_place_directive
self.vivado_post_place_phys_opt_directive = vivado_post_place_phys_opt_directive
self.vivado_route_directive = vivado_route_directive
Expand Down Expand Up @@ -309,7 +309,7 @@ def build_project(self):

# Optimize
tcl.append("\n# Optimize design\n")
tcl.append(f"opt_design -directive {self.opt_directive}")
tcl.append(f"opt_design -directive {self.vivado_opt_directive}")

# Incremental implementation
if self.incremental_implementation:
Expand Down Expand Up @@ -415,7 +415,7 @@ def vivado_build_argdict(args):
return {
"synth_mode" : args.synth_mode,
"vivado_synth_directive" : args.vivado_synth_directive,
"opt_directive" : args.vivado_opt_directive,
"vivado_opt_directive" : args.vivado_vivado_opt_directive,
"vivado_place_directive" : args.vivado_place_directive,
"vivado_post_place_phys_opt_directive" : args.vivado_post_place_phys_opt_directive,
"vivado_route_directive" : args.vivado_route_directive,
Expand Down

0 comments on commit dc8c1bd

Please sign in to comment.