Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update openroad #597

Draft
wants to merge 4 commits into
base: dev
Choose a base branch
from
Draft
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
4 changes: 2 additions & 2 deletions nix/openroad.nix
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
clang-tools_14,
buildEnv,
makeBinaryWrapper,
rev ? "edf00dff99f6c40d67a30c0e22a8191c5d2ed9d6",
sha256 ? "sha256-J649SIC/IHtiKiMvY8XrteyFkNM0WeQ6hfKIYdtE81g=",
rev ? "73c1f495d0a2476768a300871d4ae1d42bb4c389",
sha256 ? "sha256-kdJIxlsRvDtyFrHRpNSbZZwjgzCyfYMalsiV2HZZypk=",
# environments,
openroad,
buildPythonEnvForInterpreter,
Expand Down
4 changes: 2 additions & 2 deletions nix/opensta.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
cudd,
zlib,
eigen,
rev ? "b5f3a02b33b8ae1739ace8a329fde94434711dd6",
sha256 ? "sha256-s9Qn8Hkxuzvx7sZdaa/RX8X4Rp4w/kTVdnrmsRvC8wo=",
rev ? "aa598a2f14c5c142e90391a69988523505e7db3d",
sha256 ? "sha256-vrOZ7fHp3g5eylL4o6IKuBXug8iz58xgF6Zaf9LYnHg=",
}:
clangStdenv.mkDerivation (finalAttrs: {
name = "opensta";
Expand Down
4 changes: 1 addition & 3 deletions openlane/scripts/openroad/pdn.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ foreach {net} "$::env(VDD_NETS) $::env(GND_NETS)" {
# at all. i.e. PDN generation has completely failed.
# This is a fallback file.
set f [open $report_file "w"]
puts $f "violation type: no nodes"
puts $f " srcs: "
puts $f " - N/A"
puts $f ""
close $f

if { [catch {check_power_grid -net $net -error_file $report_file} err] } {
Expand Down
5 changes: 3 additions & 2 deletions openlane/steps/openroad.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import os
import re
import json
import textwrap
import tempfile
import functools
import subprocess
Expand Down Expand Up @@ -1128,9 +1129,9 @@ def get_psm_error_count(rpt: io.TextIOWrapper) -> int:
vio_type = line[len(VIO_TYPE_PFX) :].strip()
sio.write(f"- type: {vio_type}\n")
elif "bbox = " in line:
sio.write(line.replace("bbox = ", "- bbox ="))
sio.write(f" {textwrap.dedent(line.replace('bbox = ', '- bbox ='))}")
else:
sio.write(line)
sio.write(f" {textwrap.dedent(line)}")

sio.seek(0)
violations = yaml.load(sio, Loader=yaml.SafeLoader) or []
Expand Down
Loading