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

Orfs bump #276

Merged
merged 2 commits into from
Jan 30, 2025
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
2 changes: 1 addition & 1 deletion BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ LB_VERILOG_FILES = ["test/mock/lb_32x128.sv"]
orfs_flow(
name = "lb_32x128",
arguments = LB_ARGS,
mock_area = 0.90,
mock_area = 0.7,
stage_sources = LB_STAGE_SOURCES,
verilog_files = LB_VERILOG_FILES,
)
Expand Down
4 changes: 2 additions & 2 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ orfs = use_extension("//:extension.bzl", "orfs_repositories")
orfs.default(
# a local only or remote docker image. Local docker images do not
# have a sha256.
image = "docker.io/openroad/orfs:v3.0-2024-g6a47bb89",
image = "docker.io/openroad/orfs:v3.0-2199-g6fb3f3eb",
# Comment out line below for local only docker images
sha256 = "6b1a31959f0f70716d6eb8a6fb3d36ea854cddb3a1d4612bfb961d37071c20eb",
sha256 = "e93890d575d53fe93a2b27902c844682fb7d4d54cb99bfc81379f4d4bc47fa72",
)
use_repo(orfs, "com_github_nixos_patchelf_download")
use_repo(orfs, "docker_orfs")
6 changes: 3 additions & 3 deletions MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 13 additions & 3 deletions mock_area.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,20 @@ set die_bbox [$block getDieArea]
set core_bbox [$block getCoreArea]
set scale [expr $::env(MOCK_AREA) / $dbu_per_uu]

proc area_um {bbox} {
global dbu_per_uu
return "[expr [$bbox xMin] / $dbu_per_uu] [expr [$bbox yMin] / $dbu_per_uu] [expr [$bbox xMax] / $dbu_per_uu] [expr [$bbox yMax] / $dbu_per_uu]"
}

puts "DIE_AREA: [area_um $die_bbox]"
puts "CORE_AREA: [area_um $core_bbox]"

set file [open $out_file w]
tee $file "export DIE_AREA=0 0 [expr $scale*[$die_bbox xMax]] [expr $scale*[$die_bbox yMax]]"
tee $file "export CORE_AREA=[expr $scale*[$core_bbox xMin]] [expr $scale*[$core_bbox yMin]]\
[expr $scale*([$die_bbox xMax] - ([$die_bbox xMax] - [$core_bbox xMax]))]\
[expr $scale*([$die_bbox yMax] - ([$die_bbox yMax] - [$core_bbox yMax]))]"
# keep same margin between DIE_ARE and CORE_AREA
tee $file "export CORE_AREA=[expr ([$core_bbox xMin] - [$die_bbox xMin]) / $dbu_per_uu] \
[expr ([$core_bbox yMin] - [$die_bbox yMin]) / $dbu_per_uu] \
[expr $scale*[$die_bbox xMax] - ([$die_bbox xMax] - [$core_bbox xMax]) / $dbu_per_uu ] \
[expr $scale*[$die_bbox yMax] - ([$die_bbox yMax] - [$core_bbox yMax]) / $dbu_per_uu]"
tee $file "export CORE_UTILIZATION="
close $file