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 40

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

Line No. Rev Author Line
1 40 unneback
VERILOG_FILES = defines.v
2
VERILOG_FILES += clk_and_reset.v
3 3 unneback
VERILOG_FILES += registers.v
4 18 unneback
VERILOG_FILES += logic.v
5 3 unneback
 
6 22 unneback
VERILOG_FILES_CNT = vl_cnt_bin.v
7
VERILOG_FILES_CNT += vl_cnt_bin_clear.v
8
VERILOG_FILES_CNT += vl_cnt_bin_ce.v
9 18 unneback
VERILOG_FILES_CNT += vl_cnt_bin_ce_clear.v
10 29 unneback
VERILOG_FILES_CNT += vl_cnt_bin_ce_clear_l1_l2.v
11 18 unneback
VERILOG_FILES_CNT += vl_cnt_bin_ce_clear_set_rew.v
12
VERILOG_FILES_CNT += vl_cnt_bin_ce_rew_l1.v
13 25 unneback
VERILOG_FILES_CNT += vl_cnt_bin_ce_rew_zq_l1.v
14
VERILOG_FILES_CNT += vl_cnt_bin_ce_rew_q_zq_l1.v
15 18 unneback
VERILOG_FILES_CNT += vl_cnt_lfsr_zq.v
16
VERILOG_FILES_CNT += vl_cnt_lfsr_ce_zq.v
17 26 unneback
VERILOG_FILES_CNT += vl_cnt_lfsr_ce_q.v
18
VERILOG_FILES_CNT += vl_cnt_lfsr_ce_clear_q.v
19 22 unneback
VERILOG_FILES_CNT += vl_cnt_lfsr_ce_q_zq.v
20 18 unneback
VERILOG_FILES_CNT += vl_cnt_lfsr_ce_rew_l1.v
21
VERILOG_FILES_CNT += vl_cnt_gray.v
22
VERILOG_FILES_CNT += vl_cnt_gray_ce.v
23
VERILOG_FILES_CNT += vl_cnt_gray_ce_bin.v
24 3 unneback
 
25
VERILOG_FILES += $(VERILOG_FILES_CNT)
26
VERILOG_FILES += counters.v
27 5 unneback
VERILOG_FILES += memories.v
28 12 unneback
VERILOG_FILES += wb.v
29 18 unneback
VERILOG_FILES += arith.v
30 3 unneback
 
31
VERSATILE_LIBRARIES = versatile_library.v
32
VERSATILE_LIBRARIES += versatile_library_actel.v
33
VERSATILE_LIBRARIES += versatile_library_altera.v
34 40 unneback
OUT_FILE ?= custom.v
35
VERSATILE_LIBRARIES += $(OUT_FILE)
36 3 unneback
 
37
#.PHONY: $(VERILOG_FILES_CNT)
38
$(VERILOG_FILES_CNT):
39 22 unneback
        ./versatile_counter_generator.php cnt_bin.csv > vl_cnt_bin.v
40
        ./versatile_counter_generator.php cnt_bin_clear.csv > vl_cnt_bin_clear.v
41 18 unneback
        ./versatile_counter_generator.php cnt_bin_ce.csv > vl_cnt_bin_ce.v
42
        ./versatile_counter_generator.php cnt_bin_ce_clear.csv > vl_cnt_bin_ce_clear.v
43 29 unneback
        ./versatile_counter_generator.php cnt_bin_ce_clear_l1_l2.csv > vl_cnt_bin_ce_clear_l1_l2.v
44 18 unneback
        ./versatile_counter_generator.php cnt_bin_ce_clear_set_rew.csv > vl_cnt_bin_ce_clear_set_rew.v
45
        ./versatile_counter_generator.php cnt_bin_ce_rew_l1.csv > vl_cnt_bin_ce_rew_l1.v
46 25 unneback
        ./versatile_counter_generator.php cnt_bin_ce_rew_zq_l1.csv > vl_cnt_bin_ce_rew_zq_l1.v
47
        ./versatile_counter_generator.php cnt_bin_ce_rew_q_zq_l1.csv > vl_cnt_bin_ce_rew_q_zq_l1.v
48 18 unneback
        ./versatile_counter_generator.php cnt_lfsr_zq.csv > vl_cnt_lfsr_zq.v
49
        ./versatile_counter_generator.php cnt_lfsr_ce_zq.csv > vl_cnt_lfsr_ce_zq.v
50 26 unneback
        ./versatile_counter_generator.php cnt_lfsr_ce_q.csv > vl_cnt_lfsr_ce_q.v
51
        ./versatile_counter_generator.php cnt_lfsr_ce_clear_q.csv > vl_cnt_lfsr_ce_clear_q.v
52 22 unneback
        ./versatile_counter_generator.php cnt_lfsr_ce_q_zq.csv > vl_cnt_lfsr_ce_q_zq.v
53 18 unneback
        ./versatile_counter_generator.php cnt_lfsr_ce_rew_l1.csv > vl_cnt_lfsr_ce_rew_l1.v
54
        ./versatile_counter_generator.php cnt_gray.csv > vl_cnt_gray.v
55
        ./versatile_counter_generator.php cnt_gray_ce.csv > vl_cnt_gray_ce.v
56
        ./versatile_counter_generator.php cnt_gray_ce_bin.csv > vl_cnt_gray_ce_bin.v
57 3 unneback
 
58
versatile_library.v: $(VERILOG_FILES)
59
        cat $(VERILOG_FILES)  | sed -r -e 's/\/\/E2_([a-z]+)/`\1/' > versatile_library.v
60
 
61
versatile_library_actel.v: $(VERILOG_FILES)
62 40 unneback
        vppreproc  --noline --noblank +define+ACTEL +define+ALL $(VERILOG_FILES) | sed -r -e 's/\/\/E2_([a-z]+)/`\1/' > versatile_library_actel.v
63 3 unneback
 
64
versatile_library_altera.v: $(VERILOG_FILES)
65 40 unneback
        vppreproc  --noline --noblank +define+ALTERA +define+ALL $(VERILOG_FILES) | sed -r -e 's/\/\/E2_([a-z]+)/`\1/' > versatile_library_altera.v
66
 
67
$(OUT_FILE): $(VERILOG_FILES)
68
        vppreproc  --noline --noblank $(DEFINE_FILE) $(VERILOG_FILES) | sed -r -e 's/\/\/E2_([a-z]+)/`\1/' > $(OUT_FILE)
69 3 unneback
 
70 40 unneback
 
71 3 unneback
all: $(VERSATILE_LIBRARIES)
72
 
73
clean:
74
        rm $(VERSATILE_LIBRARIES)
75
        rm  $(VERILOG_FILES_CNT)

powered by: WebSVN 2.1.0

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