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

Subversion Repositories bluespec-h264

[/] [bluespec-h264/] [trunk/] [enc-par/] [Makefile] - Blame information for rev 100

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 32 jamey.hick
#=======================================================================
2
# 6.375 Makefile for enc-par
3
#-----------------------------------------------------------------------
4
# $Id: Makefile,v 1.1 2008-06-26 17:58:43 jamey.hicks Exp $
5
#
6
# This makefile will use Cadence Encounter to place and route
7
# a gate-level verilog netlist.
8
#
9
 
10
default : all
11
 
12
basedir  = ../..
13
 
14
#--------------------------------------------------------------------
15
# Sources
16
#--------------------------------------------------------------------
17
 
18
vsrcs = ../dc/current/synthesized.v
19
 
20
# Specify what the toplevel verilog module is
21
 
22
toplevel = mkH264
23
 
24
# Specify the floorplan if it exists.
25
 
26
#floorplan = ../enc-fp/current/floorplan.fp
27
 
28
#--------------------------------------------------------------------
29
# Build rules
30
#--------------------------------------------------------------------
31
 
32
build_suffix   := $(shell date +%Y-%m-%d_%H-%M)
33
build_dir      := build-$(build_suffix)
34
curr_build_dir := current
35
curr_build_dir_tstamp := current/timestamp.txt
36
par_verilog    := $(curr_build_dir)/par.v
37
vsrc_unique    := synthesized_unique.v
38
 
39
par_conf       := par.conf
40
par_tcl        := par.tcl
41
par_sdc        := par.sdc
42
scripts        := $(par_conf) $(par_tcl) $(par_sdc)
43
makegen_tcl    := make_generated_vars.tcl
44
 
45
libdir = $(MIT6375_HOME)/libs/tsl180/tsl18fs120
46
par_vars = \
47
        set VERILOG_SRC      { $(vsrc_unique) }; \
48
        set VERILOG_TOPLEVEL $(toplevel); \
49
        set FLOORPLAN        "$(addprefix ../, $(floorplan))"; \
50
        set TIMELIBS_MAX     { $(libdir)/lib/tsl18fs120_max.lib }; \
51
        set TIMELIBS_MIN     { $(libdir)/lib/tsl18fs120_min.lib }; \
52
        set TIMELIBS_TYP     { $(libdir)/lib/tsl18fs120_typ.lib }; \
53
        set LEF_FILES        { $(libdir)/lef/tsl18_6lm.lef $(libdir)/lef/tsl18fs120.lef }; \
54
 
55
define new-build-dir-cmds
56
        mkdir $(build_dir)
57
        rm -f $(curr_build_dir)
58
        ln -s $(build_dir) $(curr_build_dir)
59
        cp $(scripts) $(curr_build_dir)
60
        echo '$(par_vars)' > $(curr_build_dir)/$(makegen_tcl)
61
endef
62
 
63
new-build-dir :
64
        $(new-build-dir-cmds)
65
 
66
$(par_verilog) : $(vsrcs) $(floorplan) $(scripts)
67
        $(new-build-dir-cmds)
68
        cd $(curr_build_dir); \
69
        uniquifyNetlist -top $(toplevel) $(vsrc_unique) $(addprefix ../, $(vsrcs)); \
70
        encounter -nowin -init $(par_tcl) | tee enc.log; \
71
        cd ..
72
 
73
par : $(par_verilog)
74
 
75
junk +=
76
 
77
.PHONY : par new-build-dir
78
 
79
#--------------------------------------------------------------------
80
# Default make target
81
#--------------------------------------------------------------------
82
 
83
all : par
84
 
85
#--------------------------------------------------------------------
86
# Clean up
87
#--------------------------------------------------------------------
88
 
89
clean :
90
        rm -rf build-[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]_[0-9][0-9]-[0-9][0-9] \
91
               current $(junk) *~ \#*

powered by: WebSVN 2.1.0

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