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 72

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

powered by: WebSVN 2.1.0

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