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

Subversion Repositories mpeg2fpga

[/] [mpeg2fpga/] [trunk/] [bench/] [iverilog/] [Makefile] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 kdv
#
2
# Use: make [all|test|project|clean]
3
#
4
 
5
STREAM = ../../tools/streams/stream-susi.mpg
6
#STREAM = ../../tools/streams/colorbars.mpg
7
#STREAM = ../../tools/streams/telediario_2.mpg
8
#STREAM = /home/koen/m2v/neujahrskonzert.mv2
9
 
10
MODELINE = MODELINE_SIF
11
#MODELINE = MODELINE_PAL_INTERL
12
 
13
SRCS = \
14
  testbench.v \
15
  mem_ctl.v \
16
  wrappers.v \
17
  generic_fifo_dc.v \
18
  generic_fifo_sc_b.v \
19
  generic_dpram.v \
20
  ../../rtl/mpeg2/mpeg2video.v \
21
  ../../rtl/mpeg2/vbuf.v \
22
  ../../rtl/mpeg2/getbits.v \
23
  ../../rtl/mpeg2/vld.v \
24
  ../../rtl/mpeg2/rld.v \
25
  ../../rtl/mpeg2/iquant.v \
26
  ../../rtl/mpeg2/idct.v \
27
  ../../rtl/mpeg2/motcomp.v \
28
  ../../rtl/mpeg2/motcomp_motvec.v \
29
  ../../rtl/mpeg2/motcomp_addrgen.v \
30
  ../../rtl/mpeg2/motcomp_picbuf.v \
31
  ../../rtl/mpeg2/motcomp_dcttype.v \
32
  ../../rtl/mpeg2/motcomp_recon.v \
33
  ../../rtl/mpeg2/fwft.v \
34
  ../../rtl/mpeg2/resample.v \
35
  ../../rtl/mpeg2/resample_addrgen.v \
36
  ../../rtl/mpeg2/resample_dta.v \
37
  ../../rtl/mpeg2/resample_bilinear.v \
38
  ../../rtl/mpeg2/pixel_queue.v \
39
  ../../rtl/mpeg2/mixer.v \
40
  ../../rtl/mpeg2/syncgen.v \
41
  ../../rtl/mpeg2/syncgen_intf.v \
42
  ../../rtl/mpeg2/yuv2rgb.v \
43
  ../../rtl/mpeg2/osd.v \
44
  ../../rtl/mpeg2/regfile.v \
45
  ../../rtl/mpeg2/reset.v \
46
  ../../rtl/mpeg2/watchdog.v \
47
  ../../rtl/mpeg2/framestore.v \
48
  ../../rtl/mpeg2/framestore_request.v \
49
  ../../rtl/mpeg2/framestore_response.v \
50
  ../../rtl/mpeg2/read_write.v \
51
  ../../rtl/mpeg2/mem_addr.v \
52
  ../../rtl/mpeg2/synchronizer.v \
53
  ../../rtl/mpeg2/probe.v \
54
  ../../rtl/mpeg2/xfifo_sc.v
55
 
56
INCS = \
57
  ../../rtl/mpeg2/fifo_size.v \
58
  ../../rtl/mpeg2/mem_codes.v \
59
  ../../rtl/mpeg2/modeline.v \
60
  ../../rtl/mpeg2/motcomp_dctcodes.v \
61
  ../../rtl/mpeg2/resample_codes.v \
62
  ../../rtl/mpeg2/timescale.v \
63
  ../../rtl/mpeg2/vlc_tables.v \
64
  ../../rtl/mpeg2/vld_codes.v \
65
  ../../rtl/mpeg2/zigzag_table.v
66
 
67
IVERILOG_DUMPER=lxt
68
 
69
all: mpeg2 stream.dat
70
 
71
mpeg2: $(SRCS) $(INCS)
72
        iverilog -D__IVERILOG__ -D$(MODELINE) -I ../../rtl/mpeg2 -o mpeg2 $(SRCS)
73
 
74
test: mpeg2 stream.dat
75
        IVERILOG_DUMPER=lxt ./mpeg2
76
 
77
clean:
78
        rm -f mpeg2 stream.dat testbench.lxt trace framestore_*.ppm tv_out_*.ppm
79
 
80
# convert mpeg2 stream to .dat file for testbench
81
stream.dat: $(STREAM)
82
        head --bytes=4m $? | xxd -c 1 - | cut -d\  -f 2 > $@
83
        xxd -c 1 ../../tools/streams/end-of-sequence.mpg | cut -d\  -f 2 >> $@
84
 
85
# Count number of semicolons; indication of the number of statements in the code.
86
cntstmnts:
87
        echo counting semicolons of mpeg2 decoder source files
88
        cat $(SRCS) $(INCS) | tr  -d '\n'  | sed -e 's/[^;]//g'| wc -c
89
        echo counting lines of mpeg2 decoder source files
90
        cat $(SRCS) $(INCS) | wc -l
91
        echo counting semicolons of ml505 implementation source files
92
        cat ../../rtl/mpeg2/*.v ../../rtl/dvi/*.v ../../rtl/mem_interface/*.v ../../rtl/ethernet/*.v ../../rtl/ml505/*.v | tr  -d '\n'  | sed -e 's/[^;]//g'| wc -c
93
#not truncated

powered by: WebSVN 2.1.0

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