OpenCores
URL https://opencores.org/ocsvn/bluespec-h264/bluespec-h264/trunk

Subversion Repositories bluespec-h264

[/] [bluespec-h264/] [trunk/] [vcs/] [Makefile] - Blame information for rev 49

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

Line No. Rev Author Line
1 47 jamey.hick
#=======================================================================
2
# 6.375 Makefile for vcs-sim-rtl
3
#-----------------------------------------------------------------------
4 49 jamey.hick
# $Id: Makefile,v 1.2 2008-06-26 18:00:17 jamey.hicks Exp $
5 47 jamey.hick
#
6
# This makefile will build a rtl simulator and run various tests to
7
# verify proper functionality.
8
#
9
 
10
default : all
11
 
12 49 jamey.hick
basedir  = ../
13 47 jamey.hick
 
14
#--------------------------------------------------------------------
15
# Sources
16
#--------------------------------------------------------------------
17
 
18 49 jamey.hick
# TSL library sources
19
tsllibs = $(MIT6375_HOME)/libs/tsl180/tsl18fs120/verilog/
20
 
21 47 jamey.hick
# Verilog sources
22 49 jamey.hick
testsrcdir = $(basedir)/build/
23
bsrcdir = $(basedir)/dc/current
24
verilogsrc = $(basedir)/src_verilog
25 47 jamey.hick
 
26
vsrcs = \
27 49 jamey.hick
        $(bsrcdir)/synthesized.v \
28
        $(testsrcdir)/mkTH.v \
29
        $(verilogsrc)/top.v \
30
#       $(bsrcdir)/mkbSVector.v \
31
#       $(bsrcdir)/mkBufferControl.v \
32
#       $(bsrcdir)/mkCalc_nC.v \
33
#       $(bsrcdir)/mkDeblockFilter.v \
34
#       $(bsrcdir)/mkEntropyDec.v \
35
#       $(bsrcdir)/mkH264.v \
36
#       $(bsrcdir)/mkInterpolator.v \
37
#       $(bsrcdir)/mkInverseTrans.v \
38
#       $(bsrcdir)/mkLeftVector.v \
39
#       $(bsrcdir)/mkPrediction.v \
40
#       $(bsrcdir)/mkTH.v \
41
#       $(bsrcdir)/mkTopVector.v \
42
#       $(bsrcdir)/mkWorkVectorHor.v \
43
#       $(bsrcdir)/mkWorkVectorVer.v \
44
#       $(bsrcdir)/module_cavlc_coeff_token.v \
45
#       $(bsrcdir)/module_cavlc_level_prefix.v \
46
#       $(bsrcdir)/module_cavlc_run_before.v \
47
#       $(bsrcdir)/module_cavlc_total_zeros.v \
48
#       $(bsrcdir)/module_expgolomb_coded_block_pattern.vmodule_expgolomb_codenum32.v \
49
#       $(bsrcdir)/module_expgolomb_codenum.v \
50
#       $(bsrcdir)/module_expgolomb_numbits32.v \
51
#       $(bsrcdir)/module_expgolomb_numbits.v \
52
#       $(bsrcdir)/module_expgolomb_signed32.v \
53
#       $(bsrcdir)/module_expgolomb_signed.v \
54
#       $(bsrcdir)/module_expgolomb_unsigned32.v \
55
#       $(bsrcdir)/module_expgolomb_unsigned.v \
56 47 jamey.hick
 
57
 
58
 
59 49 jamey.hick
#Myron told me to add you
60
vclibdir  = $(MIT6375_HOME)/install/bsvclib
61
vclibsrcs = \
62
        $(vclibdir)/mkEHRReg4.v \
63
        $(vclibdir)/mkResetRegFileFull_h.v \
64
        $(tsllibs)/mtb_verilog.v \
65 47 jamey.hick
 
66 49 jamey.hick
bsclibdir = $(BLUESPECDIR)/Verilog
67
bsclibsrcs = \
68
        $(bsclibdir)/FIFO2.v \
69
        $(bsclibdir)/RegFile.v \
70
        $(bsclibdir)/RegFileLoad.v \
71 47 jamey.hick
 
72 49 jamey.hick
testscriptsdir = $(basedir)/test
73
testfilesdir = $(basedir)/test/h264
74
testfiles = \
75
        $(testfilesdir)/x264foreman_qcif1-5.264 \
76 47 jamey.hick
 
77 49 jamey.hick
pardir = $(basedir)/enc-par/current
78 47 jamey.hick
 
79
 
80
 
81
#--------------------------------------------------------------------
82
# Build rules
83
#--------------------------------------------------------------------
84
 
85
VCS      = vcs
86
VCS_OPTS = -notice -PP -line +lint=all +v2k -timescale=1ns/10ps
87
 
88
 
89
 
90
 
91 49 jamey.hick
# Task for setting up the test case
92
define setup-test
93
        cp $(1) input.264
94
        cp $(1) input.hex # This line is dirty, but it will avoid the problem of not having hex files.
95
        rm *.hex
96
        perl $(testscriptsdir)/hexfilegen.pl input.264
97
        wc input.264 | awk '{printf("%08x\n%08x\n%08x\n%08x\n", $$3, $$3, $$3, $$3)}' > input_size.hex
98
endef
99 47 jamey.hick
 
100
#------------------------------------------------------------
101
# Build the processor simulator
102
 
103
vcs_sim = simv
104
 
105 49 jamey.hick
par-sdf:
106
        cp $(pardir)/postroute.sdf ./
107 47 jamey.hick
 
108 49 jamey.hick
$(vcs_sim) : $(vsrcs), par-sdf
109
        $(VCS) $(VCS_OPTS) +incdir+$(tsllibs) -o $(vcs_sim) +csdf+precompile\
110
                   +libext+.v -y $(tsllibs) \
111
               +incdir+$(vclibdir) $(addprefix -v ,$(vclibsrcs)) +incdir+$(bsclibdir) $(addprefix -v ,$(bsclibsrcs)) $(vsrcs)
112 47 jamey.hick
 
113 49 jamey.hick
sim-rtl : $(vcs_sim)
114 47 jamey.hick
 
115 49 jamey.hick
foreman : sim-rtl
116
        $(call setup-test, $(testfilesdir)/x264foreman_qcif1-5.264)
117 47 jamey.hick
 
118 49 jamey.hick
junk += simv* csrc *.vpd vcs.key
119 47 jamey.hick
 
120
#--------------------------------------------------------------------
121
# Default make target
122
#--------------------------------------------------------------------
123
 
124
all : $(vcs_sim)
125
 
126
#--------------------------------------------------------------------
127
# Clean up
128
#--------------------------------------------------------------------
129
 
130
clean :
131
        rm -rf $(objs) $(junk) *~ \#* *.log *.cmd *.daidir

powered by: WebSVN 2.1.0

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