Skip to content

Commit c5b07be

Browse files
authored
Merge pull request #3847 from The-OpenROAD-Project-staging/pdk-0.3-6T-tuning
Tuning designs for PDK 0.3 using 6T library
2 parents 5dcd585 + 237bf74 commit c5b07be

7 files changed

Lines changed: 59 additions & 31 deletions

File tree

‎flow/designs/rapidus2hp/cva6/constraint_0.3_6T.sdc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ source $::env(PLATFORM_DIR)/util.tcl
55
set clk_name main_clk
66
set clk_port clk_i
77
set clk_ports_list [list $clk_port]
8-
set clk_period 700
8+
set clk_period 650
99

1010
convert_time_value clk_period
1111

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,23 @@ else
2727
_0P2A_6T_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint_0.2a_6T.sdc
2828
_0P2A_8T_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint_0.2a_8T.sdc
2929
_0P15_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint_0.15.sdc
30+
_0P3_6T_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint_0.3_6T.sdc
3031
_0P3_8T_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint_0.3_8T.sdc
3132

3233
# Use $(if) to defer conditional eval until all makefiles are read
3334
export SDC_FILE = $(strip \
3435
$(if $(filter 0.2a,$(RAPIDUS_PDK_VERSION)), \
3536
$(if $(filter ra02h138_DST_45CPP,$(PLACE_SITE)), \
3637
$(_0P2A_6T_SDC_FILE), \
37-
$(_0P2A_8T_SDC_FILE)), \
38+
$(_0P2A_8T_SDC_FILE) \
39+
), \
3840
$(if $(filter 0.15,$(RAPIDUS_PDK_VERSION)), \
3941
$(_0P15_SDC_FILE), \
40-
$(if $(and $(filter 0.3,$(RAPIDUS_PDK_VERSION)),$(filter ra02h184_HST_45CPP,$(PLACE_SITE))), \
41-
$(_0P3_8T_SDC_FILE), \
42+
$(if $(filter 0.3,$(RAPIDUS_PDK_VERSION)), \
43+
$(if $(filter ra02h138_DST_45CPP,$(PLACE_SITE)), \
44+
$(_0P3_6T_SDC_FILE), \
45+
$(_0P3_8T_SDC_FILE) \
46+
), \
4247
$(DEFAULT_SDC_FILE) \
4348
) \
4449
) \
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 550
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/ibex/test/test_params.py‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,14 @@ def get_exp_sdc(self, place_site, pdk_version):
4646
if pdk_version in ["", "0.3"]:
4747
if pdk_version == "":
4848
pdk_version = "0.3"
49-
if place_site in ["", "ra02h184_HST_45CPP"]:
49+
if place_site == "ra02h138_DST_45CPP":
5050
return os.path.join(
51-
self._design_full_dir, f"constraint_{pdk_version}_8T.sdc"
51+
self._design_full_dir, f"constraint_{pdk_version}_6T.sdc"
5252
)
53+
return os.path.join(
54+
self._design_full_dir, f"constraint_{pdk_version}_8T.sdc"
55+
)
56+
5357
return os.path.join(self._design_full_dir, "constraint.sdc")
5458

5559
def test_pdk_0p3_default(self):

‎flow/designs/rapidus2hp/jpeg/jpeg_encoder15_0.3.sdc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ current_design jpeg_encoder
44

55
set clk_name clk
66
set clk_port_name clk
7-
set clk_period 200
7+
set clk_period 150
88
set clk_io_pct 0.2
99

1010
convert_time_value clk_period

‎flow/designs/rapidus2hp/jpeg/rules-base.json‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,55 +28,55 @@
2828
"compare": "<="
2929
},
3030
"cts__timing__setup__ws": {
31-
"value": -0.01,
31+
"value": -0.0432,
3232
"compare": ">="
3333
},
3434
"cts__timing__setup__tns": {
35-
"value": -0.04,
35+
"value": -29.2,
3636
"compare": ">="
3737
},
3838
"cts__timing__hold__ws": {
39-
"value": -0.01,
39+
"value": -0.0075,
4040
"compare": ">="
4141
},
4242
"cts__timing__hold__tns": {
43-
"value": -0.04,
43+
"value": -0.03,
4444
"compare": ">="
4545
},
4646
"globalroute__antenna_diodes_count": {
4747
"value": 100,
4848
"compare": "<="
4949
},
5050
"globalroute__timing__setup__ws": {
51-
"value": -0.0629,
51+
"value": -0.0952,
5252
"compare": ">="
5353
},
5454
"globalroute__timing__setup__tns": {
55-
"value": -35.7,
55+
"value": -142.0,
5656
"compare": ">="
5757
},
5858
"globalroute__timing__hold__ws": {
59-
"value": -0.01,
59+
"value": -0.0075,
6060
"compare": ">="
6161
},
6262
"globalroute__timing__hold__tns": {
63-
"value": -0.04,
63+
"value": -0.03,
6464
"compare": ">="
6565
},
6666
"finish__timing__setup__ws": {
67-
"value": -0.0629,
67+
"value": -0.0952,
6868
"compare": ">="
6969
},
7070
"finish__timing__setup__tns": {
71-
"value": -35.7,
71+
"value": -142.0,
7272
"compare": ">="
7373
},
7474
"finish__timing__hold__ws": {
75-
"value": -0.01,
75+
"value": -0.0075,
7676
"compare": ">="
7777
},
7878
"finish__timing__hold__tns": {
79-
"value": -0.04,
79+
"value": -0.03,
8080
"compare": ">="
8181
},
8282
"finish__design__instance__area": {

‎flow/designs/rapidus2hp/jpeg/rules-verific.json‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,55 +28,55 @@
2828
"compare": "<="
2929
},
3030
"cts__timing__setup__ws": {
31-
"value": -0.01,
31+
"value": -0.0529,
3232
"compare": ">="
3333
},
3434
"cts__timing__setup__tns": {
35-
"value": -0.04,
35+
"value": -30.9,
3636
"compare": ">="
3737
},
3838
"cts__timing__hold__ws": {
39-
"value": -0.01,
39+
"value": -0.0075,
4040
"compare": ">="
4141
},
4242
"cts__timing__hold__tns": {
43-
"value": -0.04,
43+
"value": -0.03,
4444
"compare": ">="
4545
},
4646
"globalroute__antenna_diodes_count": {
4747
"value": 100,
4848
"compare": "<="
4949
},
5050
"globalroute__timing__setup__ws": {
51-
"value": -0.0649,
51+
"value": -0.092,
5252
"compare": ">="
5353
},
5454
"globalroute__timing__setup__tns": {
55-
"value": -39.0,
55+
"value": -126.0,
5656
"compare": ">="
5757
},
5858
"globalroute__timing__hold__ws": {
59-
"value": -0.01,
59+
"value": -0.0075,
6060
"compare": ">="
6161
},
6262
"globalroute__timing__hold__tns": {
63-
"value": -0.04,
63+
"value": -0.03,
6464
"compare": ">="
6565
},
6666
"finish__timing__setup__ws": {
67-
"value": -0.0649,
67+
"value": -0.092,
6868
"compare": ">="
6969
},
7070
"finish__timing__setup__tns": {
71-
"value": -39.0,
71+
"value": -126.0,
7272
"compare": ">="
7373
},
7474
"finish__timing__hold__ws": {
75-
"value": -0.01,
75+
"value": -0.0075,
7676
"compare": ">="
7777
},
7878
"finish__timing__hold__tns": {
79-
"value": -0.04,
79+
"value": -0.03,
8080
"compare": ">="
8181
},
8282
"finish__design__instance__area": {

0 commit comments

Comments
 (0)