forked from Luca-Dalmasso/LL_contest
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsynthesis.tcl
More file actions
123 lines (111 loc) · 3.7 KB
/
synthesis.tcl
File metadata and controls
123 lines (111 loc) · 3.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
## +----------------------------------------------------------------
## | Synthesis and Optimization of Digital Systems |
## | Politecnico di Torino - TO - Italy |
## | DAUIN - EDA GROUP |
## +----------------------------------------------------------------
## | author: andrea calimera |
## | mail: andrea.calimera@polito.it |
## | title: synthesis.tcl |
## +----------------------------------------------------------------
## | Copyright 2015 DAUIN - EDA GROUP |
## +----------------------------------------------------------------
######################################################################
##
## SPECIFY LIBRARIES
##
######################################################################
# SOURCE SETUP FILE
source "./tech/STcmos65/synopsys_dc.setup"
# SUPPRESS WARNING MESSAGES
suppress_message MWLIBP-319
suppress_message MWLIBP-324
suppress_message TFCHK-012
suppress_message TFCHK-014
suppress_message TFCHK-049
suppress_message TFCHK-072
suppress_message TFCHK-084
suppress_message PSYN-651
suppress_message PSYN-650
suppress_message UID-401
suppress_message LINK-14
suppress_message TIM-134
suppress_message VER-130
suppress_message UISN-40
suppress_message VO-4
suppress_message RTDC-126
######################################################################
##
## READ DESIGN
##
######################################################################
# DEFINE CIRCUITS and WORK DIRS
set blockName "c1908"
set active_design $blockName
# DEFINE WORK DIRS
set dirname "./saved/${blockName}"
if {![file exists $dirname]} {
file mkdir $dirname
}
set dirname "./saved/${blockName}/synthesis"
if {![file exists $dirname]} {
file mkdir $dirname
}
set libDir "./saved/${blockName}/synthesis/synlib"
file mkdir $libDir
define_design_lib $blockName -path $libDir
# ANALYZE HDL SOURCES
set HdlFileList [glob -dir "./rtl/${blockName}/verilog" "*.v*"]
foreach hdlFile $HdlFileList {
if {[file extension $hdlFile]==".v"} {
analyze -format verilog -library $blockName $hdlFile
} elseif {[file extension $hdlFile]==".vhd"} {
analyze -format vhdl -library $blockName $hdlFile
}
}
# ELABORATE DESIGN
elaborate -lib $blockName $blockName
######################################################################
##
## DEFINE DESIGN ENVIRONMENT
##
######################################################################
set LVT_library [lindex $target_library 0]
set_operating_condition -library "${LVT_library}:CORE65LPLVT" nom_1.20V_25C
set_wire_load_model -library "${LVT_library}:CORE65LPLVT" -name area_12Kto18K [find design *]
set_load 0.05 [all_outputs]
#
#######################################################################
##
## SET DESIGN CONSTRAINTS
##
######################################################################
source "./rtl/${blockName}/sdc/${blockName}.sdc"
#just for multi vth
source "./scripts/power_features.tcl"
######################################################################
##
## OPTIMIZE DESIGN
##
######################################################################
link
ungroup -all -flatten
#compile
#just for multi vth
compile_ultra
optimize_registers -clock $clockName -minimum_period_only
set_fix_hold $clockName
compile -incremental_mapping -map_effort high -ungroup_all
######################################################################
##
## SAVE DESIGN
##
######################################################################
write -format verilog -hierarchy -output "${dirname}/${blockName}_postsyn.v"
write_sdc -version 1.3 "${dirname}/${blockName}_postsyn.sdc"
######################################################################
##
## CLEAN & EXIT
##
######################################################################
exec rm -rf $libDir
#exit