Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion flow/designs/rapidus2hp/cva6/constraint_0.3_6T.sdc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ source $::env(PLATFORM_DIR)/util.tcl
set clk_name main_clk
set clk_port clk_i
set clk_ports_list [list $clk_port]
set clk_period 700
set clk_period 650

convert_time_value clk_period

Expand Down
11 changes: 8 additions & 3 deletions flow/designs/rapidus2hp/ibex/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,23 @@ else
_0P2A_6T_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint_0.2a_6T.sdc
_0P2A_8T_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint_0.2a_8T.sdc
_0P15_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint_0.15.sdc
_0P3_6T_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint_0.3_6T.sdc
_0P3_8T_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint_0.3_8T.sdc

# Use $(if) to defer conditional eval until all makefiles are read
export SDC_FILE = $(strip \
$(if $(filter 0.2a,$(RAPIDUS_PDK_VERSION)), \
$(if $(filter ra02h138_DST_45CPP,$(PLACE_SITE)), \
$(_0P2A_6T_SDC_FILE), \
$(_0P2A_8T_SDC_FILE)), \
$(_0P2A_8T_SDC_FILE) \
), \
$(if $(filter 0.15,$(RAPIDUS_PDK_VERSION)), \
$(_0P15_SDC_FILE), \
$(if $(and $(filter 0.3,$(RAPIDUS_PDK_VERSION)),$(filter ra02h184_HST_45CPP,$(PLACE_SITE))), \
$(_0P3_8T_SDC_FILE), \
$(if $(filter 0.3,$(RAPIDUS_PDK_VERSION)), \
$(if $(filter ra02h138_DST_45CPP,$(PLACE_SITE)), \
$(_0P3_6T_SDC_FILE), \
$(_0P3_8T_SDC_FILE) \
), \
$(DEFAULT_SDC_FILE) \
) \
) \
Expand Down
19 changes: 19 additions & 0 deletions flow/designs/rapidus2hp/ibex/constraint_0.3_6T.sdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
source $::env(PLATFORM_DIR)/util.tcl

set clk_name core_clock
set clk_port_name clk_i
set clk_period 550
set clk_io_pct 0.2

set clk_port [get_ports $clk_port_name]

convert_time_value clk_period

create_clock -name $clk_name -period $clk_period $clk_port

set non_clock_inputs [lsearch -inline -all -not -exact [all_inputs] $clk_port]

set_input_delay [expr { $clk_period * $clk_io_pct }] -clock $clk_name \
$non_clock_inputs
set_output_delay [expr { $clk_period * $clk_io_pct }] -clock $clk_name \
[all_outputs]
8 changes: 6 additions & 2 deletions flow/designs/rapidus2hp/ibex/test/test_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,14 @@ def get_exp_sdc(self, place_site, pdk_version):
if pdk_version in ["", "0.3"]:
if pdk_version == "":
pdk_version = "0.3"
if place_site in ["", "ra02h184_HST_45CPP"]:
if place_site == "ra02h138_DST_45CPP":
return os.path.join(
self._design_full_dir, f"constraint_{pdk_version}_8T.sdc"
self._design_full_dir, f"constraint_{pdk_version}_6T.sdc"
)
return os.path.join(
self._design_full_dir, f"constraint_{pdk_version}_8T.sdc"
)

return os.path.join(self._design_full_dir, "constraint.sdc")

def test_pdk_0p3_default(self):
Expand Down
2 changes: 1 addition & 1 deletion flow/designs/rapidus2hp/jpeg/jpeg_encoder15_0.3.sdc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ current_design jpeg_encoder

set clk_name clk
set clk_port_name clk
set clk_period 200
set clk_period 150
set clk_io_pct 0.2

convert_time_value clk_period
Expand Down
24 changes: 12 additions & 12 deletions flow/designs/rapidus2hp/jpeg/rules-base.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,55 +28,55 @@
"compare": "<="
},
"cts__timing__setup__ws": {
"value": -0.01,
"value": -0.0432,
"compare": ">="
},
"cts__timing__setup__tns": {
"value": -0.04,
"value": -29.2,
"compare": ">="
},
"cts__timing__hold__ws": {
"value": -0.01,
"value": -0.0075,
"compare": ">="
},
"cts__timing__hold__tns": {
"value": -0.04,
"value": -0.03,
"compare": ">="
},
"globalroute__antenna_diodes_count": {
"value": 100,
"compare": "<="
},
"globalroute__timing__setup__ws": {
"value": -0.0629,
"value": -0.0952,
"compare": ">="
},
"globalroute__timing__setup__tns": {
"value": -35.7,
"value": -142.0,
"compare": ">="
},
"globalroute__timing__hold__ws": {
"value": -0.01,
"value": -0.0075,
"compare": ">="
},
"globalroute__timing__hold__tns": {
"value": -0.04,
"value": -0.03,
"compare": ">="
},
"finish__timing__setup__ws": {
"value": -0.0629,
"value": -0.0952,
"compare": ">="
},
"finish__timing__setup__tns": {
"value": -35.7,
"value": -142.0,
"compare": ">="
},
"finish__timing__hold__ws": {
"value": -0.01,
"value": -0.0075,
"compare": ">="
},
"finish__timing__hold__tns": {
"value": -0.04,
"value": -0.03,
"compare": ">="
},
"finish__design__instance__area": {
Expand Down
24 changes: 12 additions & 12 deletions flow/designs/rapidus2hp/jpeg/rules-verific.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,55 +28,55 @@
"compare": "<="
},
"cts__timing__setup__ws": {
"value": -0.01,
"value": -0.0529,
"compare": ">="
},
"cts__timing__setup__tns": {
"value": -0.04,
"value": -30.9,
"compare": ">="
},
"cts__timing__hold__ws": {
"value": -0.01,
"value": -0.0075,
"compare": ">="
},
"cts__timing__hold__tns": {
"value": -0.04,
"value": -0.03,
"compare": ">="
},
"globalroute__antenna_diodes_count": {
"value": 100,
"compare": "<="
},
"globalroute__timing__setup__ws": {
"value": -0.0649,
"value": -0.092,
"compare": ">="
},
"globalroute__timing__setup__tns": {
"value": -39.0,
"value": -126.0,
"compare": ">="
},
"globalroute__timing__hold__ws": {
"value": -0.01,
"value": -0.0075,
"compare": ">="
},
"globalroute__timing__hold__tns": {
"value": -0.04,
"value": -0.03,
"compare": ">="
},
"finish__timing__setup__ws": {
"value": -0.0649,
"value": -0.092,
"compare": ">="
},
"finish__timing__setup__tns": {
"value": -39.0,
"value": -126.0,
"compare": ">="
},
"finish__timing__hold__ws": {
"value": -0.01,
"value": -0.0075,
"compare": ">="
},
"finish__timing__hold__tns": {
"value": -0.04,
"value": -0.03,
"compare": ">="
},
"finish__design__instance__area": {
Expand Down