build/efinix: Add default parameter values and fix other typos.

This commit is contained in:
Florent Kermarrec 2024-07-09 10:04:03 +02:00
parent e6171e79db
commit 549d23e4f7
1 changed files with 14 additions and 14 deletions

View File

@ -51,22 +51,22 @@ class EfinityToolchain(GenericToolchain):
self.options["includ_path"] = "{" + ";".join(self.platform.verilog_include_paths) + "}" self.options["includ_path"] = "{" + ";".join(self.platform.verilog_include_paths) + "}"
def build(self, platform, fragment, def build(self, platform, fragment,
synth_mode, synth_mode = "speed",
infer_clk_enable, infer_clk_enable = "3",
bram_output_regs_packing, bram_output_regs_packing = "1",
retiming, retiming = "1",
seq_opt, seq_opt = "1",
mult_input_regs_packing, mult_input_regs_packing = "1",
mult_output_regs_packing, mult_output_regs_packing = "1",
**kwargs): **kwargs):
self._synth_mode = synth_mode, self._synth_mode = synth_mode
self._infer_clk_enable = infer_clk_enable, self._infer_clk_enable = infer_clk_enable
self._bram_output_regs_packing = bram_output_regs_packing, self._bram_output_regs_packing = bram_output_regs_packing
self._retiming = retiming, self._retiming = retiming
self._seq_opt = seq_opt, self._seq_opt = seq_opt
self._mult_input_regs_packing = mult_input_regs_packing, self._mult_input_regs_packing = mult_input_regs_packing
self._mult_output_regs_packing = mult_output_regs_packing, self._mult_output_regs_packing = mult_output_regs_packing
# Apply FullMemoryWE on Design (Efiniy does not infer memories correctly otherwise). # Apply FullMemoryWE on Design (Efiniy does not infer memories correctly otherwise).
FullMemoryWE()(fragment) FullMemoryWE()(fragment)