Skip to content

Commit 56473ad

Browse files
committed
initial PDK 0.3 design tuning to get negative slack
Signed-off-by: Jeff Ng <jeffng@precisioninno.com>
1 parent 432a91a commit 56473ad

9 files changed

Lines changed: 135 additions & 17 deletions

File tree

‎flow/designs/rapidus2hp/cva6/config.mk‎

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,24 @@ export ADDITIONAL_LIBS += $(PLATFORM_DIR)/ram/lib/sacrls0g0d1p64x128m2b1w0c1p0d0
9494
$(PLATFORM_DIR)/ram/lib/sacrls0g0d1p64x25m2b1w0c1p0d0i0s0cr0rr0rm4rw00ms0.lib
9595

9696

97-
DEFAULT_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint.sdc
97+
DEFAULT_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint.sdc
9898
_0P2A_6T_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint_0.2a_6T.sdc
9999
_0P2A_8T_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint_0.2a_8T.sdc
100+
_0P3_6T_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint_0.3_6T.sdc
101+
_0P3_8T_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint_0.3_8T.sdc
100102

101103
# Use $(if) to defer conditional eval until all makefiles are read
102-
export SDC_FILE = $(strip $(if $(filter 0.2a,$(RAPIDUS_PDK_VERSION)), \
103-
$(if $(filter ra02h138_DST_45CPP,$(PLACE_SITE)), \
104-
$(_0P2A_6T_SDC_FILE), \
105-
$(_0P2A_8T_SDC_FILE)), \
106-
$(DEFAULT_SDC_FILE)))
104+
export SDC_FILE = $(strip \
105+
$(if $(filter 0.2a,$(RAPIDUS_PDK_VERSION)), \
106+
$(if $(filter ra02h138_DST_45CPP,$(PLACE_SITE)), \
107+
$(_0P2A_6T_SDC_FILE), \
108+
$(_0P2A_8T_SDC_FILE) \
109+
), \
110+
$(if $(and $(filter 0.3,$(RAPIDUS_PDK_VERSION)),$(filter ra02h138_DST_45CPP,$(PLACE_SITE))), \
111+
$(_0P3_6T_SDC_FILE), \
112+
$(_0P3_8T_SDC_FILE) \
113+
) \
114+
))
107115

108116
# Must be defined before the ifeq's
109117
export SYNTH_HDL_FRONTEND = slang
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Derived from cva6_synth.tcl and Makefiles
2+
3+
source $::env(PLATFORM_DIR)/util.tcl
4+
5+
set clk_name main_clk
6+
set clk_port clk_i
7+
set clk_ports_list [list $clk_port]
8+
set clk_period 700
9+
10+
convert_time_value clk_period
11+
12+
set input_delay [convert_time_value 0.46]
13+
set output_delay [convert_time_value 0.11]
14+
15+
16+
create_clock [get_ports $clk_port] -name $clk_name -period $clk_period
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Derived from cva6_synth.tcl and Makefiles
2+
3+
source $::env(PLATFORM_DIR)/util.tcl
4+
5+
set clk_name main_clk
6+
set clk_port clk_i
7+
set clk_ports_list [list $clk_port]
8+
set clk_period 550
9+
10+
convert_time_value clk_period
11+
12+
set input_delay [convert_time_value 0.46]
13+
set output_delay [convert_time_value 0.11]
14+
15+
16+
create_clock [get_ports $clk_port] -name $clk_name -period $clk_period

‎flow/designs/rapidus2hp/ethmac/config.mk‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ export VERILOG_FILES = $(sort $(wildcard $(DESIGN_HOME)/src/$(DESIGN_NIC
1010
export SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint.sdc
1111
export ABC_AREA = 1
1212

13-
export CORE_UTILIZATION = 70
13+
export CORE_UTILIZATION = $(strip $(if $(filter 0.3,$(RAPIDUS_PDK_VERSION)), \
14+
65, \
15+
70))
16+
1417
export CORE_ASPECT_RATIO = 1
1518
export CORE_MARGIN = 0.75
1619
export PLACE_DENSITY = 0.70

‎flow/designs/rapidus2hp/ibex/config.mk‎

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,27 @@ else
2424
DEFAULT_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint.sdc
2525
_0P2A_6T_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint_0.2a_6T.sdc
2626
_0P2A_8T_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint_0.2a_8T.sdc
27+
_0P3_8T_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint_0.3_8T.sdc
28+
2729
# Use $(if) to defer conditional eval until all makefiles are read
28-
export SDC_FILE = $(strip $(if $(filter 0.2a,$(RAPIDUS_PDK_VERSION)), \
30+
export SDC_FILE = $(strip \
31+
$(if $(filter 0.2a,$(RAPIDUS_PDK_VERSION)), \
2932
$(if $(filter ra02h138_DST_45CPP,$(PLACE_SITE)), \
3033
$(_0P2A_6T_SDC_FILE), \
3134
$(_0P2A_8T_SDC_FILE)), \
32-
$(DEFAULT_SDC_FILE)))
35+
$(if $(and $(filter 0.3,$(RAPIDUS_PDK_VERSION)),$(filter ra02h184_HST_45CPP,$(PLACE_SITE))), \
36+
$(_0P3_8T_SDC_FILE), \
37+
$(DEFAULT_SDC_FILE) \
38+
) \
39+
))
3340
endif
3441

35-
export CORE_UTILIZATION = 70
42+
export CORE_UTILIZATION = $(strip $(if $(filter 0.3,$(RAPIDUS_PDK_VERSION)), \
43+
$(if $(filter ra02h138_DST_45CPP,$(PLACE_SITE)), \
44+
60, \
45+
65), \
46+
70))
47+
3648
export CORE_ASPECT_RATIO = 1
3749
export CORE_MARGIN = 0.75
3850
export PLACE_DENSITY_LB_ADDON = 0.20
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
source $::env(PLATFORM_DIR)/util.tcl
2+
3+
set clk_name core_clock
4+
set clk_port_name clk_i
5+
set clk_period 500
6+
set clk_io_pct 0.2
7+
8+
set clk_port [get_ports $clk_port_name]
9+
10+
convert_time_value clk_period
11+
12+
create_clock -name $clk_name -period $clk_period $clk_port
13+
14+
set non_clock_inputs [lsearch -inline -all -not -exact [all_inputs] $clk_port]
15+
16+
set_input_delay [expr { $clk_period * $clk_io_pct }] -clock $clk_name \
17+
$non_clock_inputs
18+
set_output_delay [expr { $clk_period * $clk_io_pct }] -clock $clk_name \
19+
[all_outputs]
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
source $::env(PLATFORM_DIR)/util.tcl
2+
3+
set clk_name core_clock
4+
set clk_port_name clk_i
5+
set clk_period 500
6+
set clk_io_pct 0.2
7+
8+
set clk_port [get_ports $clk_port_name]
9+
10+
convert_time_value clk_period
11+
12+
create_clock -name $clk_name -period $clk_period $clk_port
13+
14+
set non_clock_inputs [lsearch -inline -all -not -exact [all_inputs] $clk_port]
15+
16+
set_input_delay [expr { $clk_period * $clk_io_pct }] -clock $clk_name \
17+
$non_clock_inputs
18+
set_output_delay [expr { $clk_period * $clk_io_pct }] -clock $clk_name \
19+
[all_outputs]

‎flow/designs/rapidus2hp/jpeg/config.mk‎

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,19 @@ endif
1010
export VERILOG_FILES = $(sort $(wildcard $(DESIGN_HOME)/src/$(DESIGN_NICKNAME)/*.v))
1111
export VERILOG_INCLUDE_DIRS = $(DESIGN_HOME)/src/$(DESIGN_NICKNAME)/include
1212

13-
DEFAULT_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/jpeg_encoder15_7nm.sdc
13+
DEFAULT_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/jpeg_encoder15_7nm.sdc
1414
_0P2A_8T_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/jpeg_encoder15_0.2a_8T.sdc
15-
# Use $(if) to defer conditional eval until all makefiles are read
16-
export SDC_FILE = $(strip $(if $(filter 0.2a,$(RAPIDUS_PDK_VERSION)), \
17-
$(if $(filter ra02h184_HST_45CPP,$(PLACE_SITE)), \
18-
$(_0P2A_8T_SDC_FILE), \
19-
$(DEFAULT_SDC_FILE)), \
20-
$(DEFAULT_SDC_FILE)))
15+
_0P3_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/jpeg_encoder15_0.3.sdc
2116

17+
# Use $(if) to defer conditional eval until all makefiles are read
18+
export SDC_FILE = $(strip \
19+
$(if $(and $(filter 0.2a,$(RAPIDUS_PDK_VERSION)),$(filter ra02h184_HST_45CPP,$(PLACE_SITE))), \
20+
$(_0P2A_8T_SDC_FILE), \
21+
$(if $(filter 0.3,$(RAPIDUS_PDK_VERSION)), \
22+
$(_0P3_SDC_FILE), \
23+
$(DEFAULT_SDC_FILE) \
24+
) \
25+
))
2226

2327
export ABC_AREA = 1
2428

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
source $::env(PLATFORM_DIR)/util.tcl
2+
3+
current_design jpeg_encoder
4+
5+
set clk_name clk
6+
set clk_port_name clk
7+
set clk_period 230
8+
set clk_io_pct 0.2
9+
10+
convert_time_value clk_period
11+
12+
set clk_port [get_ports $clk_port_name]
13+
14+
create_clock -name $clk_name -period $clk_period $clk_port
15+
16+
set non_clock_inputs [lsearch -inline -all -not -exact [all_inputs] $clk_port]
17+
18+
set_input_delay [expr { $clk_period * $clk_io_pct }] -clock $clk_name \
19+
$non_clock_inputs
20+
set_output_delay [expr { $clk_period * $clk_io_pct }] -clock $clk_name \
21+
[all_outputs]

0 commit comments

Comments
 (0)