URL
https://opencores.org/ocsvn/openfpu64/openfpu64/trunk
[/] [openfpu64/] [trunk/] [Makefile] - Blame information for rev 11
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
2 |
bro |
# Set GHDL in environment
|
2 |
|
|
GHDL=ghdl
|
3 |
|
|
GHDLFLAGS = --workdir=work -Wl,-lm -Wc,-m32 -Wl,-m32 -Wa,--32 --ieee=synopsys -fexplicit
|
4 |
|
|
XST= eis-xst
|
5 |
|
|
GHDLA:=$(GHDL) -a $(GHDLFLAGS)
|
6 |
|
|
GHDLE:=$(GHDL) -e $(GHDLFLAGS)
|
7 |
|
|
#prevent make from deleting the .o files
|
8 |
|
|
.PRECIOUS: work/%.o
|
9 |
9 |
bro |
all: clean work/eis_helpers.o work/fpu_package.o work/fpu_mul.o work/fpu_add.o openfpu64_tb
|
10 |
2 |
bro |
|
11 |
|
|
showme_%: %
|
12 |
|
|
./$< --wave=$<.ghw --stop-time=1ms
|
13 |
7 |
bro |
gtkwave $<.ghw $<.sav
|
14 |
2 |
bro |
|
15 |
|
|
work/%.o: %.vhd
|
16 |
|
|
$(GHDLA) $<
|
17 |
|
|
|
18 |
7 |
bro |
%_tb: eis_helpers.vhd work/eis_helpers.o %.vhd work/%.o %_tb.vhd work/%_tb.o
|
19 |
2 |
bro |
$(GHDLE) $@
|
20 |
|
|
|
21 |
|
|
%: %.vhd work/%.o
|
22 |
|
|
$(GHDLE) $@
|
23 |
|
|
|
24 |
11 |
bro |
empty_testsuite:
|
25 |
|
|
cat openfpu64_tb.head.vhd openfpu64_tb.tail.vhd > openfpu64_tb.vhd
|
26 |
|
|
|
27 |
2 |
bro |
addsub_testsuite:
|
28 |
|
|
cat openfpu64_tb.head.vhd tests/openfpu64_tb.addsub.inc.vhd openfpu64_tb.tail.vhd > openfpu64_tb.vhd
|
29 |
|
|
|
30 |
|
|
custom_testsuite:
|
31 |
|
|
cat openfpu64_tb.head.vhd tests/openfpu64_tb.custom.inc.vhd openfpu64_tb.tail.vhd > openfpu64_tb.vhd
|
32 |
|
|
|
33 |
|
|
add_testsuite:
|
34 |
|
|
cat openfpu64_tb.head.vhd tests/openfpu64_tb.add.inc.txt openfpu64_tb.tail.vhd > openfpu64_tb.vhd
|
35 |
|
|
|
36 |
|
|
sub_testsuite:
|
37 |
|
|
cat openfpu64_tb.head.vhd tests/openfpu64_tb.sub.inc.txt openfpu64_tb.tail.vhd > openfpu64_tb.vhd
|
38 |
|
|
|
39 |
|
|
mul_testsuite:
|
40 |
|
|
cat openfpu64_tb.head.vhd tests/openfpu64_tb.mul.inc.txt openfpu64_tb.tail.vhd > openfpu64_tb.vhd
|
41 |
|
|
|
42 |
9 |
bro |
quartus_distribution:
|
43 |
|
|
mkdir -p openfpu64_quartus
|
44 |
|
|
cp -f fpu_package.vhd fpu_add.vhd fpu_mul.vhd openfpu64.vhd openfpu64_hw.tcl gpl.txt openfpu64_quartus
|
45 |
|
|
@echo "Now copy the files in openfpu64_quartus to the root directory of your QuartusII(tm) project"
|
46 |
|
|
|
47 |
2 |
bro |
clean:
|
48 |
|
|
$(GHDL) --clean --workdir=work
|
49 |
|
|
rm -rfv *.ghw *.cf *.log *.ngc *.ngr *.prj *.xrpt *.ifn *.ise xst_work xlnx_auto_0_xdb implement_viscy viscy.bit
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.