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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [fpga/] [mc-sim/] [Makefile] - Blame information for rev 331

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

Line No. Rev Author Line
1 292 hellwig
#
2 303 hellwig
# Makefile for multicycle simulation of ECO32
3 292 hellwig
#
4
 
5 303 hellwig
BUILD = ../../build
6
 
7
SRCS = eco32test.v \
8
       src/eco32/eco32.v \
9
       src/clk_rst/clk_rst.v \
10
       src/cpu/cpu.v \
11
       src/cpu/cpu_bus.v \
12
       src/cpu/cpu_core.v \
13
       src/ram/ram.v \
14
       src/rom/rom.v \
15
       src/tmr/tmr.v \
16
       src/dsp/dsp.v \
17
       src/kbd/kbd.v \
18
       src/ser/ser.v
19
BIN = eco32test
20
 
21
.PHONY:         all install run show clean
22
 
23 292 hellwig
all:
24
 
25
install:
26
 
27 303 hellwig
$(BIN):         $(SRCS)
28
                iverilog -Wall -o $(BIN) $(SRCS)
29
 
30
run:            $(BIN)
31
                @if [ ! -r duration.dat ] ; then \
32
                  echo "cp defdata/duration.dat ." ; \
33
                  cp defdata/duration.dat . ; \
34
                fi
35
                @if [ ! -r rom.dat ] ; then \
36
                  echo "cp defdata/rom.dat ." ; \
37
                  cp defdata/rom.dat . ; \
38
                fi
39
                @if [ ! -r kbd.dat ] ; then \
40
                  echo "cp defdata/kbd.dat ." ; \
41
                  cp defdata/kbd.dat . ; \
42
                fi
43
                @if [ ! -r ser0.dat ] ; then \
44
                  echo "cp defdata/ser0.dat ." ; \
45
                  cp defdata/ser0.dat . ; \
46
                fi
47
                @if [ ! -r ser1.dat ] ; then \
48
                  echo "cp defdata/ser1.dat ." ; \
49
                  cp defdata/ser1.dat . ; \
50
                fi
51
                ./$(BIN)
52
 
53
show:           run
54
                gtkwave dump.vcd eco32test.cfg
55
 
56 292 hellwig
clean:
57 303 hellwig
                rm -f *~ $(BIN) dump.vcd
58
                rm -f duration.dat rom.dat
59
                rm -f kbd.dat dsp.out
60
                rm -f ser0.dat ser0.out
61
                rm -f ser1.dat ser1.out
62
                rm -f src/*~
63
                rm -f src/eco32/*~ src/clk_rst/*~ src/cpu/*~
64
                rm -f src/ram/*~ src/rom/*~ src/tmr/*~
65
                rm -f src/dsp/*~ src/kbd/*~ src/ser/*~

powered by: WebSVN 2.1.0

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