-
Notifications
You must be signed in to change notification settings - Fork 384
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate KLayout DRC for
sky130
(#2059)
~ Bump open_pdks version to `cd1748bb197f9b7af62a54507de6624e30363943` ~ Rename `PRIMARY_SIGNOFF_TOOL` to `PRIMARY_GDSII_STREAMOUT_TOOL` ~ Update documentation of `RUN_MAGIC_DRC` and `RUN_KLAYOUT_DRC` + Integrate KLayout DRC for sky130 + Add the following variables: ``` KLAYOUT_DRC_THREADS QUIT_ON_KLAYOUT_DRC RUN_KLAYOUT_DRC KLAYOUT_DRC_RUNSET - PDK variable KLAYOUT_DRC_OPTIONS - PDK variable ``` - Remove `KLAYOUT_DRC_KLAYOUT_GDS`
- Loading branch information
1 parent
f691c8c
commit 571581d
Showing
28 changed files
with
232 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,3 +41,4 @@ set ::env(QUIT_ON_LVS_ERROR) 1 | |
|
||
# Klayout | ||
set ::env(QUIT_ON_XOR_ERROR) 1 | ||
set ::env(QUIT_ON_KLAYOUT_DRC) 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/usr/bin/env python3 | ||
# Copyright (c) 2023 Efabless Corporation | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
import json | ||
|
||
from klayout.rdb import ReportDatabase | ||
import click | ||
|
||
|
||
@click.command() | ||
@click.option("--xml-file") | ||
@click.option("--json-file") | ||
def cli(xml_file, json_file): | ||
database = ReportDatabase("Database") | ||
json_database = {} | ||
database.load(xml_file) | ||
total = 0 | ||
for category in database.each_category(): | ||
num_items = category.num_items() | ||
category_name = category.name() | ||
json_database[category_name] = num_items | ||
total += num_items | ||
|
||
json_database = dict(sorted(json_database.items(), key=lambda item: item[1])) | ||
json_database["total"] = total | ||
|
||
with open(json_file, "w", encoding="utf8") as f: | ||
json.dump(json_database, f) | ||
|
||
|
||
if __name__ == "__main__": | ||
cli() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"DESIGN_NAME": "inverter", | ||
"VERILOG_FILES": [], | ||
"RUN_CTS": false, | ||
"CLOCK_PORT": null, | ||
"PL_RANDOM_GLB_PLACEMENT": true, | ||
"FP_SIZING": "absolute", | ||
"DIE_AREA": "0 0 34.5 57.12", | ||
"PL_TARGET_DENSITY": 0.75, | ||
"FP_PDN_AUTO_ADJUST": false, | ||
"FP_PDN_VPITCH": 25, | ||
"FP_PDN_HPITCH": 25, | ||
"FP_PDN_VOFFSET": 5, | ||
"FP_PDN_HOFFSET": 5, | ||
"DIODE_INSERTION_STRATEGY": 3 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package require openlane; | ||
|
||
prep -design $::env(TEST_DIR) {*}$argv | ||
|
||
set ::env(CURRENT_GDS) $::env(TEST_DIR)/inverter.gds | ||
|
||
run_klayout_drc |
Binary file not shown.
Oops, something went wrong.