1 |
111 |
unneback |
VLIB_BASE = vmemctrl_vl_
|
2 |
|
|
VLIB_DEFINES = +define+BASE+$(VLIB_BASE)
|
3 |
|
|
VLIB_DEFINES += +define+WB3WB3_BRIDGE
|
4 |
|
|
VLIB_DEFINES += +define+WB3_ARBITER_TYPE1
|
5 |
|
|
VLIB_DEFINES += +define+CNT_LFSR_ZQ
|
6 |
|
|
VLIB_DEFINES += +define+DELAY_EMPTYFLAG
|
7 |
|
|
VLIB_DEFINES += +define+DFF_CE_CLEAR
|
8 |
|
|
VLIB_DEFINES += +define+WB_B3_RAM_BE
|
9 |
|
|
#VLIB_DEFINES += +define+SYSTEMVERILOG
|
10 |
|
|
VLIB_ALTERA = vmemctrl_vl_altera.v
|
11 |
|
|
VLIB_ACTEL = vmemctrl_vl_actel.v
|
12 |
|
|
VLIB = versatile_library.v
|
13 |
|
|
VLIB += $(VLIB_ALTERA)
|
14 |
|
|
VLIB += $(VLIB_ACTEL)
|
15 |
|
|
RTL_FILES = versatile_mem_ctrl_defines.v
|
16 |
|
|
RTL_FILES += sdr_sdram_ctrl.v
|
17 |
|
|
RTL_FILES += versatile_mem_ctrl_top.v
|
18 |
112 |
unneback |
#RTL_FILES += ddr3_2agx125n_cache_dpram.v
|
19 |
|
|
#RTL_FILES += ddr3_2agx125n_if.v
|
20 |
|
|
#RTL_FILES += ddr3_2agx125n/ddr3_2agx125n_ip.v
|
21 |
111 |
unneback |
OUT_FILE = vmemctrl.v
|
22 |
112 |
unneback |
#ALTERA_INCLUDE = /opt/altera/11.0/ip/altera/alt_mem_if/alt_mem_if_controllers/alt_mem_if_nextgen_ddr_controller_110/rtl/alt_mem_ddrx_define
|
23 |
49 |
julius |
|
24 |
111 |
unneback |
VCOUNT_FILES = VersatileCounter.class.php
|
25 |
|
|
VCOUNT_FILES += VersatileCounter.php
|
26 |
|
|
$(VCOUNT_FILES):
|
27 |
|
|
for file in $(VCOUNT_FILES) ; do \
|
28 |
|
|
svn export http://opencores.org/ocsvn/versatile_library/versatile_library/trunk/misc/$$file ; \
|
29 |
|
|
done
|
30 |
|
|
refresh: $(VCOUNT_FILES)
|
31 |
|
|
./VersatileCounter.php 10 1000
|
32 |
|
|
./VersatileCounter.php 9 500
|
33 |
|
|
./VersatileCounter.php 11 1172
|
34 |
|
|
./VersatileCounter.php 10 586
|
35 |
|
|
./VersatileCounter.php 11 1954
|
36 |
|
|
./VersatileCounter.php 10 977
|
37 |
|
|
./VersatileCounter.php 12 2079
|
38 |
|
|
./VersatileCounter.php 11 1040
|
39 |
|
|
./VersatileCounter.php 12 2407
|
40 |
|
|
./VersatileCounter.php 11 1204
|
41 |
112 |
unneback |
|
42 |
97 |
unneback |
export:
|
43 |
|
|
svn export http://opencores.org/ocsvn/versatile_library/versatile_library/trunk/rtl/verilog/versatile_library.v
|
44 |
112 |
unneback |
svn export http://opencores.org/ocsvn/versatile_library/versatile_library/trunk/backend/altera/lpm_ff.v
|
45 |
111 |
unneback |
vppreproc --noline --noblank +define+ALTERA $(VLIB_DEFINES) versatile_library.v | sed -r -e 's/\/\/E2_([a-z]+)/`\1/' > $(VLIB_ALTERA)
|
46 |
|
|
vppreproc --noline --noblank +define+ACTEL $(VLIB_DEFINES) versatile_library.v | sed -r -e 's/\/\/E2_([a-z]+)/`\1/' > $(VLIB_ACTEL)
|
47 |
|
|
|
48 |
|
|
config:
|
49 |
|
|
configurator versatile_mem_ctrl_defines.v
|
50 |
|
|
|
51 |
|
|
versatile_mem_ctrl: config
|
52 |
|
|
vppreproc --simple +define+VLBASE+$(VLIB_BASE) $(RTL_FILES) | cat copyright.v - > $(OUT_FILE)
|
53 |
|
|
|
54 |
|
|
test: versatile_mem_ctrl
|
55 |
112 |
unneback |
iverilog -y$(ALTERA_INCLUDE) -tnull lpm_ff.v $(VLIB_ALTERA) $(OUT_FILE)
|
56 |
|
|
iverilog -y$(ALTERA_INCLUDE) -tnull $(VLIB_ACTEL) $(OUT_FILE)
|
57 |
111 |
unneback |
|
58 |
50 |
julius |
# the single all rule
|
59 |
112 |
unneback |
all: export versatile_mem_ctrl
|
60 |
50 |
julius |
|
61 |
18 |
mikaeljf |
clean:
|
62 |
113 |
unneback |
rm -rf $(VLIB) $(OUT_FILE) $(VCOUNT_FILES) lpm_ff.v
|