-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsynthesis.tcl
More file actions
37 lines (31 loc) · 806 Bytes
/
Copy pathsynthesis.tcl
File metadata and controls
37 lines (31 loc) · 806 Bytes
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
#to be used in ./DLX_synthesizable/syn folder.
source ./basic_syn
current_design "dlx"
#wireload for physical design
set_wire_load_model -name 5K_hvratio_1_4
proc mkdir_rep {path} {
if {![file exists $path]} {
file mkdir $path
}
}
#environment
set dir "DLX_post_syn"
mkdir_rep $dir
set repdir "DLX_post_syn/report"
mkdir_rep $repdir
#clock definition
create_clock -name "CLK" -period 1 {"CLK"}
#pipeline delay
set_max_delay 4 -from [all_inputs]
#definition of the clock gating style
set_clock_gating_style \
-sequential_cell latch \
-positive_edge_logic {and} \
-control_point before
compile_ultra -gate_clock
#reports
report_power > $repdir/power.txt
report_timing > $repdir/timing.txt
report_area > $repdir/area.txt
write -hierarchy -format verilog -output $dir/dlx.v
write_sdc $dir/dlx.sdc