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
17 changes: 12 additions & 5 deletions flow/designs/rapidus2hp/cva6/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ export ADDITIONAL_LIBS += $(PLATFORM_DIR)/ram/lib/sacrls0g0d1p64x128m2b1w0c1p0d0
DEFAULT_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint.sdc
_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_8T_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint_0.15_8T.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

Expand All @@ -107,12 +108,18 @@ export SDC_FILE = $(strip \
$(_0P2A_6T_SDC_FILE), \
$(_0P2A_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) \
$(if $(filter 0.15,$(RAPIDUS_PDK_VERSION)), \
$(if $(filter ra02h184_HST_45CPP,$(PLACE_SITE)), \
$(_0P15_8T_SDC_FILE), \
$(DEFAULT_SDC_FILE) \
), \
$(DEFAULT_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
16 changes: 16 additions & 0 deletions flow/designs/rapidus2hp/cva6/constraint_0.15_8T.sdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Derived from cva6_synth.tcl and Makefiles

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 650

convert_time_value clk_period

set input_delay [convert_time_value 0.46]
set output_delay [convert_time_value 0.11]


create_clock [get_ports $clk_port] -name $clk_name -period $clk_period
4 changes: 4 additions & 0 deletions flow/designs/rapidus2hp/cva6/test/test_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ def get_exp_sdc(self, place_site, pdk_version):
return os.path.join(
self._design_full_dir, f"constraint_{pdk_version}_8T.sdc"
)
if pdk_version == "0.15" and place_site in ["", "ra02h184_HST_45CPP"]:
return os.path.join(
self._design_full_dir, f"constraint_{pdk_version}_8T.sdc"
)

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

Expand Down
17 changes: 13 additions & 4 deletions flow/designs/rapidus2hp/ibex/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,20 @@ else
))
endif

export CORE_UTILIZATION = $(strip $(if $(filter 0.3,$(RAPIDUS_PDK_VERSION)), \
$(if $(filter ra02h138_DST_45CPP,$(PLACE_SITE)), \
export CORE_UTILIZATION = $(strip \
$(if $(filter 0.15,$(RAPIDUS_PDK_VERSION)), \
$(if $(filter ra02h138_DST_45CPP,$(PLACE_SITE)), \
52, \
65 \
), \
$(if $(filter 0.3,$(RAPIDUS_PDK_VERSION)), \
$(if $(filter ra02h138_DST_45CPP,$(PLACE_SITE)), \
60, \
65), \
70))
65 \
), \
70 \
) \
))

export CORE_ASPECT_RATIO = 1
export CORE_MARGIN = 0.75
Expand Down
2 changes: 1 addition & 1 deletion flow/designs/rapidus2hp/ibex/constraint_0.15.sdc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ source $::env(PLATFORM_DIR)/util.tcl

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

set clk_port [get_ports $clk_port_name]
Expand Down
4 changes: 4 additions & 0 deletions flow/designs/rapidus2hp/ibex/test/test_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ def get_exp_util(self, place_site, pdk_version):
if place_site == "ra02h138_DST_45CPP":
return 60
return 65
if pdk_version == "0.15":
if place_site == "ra02h138_DST_45CPP":
return 52
return 65
return 70

def get_exp_sdc(self, place_site, pdk_version):
Expand Down
8 changes: 6 additions & 2 deletions flow/designs/rapidus2hp/jpeg/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,19 @@ export VERILOG_INCLUDE_DIRS = $(DESIGN_HOME)/src/$(DESIGN_NICKNAME)/include

DEFAULT_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/jpeg_encoder15_7nm.sdc
_0P2A_8T_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/jpeg_encoder15_0.2a_8T.sdc
_0P15_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/jpeg_encoder15_0.15.sdc
_0P15_6T_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/jpeg_encoder15_0.15_6T.sdc
_0P15_8T_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/jpeg_encoder15_0.15_8T.sdc
_0P3_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/jpeg_encoder15_0.3.sdc

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

current_design jpeg_encoder

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

convert_time_value clk_period

set clk_port [get_ports $clk_port_name]

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]
21 changes: 21 additions & 0 deletions flow/designs/rapidus2hp/jpeg/jpeg_encoder15_0.15_8T.sdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
source $::env(PLATFORM_DIR)/util.tcl

current_design jpeg_encoder

set clk_name clk
set clk_port_name clk
set clk_period 250
set clk_io_pct 0.2

convert_time_value clk_period

set clk_port [get_ports $clk_port_name]

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]
10 changes: 9 additions & 1 deletion flow/designs/rapidus2hp/jpeg/test/test_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,15 @@ def get_exp_sdc(self, place_site, pdk_version):
return os.path.join(
self._design_full_dir, f"jpeg_encoder15_{pdk_version}_8T.sdc"
)
if pdk_version in ["", "0.15", "0.3"]:
if pdk_version == "0.15":
if place_site in ["", "ra02h184_HST_45CPP"]:
return os.path.join(
self._design_full_dir, f"jpeg_encoder15_{pdk_version}_8T.sdc"
)
return os.path.join(
self._design_full_dir, f"jpeg_encoder15_{pdk_version}_6T.sdc"
)
if pdk_version in ["", "0.3"]:
if pdk_version == "":
pdk_version = "0.3"
return os.path.join(
Expand Down
12 changes: 10 additions & 2 deletions flow/designs/rapidus2hp/utils/param_test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def setUp(self, design_name):
self._result_re = re.compile(r"\S+\s*(?:=|:)\s*(\S+)?")
self._front_end_list = ["", "slang", "verific"]
self._ibm_site_list = ["", "SC6T", "SC8T"]
self._synopsys_site_list = ["", "ra02h138_DST_45CPP", "ra02h138_DST_45CPP"]
self._synopsys_site_list = ["", "ra02h138_DST_45CPP", "ra02h184_HST_45CPP"]

def get_track_height(self, place_site):
"""Returns the track height for the place site"""
Expand Down Expand Up @@ -60,7 +60,13 @@ def build_cmd(
return " ".join(str_buf)

def execute_cmd(
self, param_name, exp_result, place_site=None, pdk_version=None, front_end=None
self,
param_name,
exp_result,
place_site=None,
pdk_version=None,
front_end=None,
debug=False,
):
"""
Executes command
Expand All @@ -73,6 +79,8 @@ def execute_cmd(
pdk_version=pdk_version,
front_end=front_end,
)
if debug:
print(cmd)
self.execute_cmd_int(cmd, test_tag, exp_result)

def execute_cmd_int(self, cmd, test_tag, exp_result):
Expand Down