Commit 00bba9b7 authored by Benny Simonsen's avatar Benny Simonsen

Vivado: Compile to --work <library>

Prior Vivado compiled to work, now it compiles to the library specified in Manifest.py
parent b73be282
......@@ -50,7 +50,7 @@ class ToolVivadoSim(ToolXilinxProject, MakefileSim):
'mrproper': ["*.wdb", "*.vcd"]}
SIMULATOR_CONTROLS = {'vlog': 'xvlog $<',
'vhdl': 'xvhdl $<',
'vhdl': 'xvhdl --work {work} $<',
'compiler': 'xelab -debug all $(TOP_MODULE) '
'-s $(TOP_MODULE)'}
......@@ -71,6 +71,8 @@ class ToolVivadoSim(ToolXilinxProject, MakefileSim):
def _makefile_sim_compilation(self):
"""Generate compile simulation Makefile target for Vivado Simulator"""
libs = self.get_all_libs()
self._makefile_sim_libs_variables(libs)
self.writeln("simulation: $(VERILOG_OBJ) $(VHDL_OBJ)")
self.writeln("\t\t" + self.SIMULATOR_CONTROLS['compiler'])
self.writeln()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment