OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [orpsocv2/] [sim/] [bin/] [definesgen.inc] - Blame information for rev 606

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 403 julius
# A make rule that creates the test defines verilog file.
2
 
3
# Test defines.v file, called recursively, .PHONY to force its generation
4
.PHONY: $(TEST_DEFINES_VLG)
5
$(TEST_DEFINES_VLG):
6
        $(Q)echo "\`define "$(SIM_TYPE)"_SIM" > $@
7
        $(Q)echo "\`define SIMULATOR_"`echo $(SIMULATOR) | tr  "[:lower:]" "[:upper:]"` >> $@
8
        $(Q)echo "\`define TEST_NAME_STRING \""$(TEST)"\"" >> $@
9
        $(Q)if [ ! -z $$VCD ]; \
10
                then echo "\`define VCD" >> $@; \
11
        fi
12
        $(Q)if [ ! -z $$VCD_DELAY ]; \
13
                then echo "\`define VCD_DELAY "$$VCD_DELAY >> $@; \
14
        fi
15
        $(Q)if [ ! -z $$VCD_DEPTH ]; \
16
                then echo "\`define VCD_DEPTH "$$VCD_DEPTH >> $@; \
17
        fi
18
        $(Q)if [ ! -z $$VCD_DELAY_INSNS ]; \
19
                then echo "\`define VCD_DELAY_INSNS "$$VCD_DELAY_INSNS >> $@; \
20
        fi
21
        $(Q)if [ ! -z $$END_TIME ]; \
22
                then echo "\`define END_TIME "$$END_TIME >> $@; \
23
        fi
24
        $(Q)if [ ! -z $$END_INSNS ]; \
25
                then echo "\`define END_INSNS "$$END_INSNS >> $@; \
26
        fi
27
        $(Q)if [ ! -z $$PRELOAD_RAM ]; \
28
                then echo "\`define PRELOAD_RAM "$$END_TIME >> $@; \
29
        fi
30
        $(Q)if [ -z $$DISABLE_PROCESSOR_LOGS ]; \
31
                then echo "\`define PROCESSOR_MONITOR_ENABLE_LOGS" >> $@; \
32
        fi
33
        $(Q)if [ ! -z $$VPI ]; \
34
                then echo "\`define VPI_DEBUG" >> $@; \
35
        fi
36
        $(Q)if [ ! -z $$SIM_QUIET ]; \
37
                then echo "\`define SIM_QUIET" >> $@; \
38
        fi
39 411 julius
        $(Q)for module in $(GATELEVEL_MODULES); do echo "\`define "$$module"_IS_GATELEVEL " >> $@; done
40
 
41
 
42
 

powered by: WebSVN 2.1.0

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