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

Subversion Repositories plasma

[/] [plasma/] [trunk/] [vhdl/] [makefile] - Blame information for rev 352

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 43 rhoads
#Makefile for Plasma
2 2 rhoads
 
3 7 rhoads
#for ModelSim
4
#WORK_DIR = work
5
#DEP_FILE = _primary.dat
6
#COMPILE = vcom -check_synthesis
7 2 rhoads
 
8 7 rhoads
#for FREE VHDL simulator http://www.symphonyeda.com
9 58 rhoads
#WARNING: vhdle now deletes the output.txt if terminated by a ^C
10 7 rhoads
WORK_DIR = work.sym
11
DEP_FILE = prim.dep
12
COMPILE = vhdlp -s
13 2 rhoads
 
14 7 rhoads
all: $(WORK_DIR)/tbench/$(DEP_FILE)
15 2 rhoads
 
16 7 rhoads
run: all
17 58 rhoads
        -@del output.txt
18 103 rhoads
        vhdle -t 30us tbench
19 58 rhoads
        type output.txt|more
20
 
21
run2: all
22
        -@del output.txt
23 103 rhoads
        vhdle -t 50us tbench
24 58 rhoads
        type output.txt|more
25 2 rhoads
 
26 103 rhoads
run3: all
27
        -@del output.txt
28
        vhdle -t 100us tbench
29
        type output.txt|more
30
 
31 25 rhoads
opcodes: all
32 58 rhoads
        make -C ..\tools opcodes
33 25 rhoads
        vhdle -t 200us tbench
34
        @type output.txt|more
35
 
36 7 rhoads
simulate: all
37 103 rhoads
        vhdle -s -t 10us tbench -do simili.cmd -list trace.txt
38 19 rhoads
        -@..\tools\tracehex.exe
39
        -@start ed trace2.txt
40 2 rhoads
 
41 58 rhoads
simulate2: all
42
        vhdle -s -t 4us tbench -do simili.cmd -list trace.txt
43
        -@..\tools\tracehex.exe
44
        -@ed trace2.txt
45
 
46 48 rhoads
$(WORK_DIR)/lpm_pack/$(DEP_FILE): lpm_pack.vhd
47
        $(COMPILE) lpm_pack.vhd
48
 
49
$(WORK_DIR)/lpm_model/$(DEP_FILE): lpm_model.vhd
50
        $(COMPILE) -87 lpm_model.vhd
51
 
52 39 rhoads
$(WORK_DIR)/mlite_pack/$(DEP_FILE): mlite_pack.vhd
53
        $(COMPILE) mlite_pack.vhd
54 2 rhoads
 
55 39 rhoads
$(WORK_DIR)/alu/$(DEP_FILE): mlite_pack.vhd alu.vhd
56 7 rhoads
        $(COMPILE) alu.vhd
57 2 rhoads
 
58 39 rhoads
$(WORK_DIR)/bus_mux/$(DEP_FILE): mlite_pack.vhd bus_mux.vhd
59 7 rhoads
        $(COMPILE) bus_mux.vhd
60 2 rhoads
 
61 39 rhoads
$(WORK_DIR)/control/$(DEP_FILE): mlite_pack.vhd control.vhd
62 7 rhoads
        $(COMPILE) control.vhd
63 2 rhoads
 
64 39 rhoads
$(WORK_DIR)/mem_ctrl/$(DEP_FILE): mlite_pack.vhd mem_ctrl.vhd
65 7 rhoads
        $(COMPILE) mem_ctrl.vhd
66 2 rhoads
 
67 39 rhoads
$(WORK_DIR)/mult/$(DEP_FILE): mlite_pack.vhd mult.vhd
68 7 rhoads
        $(COMPILE) mult.vhd
69 2 rhoads
 
70 39 rhoads
$(WORK_DIR)/pc_next/$(DEP_FILE): mlite_pack.vhd pc_next.vhd
71 7 rhoads
        $(COMPILE) pc_next.vhd
72 2 rhoads
 
73 39 rhoads
$(WORK_DIR)/reg_bank/$(DEP_FILE): mlite_pack.vhd reg_bank.vhd
74 7 rhoads
        $(COMPILE) reg_bank.vhd
75 2 rhoads
 
76 39 rhoads
$(WORK_DIR)/shifter/$(DEP_FILE): mlite_pack.vhd shifter.vhd
77 7 rhoads
        $(COMPILE) shifter.vhd
78
 
79 79 rhoads
$(WORK_DIR)/pipeline/$(DEP_FILE): mlite_pack.vhd pipeline.vhd
80
        $(COMPILE) pipeline.vhd
81
 
82 39 rhoads
$(WORK_DIR)/mlite_cpu/$(DEP_FILE): mlite_cpu.vhd \
83
        $(WORK_DIR)/mlite_pack/$(DEP_FILE) \
84 7 rhoads
        $(WORK_DIR)/alu/$(DEP_FILE) \
85
        $(WORK_DIR)/bus_mux/$(DEP_FILE) \
86
        $(WORK_DIR)/control/$(DEP_FILE) \
87
        $(WORK_DIR)/mem_ctrl/$(DEP_FILE) \
88
        $(WORK_DIR)/mult/$(DEP_FILE) \
89
        $(WORK_DIR)/pc_next/$(DEP_FILE) \
90
        $(WORK_DIR)/reg_bank/$(DEP_FILE) \
91 79 rhoads
        $(WORK_DIR)/shifter/$(DEP_FILE) \
92
        $(WORK_DIR)/pipeline/$(DEP_FILE)
93 39 rhoads
        $(COMPILE) mlite_cpu.vhd
94 7 rhoads
 
95 39 rhoads
$(WORK_DIR)/ram/$(DEP_FILE): mlite_pack.vhd ram.vhd
96 7 rhoads
        $(COMPILE) -87 ram.vhd
97
 
98 48 rhoads
$(WORK_DIR)/uart/$(DEP_FILE): mlite_pack.vhd uart.vhd
99
        $(COMPILE) -87 uart.vhd
100
 
101
$(WORK_DIR)/plasma/$(DEP_FILE): mlite_pack.vhd plasma.vhd \
102
        $(WORK_DIR)/mlite_cpu/$(DEP_FILE) \
103
        $(WORK_DIR)/ram/$(DEP_FILE) \
104
        $(WORK_DIR)/uart/$(DEP_FILE)
105
        $(COMPILE) plasma.vhd
106
 
107 58 rhoads
$(WORK_DIR)/plasma_if/$(DEP_FILE): mlite_pack.vhd plasma_if.vhd \
108
        $(WORK_DIR)/plasma/$(DEP_FILE)
109
        $(COMPILE) plasma_if.vhd
110
 
111 39 rhoads
$(WORK_DIR)/tbench/$(DEP_FILE): mlite_pack.vhd tbench.vhd \
112 58 rhoads
        $(WORK_DIR)/plasma/$(DEP_FILE) \
113
        $(WORK_DIR)/plasma_if/$(DEP_FILE)
114 7 rhoads
        $(COMPILE) tbench.vhd
115
 
116 48 rhoads
altera: $(WORK_DIR)/lpm_pack/$(DEP_FILE) \
117
        $(WORK_DIR)/lpm_model/$(DEP_FILE)
118 58 rhoads
        echo UNUSED > UNUSED
119 48 rhoads
 

powered by: WebSVN 2.1.0

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