OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [orpsocv2/] [sim/] [bin/] [Makefile] - Diff between revs 476 and 484

Show entire file | Details | Blame | View Log

Rev 476 Rev 484
Line 172... Line 172...
#
#
VOPT_ARGS=$(QUIET) -suppress 2241
VOPT_ARGS=$(QUIET) -suppress 2241
# If VCD dump is desired, tell Modelsim not to optimise
# If VCD dump is desired, tell Modelsim not to optimise
# away everything.
# away everything.
ifeq ($(VCD), 1)
ifeq ($(VCD), 1)
#VOPT_ARGS=-voptargs="+acc=rnp"
# If certain versions of modelsim don't have the vopt executable, define
 
# MGC_NO_VOPT=1 when running.
 
ifeq ($(MGC_NO_VOPT), 1)
 
MGC_VSIM_ARGS +=-voptargs="+acc=rnp"
 
MGC_VOPT_CMD=echo
 
MGC_VSIM_TGT=orpsoc_testbench
 
else
VOPT_ARGS=+acc=rnpqv
VOPT_ARGS=+acc=rnpqv
 
MGC_VOPT_CMD= vopt $(QUIET) $(RTL_TESTBENCH_TOP) $(VOPT_ARGS) -o tb
 
MGC_VSIM_TGT=tb
 
endif
 
 
 
else
 
 
 
ifeq ($(MGC_NO_VOPT), 1)
 
MGC_VSIM_ARGS += -vopt
 
MGC_VOPT_CMD=echo
 
MGC_VSIM_TGT=orpsoc_testbench
 
else
 
VOPT_ARGS=+acc=rnpqv
 
MGC_VOPT_CMD= vopt $(QUIET) $(RTL_TESTBENCH_TOP) $(VOPT_ARGS) -o tb
 
MGC_VSIM_TGT=tb
 
endif
 
 
 
 
endif
endif
# VSIM commands
# VSIM commands
# Suppressed warnings - 3009: Failed to open $readmemh() file
# Suppressed warnings - 3009: Failed to open $readmemh() file
# Suppressed warnings - 3009: Module 'blah' does not have a `timescale
# Suppressed warnings - 3009: Module 'blah' does not have a `timescale
#                       directive in effect, but previous modules do.
#                       directive in effect, but previous modules do.
# Suppressed warnings - 8598: Non-positive replication multiplier inside
# Suppressed warnings - 8598: Non-positive replication multiplier inside
#                       concat. Replication will be ignored
#                       concat. Replication will be ignored
MGC_VSIM_ARGS=  -suppress 7 -suppress 3009 -suppress 8598 -c $(QUIET) \
MGC_VSIM_ARGS +=  -suppress 7 -suppress 3009 -suppress 8598 -c $(QUIET) \
                -do "set StdArithNoWarnings 1; run -all; exit"
                -do "set StdArithNoWarnings 1; run -all; exit"
# Options required when VPI option used
# Options required when VPI option used
ifeq ($(VPI), 1)
ifeq ($(VPI), 1)
MGC_VPI_LIB=$(VPI_SRC_C_DIR)/$(MODELTECH_VPILIB)
MGC_VPI_LIB=$(VPI_SRC_C_DIR)/$(MODELTECH_VPILIB)
MGC_VSIM_ARGS += -pli $(VPI_SRC_C_DIR)/$(MODELTECH_VPILIB)
MGC_VSIM_ARGS += -pli $(VPI_SRC_C_DIR)/$(MODELTECH_VPILIB)
Line 319... Line 342...
# Single compile rule
# Single compile rule
.PHONY : $(MODELSIM)
.PHONY : $(MODELSIM)
$(MODELSIM): modelsim_bench.scr $(TEST_DEFINES_VLG) $(MGC_VPI_LIB) work
$(MODELSIM): modelsim_bench.scr $(TEST_DEFINES_VLG) $(MGC_VPI_LIB) work
        $(Q)echo; echo "\t### Compiling testbench ###"; echo
        $(Q)echo; echo "\t### Compiling testbench ###"; echo
        $(Q)vlog $(QUIET) -nologo -incr $(BENCH_TOP) -f $<
        $(Q)vlog $(QUIET) -nologo -incr $(BENCH_TOP) -f $<
        $(Q)vopt $(QUIET) $(RTL_TESTBENCH_TOP) $(VOPT_ARGS) -o tb
        $(Q)$(MGC_VOPT_CMD)
        $(Q)echo; echo "\t### Launching simulation ###"; echo
        $(Q)echo; echo "\t### Launching simulation ###"; echo
        $(Q)vsim $(MGC_VSIM_ARGS) tb
        $(Q)vsim $(VOPT_ARGS) $(MGC_VSIM_ARGS) $(MGC_VSIM_TGT)
 
 
#
#
# Icarus Verilog simulator build and run rules
# Icarus Verilog simulator build and run rules
#
#
.PHONY: $(ICARUS_SCRIPT)
.PHONY: $(ICARUS_SCRIPT)

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.