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

Subversion Repositories versatile_mem_ctrl

[/] [versatile_mem_ctrl/] [trunk/] [rtl/] [verilog/] [Makefile] - Blame information for rev 79

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

Line No. Rev Author Line
1 50 julius
VERSATILE_FIFO_PROJECT_FILES =versatile_fifo_dual_port_ram.v
2
VERSATILE_FIFO_PROJECT_FILES +=versatile_fifo_async_cmp.v
3
VERSATILE_FIFO_PROJECT_FILES +=dff_sr.v
4
VERSATILE_FIFO_PROJECT_FILES +=async_fifo_mq.v
5
VERSATILE_FIFO_PROJECT_FILES +=async_fifo_mq_md.v
6
VERSATILE_FIFO_PROJECT_FILES +=versatile_fifo_dual_port_ram_dc_sw.v
7 18 mikaeljf
 
8 50 julius
$(VERSATILE_FIFO_PROJECT_FILES):
9
        svn export http://opencores.org/ocsvn/versatile_fifo/versatile_fifo/trunk/rtl/verilog/$@
10 18 mikaeljf
 
11 50 julius
VERSATILE_COUNTER_PROJECT_FILES =versatile_counter_generator.php
12
VERSATILE_COUNTER_PROJECT_FILES +=CSV.class.php
13 42 unneback
 
14 50 julius
$(VERSATILE_COUNTER_PROJECT_FILES):
15
        svn export http://opencores.org/ocsvn/versatile_counter/versatile_counter/trunk/rtl/verilog/$@
16 18 mikaeljf
 
17 31 mikaeljf
versatile_fifo_dual_port_ram_dc_dw.v: versatile_fifo_dual_port_ram.v
18
        vppreproc +define+TYPE+"dc_dw" +define+DC +define+DW +define+DATA_WIDTH+36 +define+ADDR_WIDTH+8 --simple versatile_fifo_dual_port_ram.v > versatile_fifo_dual_port_ram_dc_dw.v
19
 
20 50 julius
# These rules will generate counters as they're required, but some CSVs stil hang around (the ones we don't use, ironically.)
21
counter_csvs:versatile_counter.xls versatile_counter_generator.php CSV.class.php
22
        excel2csv $< -S ,
23 49 julius
 
24 50 julius
%.csv:
25
        $(MAKE) counter_csvs
26 2 unneback
 
27 50 julius
%.v: %.csv
28
        @if [ ! -e $< ]; then ls $<; fi
29
        ./versatile_counter_generator.php $^ > $@
30
 
31 18 mikaeljf
fifo_fill.v: fifo_fill.fzm
32 5 unneback
        perl fizzim.pl -encoding onehot < fifo_fill.fzm > fifo_fill.v
33
 
34 50 julius
ddr_16_generated.v: ddr_16.fzm ddr_16_defines.v
35
                perl fizzim.pl -encoding onehot < ddr_16.fzm > $@
36 11 mikaeljf
 
37 50 julius
ddr_16.v: ddr_16_generated.v
38
        vppreproc --simple $^ > $@
39 2 unneback
 
40 69 mikaeljf
#fifo_adr_counter.v:
41
#       @echo;echo "\tThis file,"$@", doesn't exist, is it still needed?!. \n\tMake will now stop";echo
42
#       ls notexisting
43 11 mikaeljf
 
44 74 mikaeljf
VERSATILE_MEM_CTRL_IP_FILES=versatile_fifo_async_cmp.v async_fifo_mq.v versatile_fifo_dual_port_ram_dc_dw.v ctrl_counter.v fifo.v fifo_fill.v inc_adr.v ref_counter.v ref_delay_counter.v pre_delay_counter.v burst_length_counter.v ddr_16.v fsm_wb.v delay.v ddr_ff.v dcm_pll.v dff_sr.v versatile_mem_ctrl_ddr.v ddr_16_defines.v sdr_16_defines.v codec.v gray_counter.v egress_fifo.v versatile_fifo_dual_port_ram_dc_sw.v fsm_sdr_16.v versatile_mem_ctrl_wb.v versatile_mem_ctrl_top.v
45 33 unneback
 
46 50 julius
versatile_mem_ctrl_ip.v: $(VERSATILE_MEM_CTRL_IP_FILES)
47
        cat $^  | cat copyright.v - > $@
48 35 unneback
 
49 50 julius
# SDRAM 16-bit wide databus dependency files - force a recompile
50 74 mikaeljf
SDR_16_FILES=sdr_16_defines.v fsm_wb.v versatile_fifo_async_cmp.v async_fifo_mq.v delay.v codec.v gray_counter.v egress_fifo.v versatile_fifo_dual_port_ram_dc_sw.v dff_sr.v ref_counter.v fsm_sdr_16.v versatile_mem_ctrl_wb.v versatile_mem_ctrl_top.v
51 50 julius
sdr_16.v: $(SDR_16_FILES)
52 64 julius
        vppreproc +define+SDR_16 +incdir+.  $^ > $@
53 50 julius
 
54
# the single all rule
55
all: versatile_fifo_dual_port_ram.v versatile_fifo_async_cmp.v versatile_fifo_dual_port_ram_dc_dw.v counter_csvs fifo_fill.v sdr_16.v ddr_16.v versatile_mem_ctrl_ip.v
56
 
57
 
58 18 mikaeljf
clean:
59 50 julius
        rm -rf $(VERSATILE_FIFO_PROJECT_FILES) $(VERSATILE_COUNTER_PROJECT_FILES)
60 18 mikaeljf
        rm -rf fifo_fill.v sdr_16.v ddr_16.v
61 50 julius
        rm -f versatile_fifo_dual_port_ram_dc_dw.v ddr_16_generated.v
62 18 mikaeljf
        rm -rf *_counter.v
63 24 mikaeljf
        rm -rf *.csv
64 18 mikaeljf
        rm -rf *~
65 31 mikaeljf
 

powered by: WebSVN 2.1.0

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