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
6 changes: 5 additions & 1 deletion flow/designs/rapidus2hp/cva6/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ export ADDITIONAL_LIBS += $(PLATFORM_DIR)/ram/lib/sacrls0g0d1p64x128m2b1w0c1p0d0
._0P15_8T_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint_0.15_8T.sdc
._0P3S_6T_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint_0.3s_6T.sdc
._0P3S_8T_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint_0.3s_8T.sdc
.T0P5_8T_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint_t0.5_8T.sdc

# Use $(if) to defer conditional eval until all makefiles are read
export SDC_FILE = $(strip \
Expand All @@ -118,7 +119,10 @@ export SDC_FILE = $(strip \
$(._0P3S_6T_SDC_FILE), \
$(._0P3S_8T_SDC_FILE) \
), \
$(.DEFAULT_SDC_FILE) \
$(if $(and $(filter t0.5,$(RAPIDUS_PDK_VERSION)),$(filter SC8T,$(PLACE_SITE)),$(filter verific,$(SYNTH_HDL_FRONTEND))), \
$(.T0P5_8T_SDC_FILE), \
$(.DEFAULT_SDC_FILE) \
) \
) \
) \
))
Expand Down
16 changes: 16 additions & 0 deletions flow/designs/rapidus2hp/cva6/constraint_t0.5_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 700

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
40 changes: 32 additions & 8 deletions flow/designs/rapidus2hp/cva6/test/test_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def setUp(self):

ParamTestBase.setUp(self, "cva6")

def get_exp_sdc(self, place_site, pdk_version):
def get_exp_sdc(self, place_site, pdk_version, front_end):
"""Returns the expected SDC file path"""

if pdk_version in ["0.2a", "0.3s"]:
Expand All @@ -36,7 +36,14 @@ 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 == "t0.5"
and place_site in ["", "SC8T"]
and front_end == "verific"
):
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 All @@ -47,7 +54,7 @@ def test_pdk_0p3_default(self):
pdk_version = ""
for front_end in self._front_end_list:
for place_site in self._synopsys_site_list:
exp_sdc = self.get_exp_sdc(place_site, pdk_version)
exp_sdc = self.get_exp_sdc(place_site, pdk_version, front_end)
self.execute_cmd(
"SDC_FILE",
exp_sdc,
Expand All @@ -64,7 +71,7 @@ def test_pdk_0p2(self):
pdk_version = "0.2"
for front_end in self._front_end_list:
for place_site in self._ibm_site_list:
exp_sdc = self.get_exp_sdc(place_site, pdk_version)
exp_sdc = self.get_exp_sdc(place_site, pdk_version, front_end)
self.execute_cmd(
"SDC_FILE",
exp_sdc,
Expand All @@ -81,7 +88,7 @@ def test_pdk_0p2a(self):
pdk_version = "0.2a"
for front_end in self._front_end_list:
for place_site in self._synopsys_site_list:
exp_sdc = self.get_exp_sdc(place_site, pdk_version)
exp_sdc = self.get_exp_sdc(place_site, pdk_version, front_end)
self.execute_cmd(
"SDC_FILE",
exp_sdc,
Expand All @@ -98,7 +105,7 @@ def test_pdk_0p15(self):
pdk_version = "0.15"
for front_end in self._front_end_list:
for place_site in self._synopsys_site_list:
exp_sdc = self.get_exp_sdc(place_site, pdk_version)
exp_sdc = self.get_exp_sdc(place_site, pdk_version, front_end)
self.execute_cmd(
"SDC_FILE",
exp_sdc,
Expand All @@ -115,7 +122,7 @@ def test_pdk_0p3s(self):
pdk_version = "0.3s"
for front_end in self._front_end_list:
for place_site in self._synopsys_site_list:
exp_sdc = self.get_exp_sdc(place_site, pdk_version)
exp_sdc = self.get_exp_sdc(place_site, pdk_version, front_end)
self.execute_cmd(
"SDC_FILE",
exp_sdc,
Expand All @@ -132,7 +139,24 @@ def test_pdk_0p3(self):
pdk_version = "0.3"
for front_end in self._front_end_list:
for place_site in self._synopsys_site_list:
exp_sdc = self.get_exp_sdc(place_site, pdk_version)
exp_sdc = self.get_exp_sdc(place_site, pdk_version, front_end)
self.execute_cmd(
"SDC_FILE",
exp_sdc,
place_site=place_site,
pdk_version=pdk_version,
front_end=front_end,
)

def test_pdk_t0p5(self):
"""
Tests Titan PDK 0.5
"""

pdk_version = "t0.5"
for front_end in self._front_end_list:
for place_site in self._synopsys_site_list:
exp_sdc = self.get_exp_sdc(place_site, pdk_version, front_end)
self.execute_cmd(
"SDC_FILE",
exp_sdc,
Expand Down
15 changes: 15 additions & 0 deletions flow/designs/rapidus2hp/ethmac/test/test_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,21 @@ def test_pdk_0p3(self):
front_end=front_end,
)

def test_pdk_t0p5(self):
"""Tests Titan PDK 0.5 Utilization"""

pdk_version = "t0.5"
for front_end in self._front_end_list:
for place_site in self._synopsys_site_list:
exp_util = self.get_exp_util(place_site, pdk_version)
self.execute_cmd(
"CORE_UTILIZATION",
exp_util,
place_site=place_site,
pdk_version=pdk_version,
front_end=front_end,
)

def test_flow_variant(self):
"""Tests that setting the flow variant uses the right frontend"""

Expand Down
17 changes: 17 additions & 0 deletions flow/designs/rapidus2hp/gcd/test/test_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,23 @@ def test_pdk_0p3(self):
front_end=front_end,
)

def test_pdk_t0p5(self):
"""
Tests Titan PDK 0.5 utilization
"""

pdk_version = "t0.5"
for front_end in self._front_end_list:
for place_site in self._synopsys_site_list:
exp_util = self.get_exp_util(place_site, pdk_version)
self.execute_cmd(
"CORE_UTILIZATION",
exp_util,
place_site=place_site,
pdk_version=pdk_version,
front_end=front_end,
)


if __name__ == "__main__":
unittest.main()
16 changes: 11 additions & 5 deletions flow/designs/rapidus2hp/hercules_idecode/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,20 @@ export CORE_UTILIZATION = $(strip \
58 \
) \
), \
$(if $(filter ra02h138_DST_45CPP SC6T,$(PLACE_SITE)), \
$(if $(and $(filter t0.5,$(RAPIDUS_PDK_VERSION)),$(filter SC5T,$(PLACE_SITE))), \
$(if $(filter slang,$(SYNTH_HDL_FRONTEND)), \
44, \
43 \
42 \
), \
$(if $(filter slang,$(SYNTH_HDL_FRONTEND)), \
50, \
48 \
$(if $(filter ra02h138_DST_45CPP SC6T,$(PLACE_SITE)), \
$(if $(filter slang,$(SYNTH_HDL_FRONTEND)), \
44, \
43 \
), \
$(if $(filter slang,$(SYNTH_HDL_FRONTEND)), \
50, \
48 \
) \
) \
) \
) \
Expand Down
21 changes: 21 additions & 0 deletions flow/designs/rapidus2hp/hercules_idecode/test/test_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ def get_exp_util(self, place_site, pdk_version, front_end):
if front_end in ["", "slang"]:
return 62
return 58
if pdk_version == "t0.5" and place_site == "SC5T":
if front_end in ["", "slang"]:
return 48
return 46
if place_site in ["SC6T", "ra02h138_DST_45CPP"]:
if front_end in ["", "slang"]:
return 44
Expand Down Expand Up @@ -150,6 +154,23 @@ def test_pdk_0p3(self):
front_end=front_end,
)

def test_pdk_t0p5(self):
"""
Tests Titan PDK 0.5 utilization
"""

pdk_version = "t0.5"
for front_end in self._front_end_list:
for place_site in self._synopsys_site_list:
exp_util = self.get_exp_util(place_site, pdk_version, front_end)
self.execute_cmd(
"CORE_UTILIZATION",
exp_util,
place_site=place_site,
pdk_version=pdk_version,
front_end=front_end,
)

def test_flow_variant(self):
"""Tests that setting the flow variant uses the right frontend"""

Expand Down
19 changes: 11 additions & 8 deletions flow/designs/rapidus2hp/hercules_is_int/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,17 @@ export CORE_UTILIZATION = $(strip \
63 \
) \
), \
$(if $(filter slang,$(SYNTH_HDL_FRONTEND)), \
$(if $(filter ra02h138_DST_45CPP SC6T,$(PLACE_SITE)), \
30, \
52 \
), \
$(if $(filter ra02h138_DST_45CPP SC6T,$(PLACE_SITE)), \
30, \
54 \
$(if $(and $(filter t0.5,$(RAPIDUS_PDK_VERSION)),$(filter SC5T,$(PLACE_SITE))), \
45, \
$(if $(filter slang,$(SYNTH_HDL_FRONTEND)), \
$(if $(filter ra02h138_DST_45CPP SC6T,$(PLACE_SITE)), \
30, \
52 \
), \
$(if $(filter ra02h138_DST_45CPP SC6T,$(PLACE_SITE)), \
30, \
54 \
) \
) \
) \
) \
Expand Down
23 changes: 23 additions & 0 deletions flow/designs/rapidus2hp/hercules_is_int/test/test_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ def get_exp_util(self, place_site, front_end, pdk_version, layer_stack):
if front_end in ["", "slang"]:
return 65
return 63
if pdk_version == "t0.5" and place_site == "SC5T":
return 45
if front_end == "verific":
if place_site in ["SC6T", "ra02h138_DST_45CPP"]:
return 30
Expand Down Expand Up @@ -188,6 +190,27 @@ def test_pdk_0p3(self):
layer_stack=layer_stack,
)

def test_pdk_t0p5(self):
"""
Tests Titan PDK 0.5 utilization
"""

layer_stack = "16LM"
pdk_version = "t0.5"
for front_end in self._front_end_list:
for place_site in self._synopsys_site_list:
exp_util = self.get_exp_util(
place_site, front_end, pdk_version, layer_stack
)
self.execute_cmd(
"CORE_UTILIZATION",
exp_util,
place_site=place_site,
pdk_version=pdk_version,
front_end=front_end,
layer_stack=layer_stack,
)

def test_flow_variant(self):
"""Tests that setting the flow variant uses the right frontend"""

Expand Down
11 changes: 9 additions & 2 deletions flow/designs/rapidus2hp/ibex/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ else
._0P3S_6T_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint_0.3s_6T.sdc
._0P3S_8T_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint_0.3s_8T.sdc
._0P3_8T_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint_0.3_8T.sdc
.T0P5_8T_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint_t0.5_8T.sdc

# Use $(if) to defer conditional eval until all makefiles are read
export SDC_FILE = $(strip \
Expand All @@ -50,7 +51,10 @@ else
$(._0P3_8T_SDC_FILE), \
$(.DEFAULT_SDC_FILE) \
), \
$(.DEFAULT_SDC_FILE) \
$(if $(and $(filter t0.5,$(RAPIDUS_PDK_VERSION)),$(filter SC8T,$(PLACE_SITE))), \
$(.T0P5_8T_SDC_FILE), \
$(.DEFAULT_SDC_FILE) \
) \
) \
) \
) \
Expand All @@ -73,7 +77,10 @@ export CORE_UTILIZATION = $(strip \
55, \
70 \
), \
70 \
$(if $(and $(filter t0.5,$(RAPIDUS_PDK_VERSION)),$(filter SC5T,$(PLACE_SITE))), \
65, \
70 \
) \
) \
) \
))
Expand Down
19 changes: 19 additions & 0 deletions flow/designs/rapidus2hp/ibex/constraint_t0.5_8T.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 580
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]
Loading