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

Subversion Repositories versatile_library

[/] [versatile_library/] [trunk/] [rtl/] [verilog/] [Makefile] - Blame information for rev 12

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

Line No. Rev Author Line
1 3 unneback
VERILOG_FILES = clk_and_reset.v
2
VERILOG_FILES += registers.v
3
 
4 4 unneback
VERILOG_FILES_CNT = cnt_bin_ce.v
5
VERILOG_FILES_CNT += cnt_bin_ce_clear.v
6
VERILOG_FILES_CNT += cnt_bin_ce_clear_set_rew.v
7
VERILOG_FILES_CNT += cnt_bin_ce_rew_l1.v
8
VERILOG_FILES_CNT += cnt_lfsr_zq.v
9
VERILOG_FILES_CNT += cnt_lfsr_ce_zq.v
10
VERILOG_FILES_CNT += cnt_lfsr_ce_rew_l1.v
11 3 unneback
VERILOG_FILES_CNT += cnt_gray.v
12
VERILOG_FILES_CNT += cnt_gray_ce.v
13 4 unneback
VERILOG_FILES_CNT += cnt_gray_ce_bin.v
14 3 unneback
 
15
VERILOG_FILES += $(VERILOG_FILES_CNT)
16
VERILOG_FILES += counters.v
17 5 unneback
VERILOG_FILES += memories.v
18 12 unneback
VERILOG_FILES += wb.v
19 3 unneback
 
20
VERSATILE_LIBRARIES = versatile_library.v
21
VERSATILE_LIBRARIES += versatile_library_actel.v
22
VERSATILE_LIBRARIES += versatile_library_altera.v
23
 
24
svn_export:
25
        svn export http://opencores.org/ocsvn/versatile_counter/versatile_counter/trunk/rtl/verilog/versatile_counter_generator.php
26
        svn export http://opencores.org/ocsvn/versatile_counter/versatile_counter/trunk/rtl/verilog/CSV.class.php
27
 
28
#.PHONY: $(VERILOG_FILES_CNT)
29
$(VERILOG_FILES_CNT):
30 4 unneback
        ./versatile_counter_generator.php cnt_bin_ce.csv > cnt_bin_ce.v
31
        ./versatile_counter_generator.php cnt_bin_ce_clear.csv > cnt_bin_ce_clear.v
32
        ./versatile_counter_generator.php cnt_bin_ce_clear_set_rew.csv > cnt_bin_ce_clear_set_rew.v
33
        ./versatile_counter_generator.php cnt_bin_ce_rew_l1.csv > cnt_bin_ce_rew_l1.v
34
        ./versatile_counter_generator.php cnt_lfsr_zq.csv > cnt_lfsr_zq.v
35
        ./versatile_counter_generator.php cnt_lfsr_ce_zq.csv > cnt_lfsr_ce_zq.v
36
        ./versatile_counter_generator.php cnt_lfsr_ce_rew_l1.csv > cnt_lfsr_ce_rew_l1.v
37 3 unneback
        ./versatile_counter_generator.php cnt_gray_ce.csv > cnt_gray_ce.v
38 4 unneback
        ./versatile_counter_generator.php cnt_gray_ce_bin.csv > cnt_gray_ce_bin.v
39 3 unneback
 
40
versatile_library.v: $(VERILOG_FILES)
41
        cat $(VERILOG_FILES)  | sed -r -e 's/\/\/E2_([a-z]+)/`\1/' > versatile_library.v
42
 
43
versatile_library_actel.v: $(VERILOG_FILES)
44
        vppreproc  --noline --noblank +define+ACTEL $(VERILOG_FILES) | sed -r -e 's/\/\/E2_([a-z]+)/`\1/' > versatile_library_actel.v
45
 
46
versatile_library_altera.v: $(VERILOG_FILES)
47
        vppreproc  --noline --noblank +define+ALTERA $(VERILOG_FILES) > versatile_library_altera.v
48
 
49
all: $(VERSATILE_LIBRARIES)
50
 
51
clean:
52
        rm $(VERSATILE_LIBRARIES)
53
        rm  $(VERILOG_FILES_CNT)

powered by: WebSVN 2.1.0

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