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 4

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
 
18
VERSATILE_LIBRARIES = versatile_library.v
19
VERSATILE_LIBRARIES += versatile_library_actel.v
20
VERSATILE_LIBRARIES += versatile_library_altera.v
21
 
22
svn_export:
23
        svn export http://opencores.org/ocsvn/versatile_counter/versatile_counter/trunk/rtl/verilog/versatile_counter_generator.php
24
        svn export http://opencores.org/ocsvn/versatile_counter/versatile_counter/trunk/rtl/verilog/CSV.class.php
25
 
26
#.PHONY: $(VERILOG_FILES_CNT)
27
$(VERILOG_FILES_CNT):
28 4 unneback
        ./versatile_counter_generator.php cnt_bin_ce.csv > cnt_bin_ce.v
29
        ./versatile_counter_generator.php cnt_bin_ce_clear.csv > cnt_bin_ce_clear.v
30
        ./versatile_counter_generator.php cnt_bin_ce_clear_set_rew.csv > cnt_bin_ce_clear_set_rew.v
31
        ./versatile_counter_generator.php cnt_bin_ce_rew_l1.csv > cnt_bin_ce_rew_l1.v
32
        ./versatile_counter_generator.php cnt_lfsr_zq.csv > cnt_lfsr_zq.v
33
        ./versatile_counter_generator.php cnt_lfsr_ce_zq.csv > cnt_lfsr_ce_zq.v
34
        ./versatile_counter_generator.php cnt_lfsr_ce_rew_l1.csv > cnt_lfsr_ce_rew_l1.v
35 3 unneback
        ./versatile_counter_generator.php cnt_gray_ce.csv > cnt_gray_ce.v
36 4 unneback
        ./versatile_counter_generator.php cnt_gray_ce_bin.csv > cnt_gray_ce_bin.v
37 3 unneback
 
38
versatile_library.v: $(VERILOG_FILES)
39
        cat $(VERILOG_FILES)  | sed -r -e 's/\/\/E2_([a-z]+)/`\1/' > versatile_library.v
40
 
41
versatile_library_actel.v: $(VERILOG_FILES)
42
        vppreproc  --noline --noblank +define+ACTEL $(VERILOG_FILES) | sed -r -e 's/\/\/E2_([a-z]+)/`\1/' > versatile_library_actel.v
43
 
44
versatile_library_altera.v: $(VERILOG_FILES)
45
        vppreproc  --noline --noblank +define+ALTERA $(VERILOG_FILES) > versatile_library_altera.v
46
 
47
all: $(VERSATILE_LIBRARIES)
48
 
49
clean:
50
        rm $(VERSATILE_LIBRARIES)
51
        rm  $(VERILOG_FILES_CNT)

powered by: WebSVN 2.1.0

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