diff --git a/flow/designs/rapidus2hp/cva6/test/test_params.py b/flow/designs/rapidus2hp/cva6/test/test_params.py index 9456846098..b04c8bc987 100755 --- a/flow/designs/rapidus2hp/cva6/test/test_params.py +++ b/flow/designs/rapidus2hp/cva6/test/test_params.py @@ -24,7 +24,9 @@ def setUp(self): def get_exp_sdc(self, place_site, pdk_version): """Returns the expected SDC file path""" - if pdk_version in ["0.2a", "0.3"]: + if pdk_version in ["", "0.2a", "0.3"]: + if pdk_version == "": + pdk_version = "0.2a" if place_site == "ra02h138_DST_45CPP": return os.path.join( self._design_full_dir, f"constraint_{pdk_version}_6T.sdc" @@ -35,14 +37,14 @@ def get_exp_sdc(self, place_site, pdk_version): return os.path.join(self._design_full_dir, "constraint.sdc") - def test_pdk_0p2_default(self): + def test_pdk_0p2a_default(self): """ - Tests PDK 0.2 + Tests PDK 0.2a """ front_end = "" pdk_version = "" - for place_site in self._ibm_site_list: + for place_site in self._synopsys_site_list: exp_sdc = self.get_exp_sdc(place_site, pdk_version) self.execute_cmd(place_site, pdk_version, front_end, "SDC_FILE", exp_sdc) diff --git a/flow/designs/rapidus2hp/ethmac/test/test_params.py b/flow/designs/rapidus2hp/ethmac/test/test_params.py index 5b53e36f14..cbbe764f02 100755 --- a/flow/designs/rapidus2hp/ethmac/test/test_params.py +++ b/flow/designs/rapidus2hp/ethmac/test/test_params.py @@ -32,12 +32,12 @@ def get_exp_util(self, place_site, pdk_version): return 65 return 70 - def test_pdk_0p2_default(self): - """Tests PDK 0.2 Utilization""" + def test_pdk_0p2a_default(self): + """Tests PDK 0.2a Utilization""" front_end = "" pdk_version = "" - for place_site in self._ibm_site_list: + for place_site in self._synopsys_site_list: exp_util = self.get_exp_util(place_site, pdk_version) self.execute_cmd( place_site, pdk_version, front_end, "CORE_UTILIZATION", exp_util diff --git a/flow/designs/rapidus2hp/gcd/test/test_params.py b/flow/designs/rapidus2hp/gcd/test/test_params.py index 65b5289800..60cb50d929 100755 --- a/flow/designs/rapidus2hp/gcd/test/test_params.py +++ b/flow/designs/rapidus2hp/gcd/test/test_params.py @@ -32,14 +32,14 @@ def get_exp_util(self, place_site, pdk_version): return 43 return 45 - def test_pdk_0p2_default(self): + def test_pdk_0p2a_default(self): """ - Tests PDK 0.2 utilization + Tests PDK 0.2a utilization """ front_end = "" pdk_version = "" - for place_site in self._ibm_site_list: + for place_site in self._synopsys_site_list: exp_util = self.get_exp_util(place_site, pdk_version) self.execute_cmd( place_site, pdk_version, front_end, "CORE_UTILIZATION", exp_util diff --git a/flow/designs/rapidus2hp/hercules_idecode/test/test_params.py b/flow/designs/rapidus2hp/hercules_idecode/test/test_params.py index cbd822fec4..93c5f0d4ff 100755 --- a/flow/designs/rapidus2hp/hercules_idecode/test/test_params.py +++ b/flow/designs/rapidus2hp/hercules_idecode/test/test_params.py @@ -33,14 +33,14 @@ def get_exp_util(self, place_site, front_end): return 44 return 50 - def test_pdk_0p2_default(self): + def test_pdk_0p2a_default(self): """ - Tests PDK 0.2 utilization + Tests PDK 0.2a utilization """ pdk_version = "" for front_end in self._front_end_list: - for place_site in self._ibm_site_list: + for place_site in self._synopsys_site_list: exp_util = self.get_exp_util(place_site, front_end) self.execute_cmd( place_site, pdk_version, front_end, "CORE_UTILIZATION", exp_util diff --git a/flow/designs/rapidus2hp/hercules_is_int/config.mk b/flow/designs/rapidus2hp/hercules_is_int/config.mk index 2f88546d1a..6dfad00a3d 100644 --- a/flow/designs/rapidus2hp/hercules_is_int/config.mk +++ b/flow/designs/rapidus2hp/hercules_is_int/config.mk @@ -28,20 +28,32 @@ export SYNTH_HIERARCHICAL ?= 0 # Use $(if) to defer conditional eval until all makefiles are read # -# | Front End | Place Site | Utilization | -# | --------- | ---------- | ----------- | -# | slang | 6T | 30 | -# | slang | 8T | 52 | -# | verific | 6T | 30 | -# | verific | 8T | 54 | +# | PDK Version | Front End | Place Site | Utilization | +# | ------------| --------- | ---------- | ----------- | +# | all | slang | 6T | 30 | +# | non-0.3 | slang | 8T | 52 | +# | all | verific | 6T | 30 | +# | non-0.3 | verific | 8T | 54 | +# | 0.3 | slang | 8T | 54 | +# | 0.3 | verific | 8T | 55 | -export CORE_UTILIZATION = $(strip $(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))) +export CORE_UTILIZATION = $(strip \ + $(if $(filter 0.3,$(RAPIDUS_PDK_VERSION)), \ + $(if $(filter slang,$(SYNTH_HDL_FRONTEND)), \ + 54, \ + 55 \ + ), \ + $(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 \ + ) \ + ) \ + )) export CORE_MARGIN = 1 export PLACE_DENSITY = 0.58 diff --git a/flow/designs/rapidus2hp/hercules_is_int/test/test_params.py b/flow/designs/rapidus2hp/hercules_is_int/test/test_params.py index 32fe35d974..fa6ed8287f 100755 --- a/flow/designs/rapidus2hp/hercules_is_int/test/test_params.py +++ b/flow/designs/rapidus2hp/hercules_is_int/test/test_params.py @@ -21,9 +21,13 @@ def setUp(self): ParamTestBase.set_up(self, "hercules_is_int") - def get_exp_util(self, place_site, front_end): + def get_exp_util(self, place_site, front_end, pdk_version): """Returns the expected value""" + if pdk_version == "0.3": + if front_end == "verific": + return 55 + return 54 if front_end == "verific": if place_site in ["SC6T", "ra02h138_DST_45CPP"]: return 30 @@ -33,15 +37,15 @@ def get_exp_util(self, place_site, front_end): return 30 return 52 - def test_pdk_0p2_default(self): + def test_pdk_0p2a_default(self): """ - Tests PDK 0.2 utilization + Tests PDK 0.2a utilization """ pdk_version = "" for front_end in self._front_end_list: - for place_site in self._ibm_site_list: - exp_util = self.get_exp_util(place_site, front_end) + for place_site in self._synopsys_site_list: + exp_util = self.get_exp_util(place_site, front_end, pdk_version) self.execute_cmd( place_site, pdk_version, front_end, "CORE_UTILIZATION", exp_util ) @@ -54,7 +58,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_util = self.get_exp_util(place_site, front_end) + exp_util = self.get_exp_util(place_site, front_end, pdk_version) self.execute_cmd( place_site, pdk_version, front_end, "CORE_UTILIZATION", exp_util ) @@ -67,7 +71,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_util = self.get_exp_util(place_site, front_end) + exp_util = self.get_exp_util(place_site, front_end, pdk_version) self.execute_cmd( place_site, pdk_version, front_end, "CORE_UTILIZATION", exp_util ) @@ -80,7 +84,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_util = self.get_exp_util(place_site, front_end) + exp_util = self.get_exp_util(place_site, front_end, pdk_version) self.execute_cmd( place_site, pdk_version, front_end, "CORE_UTILIZATION", exp_util ) @@ -93,7 +97,7 @@ 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_util = self.get_exp_util(place_site, front_end) + exp_util = self.get_exp_util(place_site, front_end, pdk_version) self.execute_cmd( place_site, pdk_version, front_end, "CORE_UTILIZATION", exp_util ) diff --git a/flow/designs/rapidus2hp/ibex/test/test_params.py b/flow/designs/rapidus2hp/ibex/test/test_params.py index b52d1f5e94..4a8aa9fa66 100755 --- a/flow/designs/rapidus2hp/ibex/test/test_params.py +++ b/flow/designs/rapidus2hp/ibex/test/test_params.py @@ -33,7 +33,9 @@ def get_exp_util(self, place_site, pdk_version): def get_exp_sdc(self, place_site, pdk_version): """Returns the expected SDC file path""" - if pdk_version == "0.2a": + if pdk_version in ["", "0.2a"]: + if pdk_version == "": + pdk_version = "0.2a" if place_site == "ra02h138_DST_45CPP": return os.path.join( self._design_full_dir, f"constraint_{pdk_version}_6T.sdc" @@ -50,14 +52,14 @@ def get_exp_sdc(self, place_site, pdk_version): ) return os.path.join(self._design_full_dir, "constraint.sdc") - def test_pdk_0p2_default(self): + def test_pdk_0p2a_default(self): """ - Tests PDK 0.2 utilization + Tests PDK 0.2a utilization """ front_end = "" pdk_version = "" - for place_site in self._ibm_site_list: + for place_site in self._synopsys_site_list: exp_util = self.get_exp_util(place_site, pdk_version) exp_sdc = self.get_exp_sdc(place_site, pdk_version) self.execute_cmd( diff --git a/flow/designs/rapidus2hp/jpeg/test/test_params.py b/flow/designs/rapidus2hp/jpeg/test/test_params.py index 7f2b15e5dc..cf35de1be9 100755 --- a/flow/designs/rapidus2hp/jpeg/test/test_params.py +++ b/flow/designs/rapidus2hp/jpeg/test/test_params.py @@ -24,7 +24,9 @@ def setUp(self): def get_exp_sdc(self, place_site, pdk_version): """Returns the expected SDC file path""" - if pdk_version == "0.2a": + if pdk_version in ["", "0.2a"]: + if pdk_version == "": + pdk_version = "0.2a" if place_site in ["", "ra02h184_HST_45CPP"]: return os.path.join( self._design_full_dir, f"jpeg_encoder15_{pdk_version}_8T.sdc" @@ -35,14 +37,14 @@ def get_exp_sdc(self, place_site, pdk_version): ) return os.path.join(self._design_full_dir, "jpeg_encoder15_7nm.sdc") - def test_pdk_0p2_default(self): + def test_pdk_0p2a_default(self): """ - Tests PDK 0.2 utilization + Tests PDK 0.2a utilization """ front_end = "" pdk_version = "" - for place_site in self._ibm_site_list: + for place_site in self._synopsys_site_list: exp_sdc = self.get_exp_sdc(place_site, pdk_version) self.execute_cmd(place_site, pdk_version, front_end, "SDC_FILE", exp_sdc)