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

Subversion Repositories csa

[/] [csa/] [trunk/] [bench/] [makefile] - Blame information for rev 20

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

Line No. Rev Author Line
1 9 simon111
 
2 20 simon111
PROJ_NAME ?= stream_cypher
3 15 simon111
DEBUG     ?= y
4 9 simon111
 
5 20 simon111
MODELSIM_DIR=/opt/modeltech
6
 
7 15 simon111
ifeq ($(DEBUG),y)
8
CFLAGS=-DDEBUG
9
else
10
CFLAGS=
11
endif
12 9 simon111
 
13 20 simon111
all:csa_pli.vpi $(PROJ_NAME).vvp csa_pli_modelsim
14 15 simon111
 
15 12 simon111
csa_pli.vpi:csa_pli.c
16 15 simon111
        iverilog-vpi $(CFLAGS) --name=csa_pli  $^ >/dev/null
17 20 simon111
        rm -fr csa_pli.o
18 12 simon111
 
19 20 simon111
csa_pli_modelsim:csa_pli.sl
20
 
21
%.sl:%.o
22
        ld -shared -E -o $@ $^
23
        rm -fr csa_pli.o
24
 
25
%.o:%.c
26
        gcc -c -g -I$(MODELSIM_DIR)/include $^
27
 
28
 
29 9 simon111
%.vvp:%_tb.v ../rtl/%.v
30 15 simon111
        iverilog $(CFLAGS) -tvvp -o$@ $^
31 9 simon111
 
32 12 simon111
test:csa_pli.vpi $(PROJ_NAME).vvp
33
        vvp -M. -mcsa_pli $(PROJ_NAME).vvp
34 9 simon111
 
35
clean:
36 20 simon111
        rm -fr *.o *.vvp *.vpi *.log *.key *.sl
37 9 simon111
 
38 12 simon111
key_schedule.vvp:key_schedule_tb.v ../rtl/key_schedule.v ../rtl/key_perm.v
39
 
40 17 simon111
block_decypher.vvp:block_decypher_tb.v ../rtl/block_decypher.v ../rtl/block_perm.v ../rtl/block_sbox.v
41 18 simon111
 
42
decypht.vvp:decrypt_tb.v ../rtl/decrypt.v
43 20 simon111
 
44
stream_cypher.vvp:stream_cypher_tb.v                 \
45
                        ../rtl/stream_cypher.v       \
46
                        ../rtl/sbox1.v               \
47
                        ../rtl/sbox2.v               \
48
                        ../rtl/sbox3.v               \
49
                        ../rtl/sbox4.v               \
50
                        ../rtl/sbox5.v               \
51
                        ../rtl/sbox6.v               \
52
                        ../rtl/sbox7.v               \
53
                        ../rtl/sboxes.v              \
54
                        ../rtl/stream_iteration.v    \
55
                        ../rtl/stream_byte.v         \
56
                        ../rtl/stream_8bytes.v

powered by: WebSVN 2.1.0

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