mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
mibuild: make resolve_signals public
This commit is contained in:
parent
beef7425ce
commit
d51d33af73
4 changed files with 5 additions and 5 deletions
|
@ -81,7 +81,7 @@ class AlteraQuartusPlatform(GenericPlatform):
|
||||||
self.finalize(fragment)
|
self.finalize(fragment)
|
||||||
|
|
||||||
v_src, vns = self.get_verilog(fragment)
|
v_src, vns = self.get_verilog(fragment)
|
||||||
named_sc, named_pc = self._resolve_signals(vns)
|
named_sc, named_pc = self.resolve_signals(vns)
|
||||||
v_file = build_name + ".v"
|
v_file = build_name + ".v"
|
||||||
tools.write_to_file(v_file, v_src)
|
tools.write_to_file(v_file, v_src)
|
||||||
sources = self.sources + [(v_file, "verilog")]
|
sources = self.sources + [(v_file, "verilog")]
|
||||||
|
|
|
@ -240,7 +240,7 @@ class GenericPlatform:
|
||||||
def add_verilog_include_path(self, path):
|
def add_verilog_include_path(self, path):
|
||||||
self.verilog_include_paths.append(os.path.abspath(path))
|
self.verilog_include_paths.append(os.path.abspath(path))
|
||||||
|
|
||||||
def _resolve_signals(self, vns):
|
def resolve_signals(self, vns):
|
||||||
# resolve signal names in constraints
|
# resolve signal names in constraints
|
||||||
sc = self.constraint_manager.get_sig_constraints()
|
sc = self.constraint_manager.get_sig_constraints()
|
||||||
named_sc = [(vns.get_name(sig), pins, others, resource) for sig, pins, others, resource in sc]
|
named_sc = [(vns.get_name(sig), pins, others, resource) for sig, pins, others, resource in sc]
|
||||||
|
|
|
@ -144,7 +144,7 @@ class XilinxISEPlatform(xilinx_common.XilinxGenericPlatform):
|
||||||
|
|
||||||
if mode == "xst" or mode == "yosys":
|
if mode == "xst" or mode == "yosys":
|
||||||
v_src, vns = self.get_verilog(fragment)
|
v_src, vns = self.get_verilog(fragment)
|
||||||
named_sc, named_pc = self._resolve_signals(vns)
|
named_sc, named_pc = self.resolve_signals(vns)
|
||||||
v_file = build_name + ".v"
|
v_file = build_name + ".v"
|
||||||
tools.write_to_file(v_file, v_src)
|
tools.write_to_file(v_file, v_src)
|
||||||
sources = self.sources + [(v_file, "verilog")]
|
sources = self.sources + [(v_file, "verilog")]
|
||||||
|
@ -162,7 +162,7 @@ class XilinxISEPlatform(xilinx_common.XilinxGenericPlatform):
|
||||||
|
|
||||||
if mode == "edif" or mode == "mist":
|
if mode == "edif" or mode == "mist":
|
||||||
e_src, vns = self.get_edif(fragment)
|
e_src, vns = self.get_edif(fragment)
|
||||||
named_sc, named_pc = self._resolve_signals(vns)
|
named_sc, named_pc = self.resolve_signals(vns)
|
||||||
e_file = build_name + ".edif"
|
e_file = build_name + ".edif"
|
||||||
tools.write_to_file(e_file, e_src)
|
tools.write_to_file(e_file, e_src)
|
||||||
isemode = "edif"
|
isemode = "edif"
|
||||||
|
|
|
@ -103,7 +103,7 @@ class XilinxVivadoPlatform(xilinx_common.XilinxGenericPlatform):
|
||||||
fragment = fragment.get_fragment()
|
fragment = fragment.get_fragment()
|
||||||
self.finalize(fragment)
|
self.finalize(fragment)
|
||||||
v_src, vns = self.get_verilog(fragment)
|
v_src, vns = self.get_verilog(fragment)
|
||||||
named_sc, named_pc = self._resolve_signals(vns)
|
named_sc, named_pc = self.resolve_signals(vns)
|
||||||
v_file = build_name + ".v"
|
v_file = build_name + ".v"
|
||||||
tools.write_to_file(v_file, v_src)
|
tools.write_to_file(v_file, v_src)
|
||||||
sources = self.sources + [(v_file, "verilog")]
|
sources = self.sources + [(v_file, "verilog")]
|
||||||
|
|
Loading…
Reference in a new issue