Skip to content
Open
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
33 changes: 27 additions & 6 deletions flow/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
load("@bazel-orfs//:openroad.bzl", "orfs_pdk")

exports_files(
["scripts/variables.yaml"],
visibility = ["//visibility:public"],
)

# files shared between scripts/synth.sh and scripts/flow.sh steps
MAKEFILE_SHARED = [
"scripts/*.py",
Expand All @@ -16,6 +21,7 @@ filegroup(
"scripts/*.script",
"scripts/util.tcl",
"scripts/synth*.tcl",
"scripts/synth*.v",
"platforms/common/**/*.v",
]) + [
"//flow/util:makefile_yosys",
Expand Down Expand Up @@ -46,25 +52,40 @@ filegroup(
for ext in [
"gds",
"lef",
"lib",
"lyp",
"lyt",
"mk",
"rules",
"tcl",
"v",
] + {
"sky130hd": ["tlef"],
"asap7": [
"lib.gz",
"sdc",
],
"asap7": ["cfg", "json", "lib.gz", "sdc"],
"gf180": ["cfg", "layermap", "lyt_generic"],
"ihp-sg13g2": ["json"],
"nangate45": ["cfg"],
"sky130hd": ["json", "tlef"],
"sky130hs": ["json", "tlef"],
}.get(pdk, [])
] + [
"platforms/common/**/*.v",
]),
libs = glob([
"platforms/{pdk}/**/*.{ext}".format(
pdk = pdk,
ext = ext,
)
for ext in {
"asap7": ["lib", "lib.gz"],
"gf180": ["lib.gz"],
}.get(pdk, ["lib"])
]),
config = ":platforms/{pdk}/config.mk".format(pdk = pdk),
visibility = ["//visibility:public"],
) for pdk in [
"asap7",
"gf180",
"ihp-sg13g2",
"nangate45",
"sky130hd",
"sky130hs",
]]