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

Subversion Repositories wb_lcd

[/] [wb_lcd/] [trunk/] [verilog/] [wb_lcd/] [boards/] [s3esk-wb_lcd/] [synthesis/] [Makefile] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 jvillar
#############################################################################
2
# Master path definitions
3
 
4
TOPDIR?=$(shell pwd)
5
TOOLS_DIR=$(TOPDIR)/../../../tools
6
CORE_DIR=$(TOPDIR)/../../../rtl
7
BOARD_DIR=$(TOPDIR)/../rtl
8
#CHIPSCOPE_DIR=$(TOPDIR)/../chipscope
9
 
10
#############################################################################
11
# Board and core source files for synthesis and simulation
12
 
13
BOARD_SYN=$(wildcard $(BOARD_DIR)/*.v)
14
BOARD_SIM=$(wildcard $(BOARD_DIR)/*.v)
15
 
16
CORE_SRCS=$(wildcard $(CORE_DIR)/*.v)
17
#CHIPSCOPE_SRCS=$(wildcard $(CHIPSCOPE_DIR)/*.v)
18
 
19
SYN_SRC=                \
20
        $(BOARD_SYN)    \
21
        $(CORE_SRCS)
22
 
23
#SYN_SRC=               \
24
#       $(BOARD_SYN)    \
25
#       $(CORE_SRCS)    \
26
#       $(CHIPSCOPE_SRCS)
27
 
28
SIM_SRC=                \
29
        $(BOARD_SYN)    \
30
        $(CORE_SRCS)
31
 
32
VINCDIR=                \
33
        -I$(CORE_DIR)   \
34
        -I$(BOARD_DIR)
35
 
36
 
37
#############################################################################
38
# Syntheis constants
39
SYNCLEAN=system.bgn system.drc system.mrp system.ngd system.pcf
40
SYNCLEAN+=system.bld system.lso system.ncd system.ngm system.srp
41
SYNCLEAN+=system.bit system_signalbrowser.* system-routed_pad.tx system.bin
42
SYNCLEAN+=system.map system_summary.xml timing.twr
43
SYNCLEAN+=system-routed* system_usage* system.ngc param.opt netlist.lst
44
SYNCLEAN+=xst system.prj system.prm
45
SYNCLEAN+=*.lso
46
# for ISE 10.1
47
SYNCLEAN+=xlnx_auto_0.ise system_par.xrpt smartpreview.twr system.ngc_xst.xrpt
48
SYNCLEAN+=system_ngdbuild.xrpt system_map.xrpt xlnx_auto_0_xdb _impactbatch.log
49
 
50
USAGE_DEPTH=5
51
SMARTGUIDE=
52
#############################################################################
53
# Simulation constants
54
SIMCLEAN=system_sim.vvp system_sim.vcd verilog.log system_sim.vvp.list
55
 
56
CVER=cver
57
GTKWAVE=gtkwave
58
IVERILOG=iverilog
59
VVP=vvp
60
 
61
#############################################################################
62
#
63
all: system.bit system.bin
64
sim: system_sim.vcd
65
syn: system.bit
66
view: system_sim.view
67
 
68
#############################################################################
69
# Icarus verilog simulation
70
 
71
system_sim.vvp: $(SIM_SRC)
72
        rm -f $@.list
73
        @for i in `echo $^`; do \
74
            echo $$i >> $@.list; \
75
        done
76
        $(IVERILOG) -o $@ $(VINCDIR) -c $@.list -s $(@:.vvp=) -s glbl
77
 
78
%.vcd: %.vvp
79
        $(VVP) $<
80
 
81
#############################################################################
82
# ISE Synthesis
83
 
84
system.prj: $(SYN_SRC)
85
        rm -f system.prj
86
        @for i in `echo $^`; do \
87
            echo "verilog work $$i" >> system.prj; \
88
        done
89
 
90
system.ngc: system.prj
91
        xst -ifn system.xst
92
 
93
system.ngd: system.ngc system.ucf
94
        ngdbuild -uc system.ucf system.ngc
95
#       ngdbuild -uc system.ucf -sd $(CHIPSCOPE_DIR) system.ngc
96
 
97
system.ncd: system.ngd
98
        map $(SMARTGUIDE) system.ngd
99
 
100
system-routed.ncd: system.ncd
101
        par $(SMARTGUIDE) -ol high -w system.ncd system-routed.ncd
102
 
103
system.bit: system-routed.ncd
104
        bitgen -w system-routed.ncd system.bit
105
 
106
system.bin: system.bit
107
        promgen -u 0x0 system.bit -p bin -w
108
 
109
system.mcs: system.bit
110
        promgen -u 0 system
111
 
112
system-routed.xdl: system-routed.ncd
113
        xdl -ncd2xdl system-routed.ncd system-routed.xdl
114
 
115
system-routed.twr: system-routed.ncd
116
        trce -v 10 system-routed.ncd system.pcf
117
 
118
timing: system-routed.twr
119
 
120
usage: system-routed.xdl
121
        $(TOOLS_DIR)/xdlanalyze/xdlanalyze.pl system-routed.xdl $(USAGE_DEPTH)
122
 
123
####################################################################
124
# final targets
125
 
126
load: system.bit
127
        impact -batch impact.batch
128
 
129
#analyze: load
130
#       analyzer.sh
131
 
132
%.view: %.vcd
133
        $(GTKWAVE) $< $<.save
134
 
135
clean:
136
        rm -Rf $(SYNCLEAN) $(SIMCLEAN)
137
 
138
.PHONY: clean view
139
 

powered by: WebSVN 2.1.0

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