Commit 18f7e682 authored by Benny Simonsen's avatar Benny Simonsen

Merge branch 'develop' into develop-specify_top_library

parents 2a98971e b1c7ba85
......@@ -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()
......
......@@ -14,11 +14,14 @@ VHDL_SRC := ../files/gate.vhdl \
VHDL_OBJ := work/gate/.gate_vhdl \
LIBS := work
LIB_IND := work/.work
simulation: $(VERILOG_OBJ) $(VHDL_OBJ)
xelab -debug all $(TOP_MODULE) -s $(TOP_MODULE)
work/gate/.gate_vhdl: ../files/gate.vhdl
xvhdl $<
xvhdl --work work $<
@mkdir -p $(dir $@) && touch $@
......
......@@ -190,10 +190,10 @@ def test_riviera017():
def test_vivado018():
run_compare(path="018vivado")
def test_vivado_props():
def test_vivado_props054():
run_compare(path="054vivado_props")
def test_vivado_sim():
def test_vivado_sim019():
run_compare(path="019vsim")
def test_git_fetch():
......
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