Skip to content

Commit

Permalink
Add Efinity flow class
Browse files Browse the repository at this point in the history
  • Loading branch information
olofk committed Oct 10, 2023
1 parent 041ad01 commit 2c73067
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions edalize/flows/efinity.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright edalize contributors
# Licensed under the 2-Clause BSD License, see LICENSE for details.
# SPDX-License-Identifier: BSD-2-Clause

from edalize.flows.generic import Generic


class Efinity(Generic):
"""Efinix Efinity FPGA toolchain"""

argtypes = ["generic", "vlogdefine", "vlogparam"]

@classmethod
def get_flow_options(cls):
return {k: v for k, v in cls.FLOW_OPTIONS.items() if k != "tool"}

@classmethod
def get_tool_options(cls, flow_options):
flow = flow_options.get("frontends", []).copy() + ["efinity"]

return cls.get_filtered_tool_options(flow, cls.FLOW_DEFINED_TOOL_OPTIONS)

def configure_flow(self, flow_options):
self.flow_options["tool"] = "efinity"
return super().configure_flow(flow_options)

0 comments on commit 2c73067

Please sign in to comment.