Skip to content

Commit 2d101cf

Browse files
committed
fix: address Gemini review feedback on PR #4208
- flow/BUILD.bazel: use .get(pdk, []) instead of [pdk] for the per-PDK extension dict so adding a PDK to the iteration list without a matching dict entry no longer crashes with KeyError. - flow/designs/gf180/uart-blocks/rules-base.json: revert to master's version. The branch's regenerated copy had constraints__clocks__count dropped to 0 (timing constraints not applied) and was missing synth__design__instance__area__stdcell. - flow/designs/src/{aes,ethmac,gcd}/BUILD.bazel: include *.sv in the verilog filegroup glob so it matches exports_files and the rest of the design BUILD files (allow_empty since none currently exist). Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
1 parent dfa4265 commit 2d101cf

5 files changed

Lines changed: 27 additions & 23 deletions

File tree

‎flow/BUILD.bazel‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ filegroup(
6060
"nangate45": ["cfg", "gds", "lef", "lib", "lyt", "mk", "rules", "tcl", "v"],
6161
"sky130hd": ["gds", "lef", "lib", "lyt", "mk", "rules", "tcl", "tlef", "v"],
6262
"sky130hs": ["gds", "lef", "lib", "lyt", "mk", "rules", "tcl", "tlef", "v"],
63-
}[pdk]
63+
}.get(pdk, [])
6464
] + [
6565
"platforms/common/**/*.v",
6666
]),
Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,70 @@
11
{
2+
"synth__design__instance__area__stdcell": {
3+
"value": 61300.0,
4+
"compare": "<="
5+
},
26
"constraints__clocks__count": {
3-
"value": 0,
7+
"value": 1,
48
"compare": "=="
59
},
610
"placeopt__design__instance__area": {
7-
"value": 70862,
11+
"value": 69126,
812
"compare": "<="
913
},
1014
"placeopt__design__instance__count__stdcell": {
11-
"value": 743,
15+
"value": 714,
1216
"compare": "<="
1317
},
1418
"detailedplace__design__violations": {
1519
"value": 0,
1620
"compare": "=="
1721
},
1822
"cts__design__instance__count__setup_buffer": {
19-
"value": 65,
23+
"value": 62,
2024
"compare": "<="
2125
},
2226
"cts__design__instance__count__hold_buffer": {
23-
"value": 65,
27+
"value": 62,
2428
"compare": "<="
2529
},
2630
"cts__timing__setup__ws": {
27-
"value": 0.0,
31+
"value": -0.3,
2832
"compare": ">="
2933
},
3034
"cts__timing__setup__tns": {
31-
"value": 0.0,
35+
"value": -1.2,
3236
"compare": ">="
3337
},
3438
"cts__timing__hold__ws": {
35-
"value": 0.0,
39+
"value": -0.3,
3640
"compare": ">="
3741
},
3842
"cts__timing__hold__tns": {
39-
"value": 0.0,
43+
"value": -1.2,
4044
"compare": ">="
4145
},
4246
"globalroute__antenna_diodes_count": {
4347
"value": 100,
4448
"compare": "<="
4549
},
4650
"globalroute__timing__setup__ws": {
47-
"value": 0.0,
51+
"value": -0.3,
4852
"compare": ">="
4953
},
5054
"globalroute__timing__setup__tns": {
51-
"value": 0.0,
55+
"value": -1.2,
5256
"compare": ">="
5357
},
5458
"globalroute__timing__hold__ws": {
55-
"value": 0.0,
59+
"value": -0.3,
5660
"compare": ">="
5761
},
5862
"globalroute__timing__hold__tns": {
59-
"value": 0.0,
63+
"value": -1.2,
6064
"compare": ">="
6165
},
6266
"detailedroute__route__wirelength": {
63-
"value": 19283,
67+
"value": 21354,
6468
"compare": "<="
6569
},
6670
"detailedroute__route__drc_errors": {
@@ -76,23 +80,23 @@
7680
"compare": "<="
7781
},
7882
"finish__timing__setup__ws": {
79-
"value": 0.0,
83+
"value": -0.3,
8084
"compare": ">="
8185
},
8286
"finish__timing__setup__tns": {
83-
"value": 0.0,
87+
"value": -1.2,
8488
"compare": ">="
8589
},
8690
"finish__timing__hold__ws": {
87-
"value": 0.0,
91+
"value": -0.3,
8892
"compare": ">="
8993
},
9094
"finish__timing__hold__tns": {
91-
"value": 0.0,
95+
"value": -1.2,
9296
"compare": ">="
9397
},
9498
"finish__design__instance__area": {
95-
"value": 70862,
99+
"value": 70132,
96100
"compare": "<="
97101
}
98102
}

‎flow/designs/src/aes/BUILD.bazel‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ exports_files(
55

66
filegroup(
77
name = "verilog",
8-
srcs = glob(include = ["*.v"]),
8+
srcs = glob(include = ["*.v", "*.sv"], allow_empty = True),
99
visibility = ["//visibility:public"],
1010
)

‎flow/designs/src/ethmac/BUILD.bazel‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ exports_files(
55

66
filegroup(
77
name = "verilog",
8-
srcs = glob(include = ["*.v"]),
8+
srcs = glob(include = ["*.v", "*.sv"], allow_empty = True),
99
visibility = ["//visibility:public"],
1010
)

‎flow/designs/src/gcd/BUILD.bazel‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ exports_files(
55

66
filegroup(
77
name = "verilog",
8-
srcs = glob(include = ["*.v"]),
8+
srcs = glob(include = ["*.v", "*.sv"], allow_empty = True),
99
visibility = ["//visibility:public"],
1010
)

0 commit comments

Comments
 (0)