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

Subversion Repositories zet86

[/] [zet86/] [trunk/] [tests/] [Makefile] - Blame information for rev 39

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

Line No. Rev Author Line
1 39 zeus
#s3roms :=  $(patsubst %.s,%.s3rom,$(wildcard *.s))
2
ml403roms := $(patsubst %.s,%.bin,$(wildcard *.s))
3
rtlroms := $(patsubst %.s,%.rtlrom,$(wildcard *s))
4
 
5
all: $(ml403roms)
6
 
7
# altera: ../../altera/zet/simulation/modelsim/bios0.dat ../../altera/zet/simulation/modelsim/bios1.dat
8
 
9
# ../../altera/zet/simulation/modelsim/bios0.dat: bios0.out
10
#       hexdump -v -e '1/1 "%02X"' -e '"\n"' bios0.out > ../../altera/zet/simulation/modelsim/bios0.dat
11
 
12
#../../altera/zet/simulation/modelsim/bios1.dat: bios1.out
13
#       hexdump -v -e '1/1 "%02X"' -e '"\n"' bios1.out > ../../altera/zet/simulation/modelsim/bios1.dat
14
 
15
#../../sim/bios.dat: bios.out
16
#       hexdump -v -e '1/1 "%02X"' -e '"\n"' bios.out > ../../sim/bios.dat
17
#       hexdump -v -e '1/2 "0x1%04_ax/%04x"' -e '"\n"' bios.out | awk -F/ '{printf "00%x/%s\n", rshift(strtonum($$1),1), $$2}' > ../../impl/spartan3an-sk/sim/flash-prom/memory_file
18
 
19
#$(BIOS): bios.out
20
#       splitlh bios.out $(BIOS)
21
 
22
%.s3rom: %.out
23
        hexdump -v -e '1/2 "0x1%04_ax/%04x"' -e '"\n"' $< | awk -F/ '{printf "00%x/%s\n", rshift(strtonum($$1),1), $$2}' > ../../impl/spartan3an-sk/sim/flash-prom/$@
24
 
25
%.mcs: %.out
26
        echo :020000040001F9 > $@
27
        hexdump -v -e '":20%04_ax00"' -e '32/1 "%02x"' -e '"00"' -e '"\n"' $< | tr a-z A-Z >> $@
28
        echo :00000001FF >> $@
29
 
30
#%.ml403: %.fout hd.img.rtl
31
#       paste -d\\ hd.img.rtl $< >../../impl/virtex4-ml403ep/sim/$@
32
 
33
%.ml403: %.rom
34
        hexdump -v -e '4/1 "%02X"' -e '"\n"' $< > ../../impl/virtex4-ml403ep/sim/$@
35
 
36
%.fout: %.out hd.img.rtl
37
        for i in $$(seq 32768); do echo FFFF; done >$@
38
        hexdump -v -e '1/2 "%04X"' -e '"\n"' $< >>$@
39
        for i in $$(seq $$(( $$(wc -l hd.img.rtl | cut -f1 -d\ )-65536))); do echo FFFF; done >$@
40
%.rtlrom: %.out
41
        hexdump -v -e '1/2 "%04X"' -e '"\n"' $< > ../../sim/$@
42
 
43
%.rtlold: %.out
44
        hexdump -v -e '1/1 "%02X"' -e '"\n"' $< > ../../sim/$@
45
 
46
%.rom: %.rom16
47
        out2rom-ml403 ff.out $< > $@
48
 
49
%.rom16: %.out ff.out
50
        cat ff.out $< > $@
51
 
52
%.bin: %.rom
53
        cat count.rom $< > $@
54
 
55
%.out: %.o
56
        objcopy -O binary -S $< $@
57
 
58
%.o: %.s
59
        as $< -o $@
60
 
61
hd.img.rtl: hd.img
62
        hexdump -v -e '1/2 "%04X"' -e '"\n"' $< >$@
63
 
64
clean:
65
        rm -f *.o *.out *.bin *.mcs ../../impl/spartan3an-sk/sim/flash-prom/*.s3rom ../../sim/*.rtlrom

powered by: WebSVN 2.1.0

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