Skip to content

Commit 415e139

Browse files
authored
Merge pull request #3065 from The-OpenROAD-Project-staging/add-cap-load-unit-replace
Added capacitive_load_unit replacement
2 parents 58398cf + e3fd467 commit 415e139

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

flow/util/preprocessLib.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@
3636
content, count = re.subn(pattern, replace, content)
3737
print("Replaced malformed functions", count)
3838

39+
# Yosys-abc raises an assertion if the capacitive_load_unit is not ff
40+
pattern = r"capacitive_load_unit\s*\(\s*0.001,pf\s*\);"
41+
replace = r"capacitive_load_unit (1,ff);"
42+
content, count = re.subn(pattern, replace, content)
43+
print("Replaced capacitive_load_unit", count)
44+
3945
# Write output file
4046
print("Writing replaced file:", args.outputFile)
4147
f = open(args.outputFile, "w")

0 commit comments

Comments
 (0)