Skip to content

Commit 6070f55

Browse files
authored
Merge pull request hdl#311 from hdl/multi_lib
Extract extra lib files if they exist
2 parents e8d0e58 + c1144ac commit 6070f55

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

pdk/proto/build_defs.bzl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ def _extract_lef_and_liberty_impl(ctx):
2424

2525
content.append("liberty_path: \"{}\"".format(standard_cell.default_corner.liberty.short_path))
2626
out_files.append(standard_cell.default_corner.liberty)
27+
28+
for file in [corner.liberty for corner in standard_cell.corners]:
29+
content.append("additional_liberty_paths: \"{}\"".format(file.short_path))
30+
out_files.append(file)
2731
else:
2832
for file in ctx.attr.cell_lef_paths:
2933
content.append("cell_lef_paths: \"{}\"".format(file))

pdk/proto/pdk_info.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ message PdkInfoProto {
66
repeated string cell_lef_paths = 1;
77
optional string tech_lef_path = 2;
88
optional string liberty_path = 3;
9+
optional string additional_liberty_paths = 28;
910
optional string tracks_file_path = 4;
1011
optional string pin_horizontal_metal_layer = 5;
1112
optional string pin_vertical_metal_layer = 6;

0 commit comments

Comments
 (0)