Skip to content

Commit d4e1d27

Browse files
committed
Remove the naming munging function that was there for backward compatibility
Signed-off-by: Don MacMillen <[email protected]>
1 parent 2867045 commit d4e1d27

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/pdn/test/pdn_aux.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,6 @@ def add_global_connection(design, *,
4747
design.getBlock().addGlobalConnect(region, inst_pattern, pin_pattern, net, True)
4848

4949

50-
# Only to change the case? Seems weird.
51-
def modify_voltage_domain_name(name):
52-
if name == "CORE":
53-
return "Core"
54-
return name
55-
56-
5750
def check_design_state(design, cmd):
5851
if not bool(design.getBlock()):
5952
utl.error(utl.PDN, 1599, f"Design must be loaded before calling {cmd}.")
@@ -93,7 +86,7 @@ def set_voltage_domain(design, *,
9386
utl.error(utl.PDN, 1510, f"Unable to find region: {region}")
9487

9588
if bool(name):
96-
name = modify_voltage_domain_name(name)
89+
name = name.capitalize() if name == "CORE" else name
9790
else:
9891
name = region.getName()
9992

@@ -122,7 +115,7 @@ def set_voltage_domain(design, *,
122115
"type {switched_power.getSigType()}.")
123116

124117
if region is None:
125-
if bool(name) and modify_voltage_domain_name(name) != "Core":
118+
if bool(name) and name.capitalize() != "Core":
126119
utl.warn(utl.PDN, 1513, "Core voltage domain will be named \"Core\".")
127120
pdngen.setCoreDomain(pwr,
128121
switched_power,

0 commit comments

Comments
 (0)