-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #173 from efabless/gf180_add_checks
Gf180 add checks
- Loading branch information
Showing
7 changed files
with
265 additions
and
156 deletions.
There are no files selected for viewing
Binary file not shown.
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,42 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<klayout-macro> | ||
<description/> | ||
<version/> | ||
<category>drc</category> | ||
<prolog/> | ||
<epilog/> | ||
<doc/> | ||
<autorun>false</autorun> | ||
<autorun-early>false</autorun-early> | ||
<shortcut/> | ||
<show-in-menu>true</show-in-menu> | ||
<group-name>drc_scripts</group-name> | ||
<menu-path>tools_menu.drc.end</menu-path> | ||
<interpreter>dsl</interpreter> | ||
<dsl-interpreter-name>drc-dsl-xml</dsl-interpreter-name> | ||
<text> | ||
|
||
source($input, $top_cell) | ||
report("Density Checks", $report) | ||
|
||
verbose(true) | ||
|
||
deep | ||
|
||
comp_layer = "22/0" | ||
comp_dummy_layer = "22/4" | ||
|
||
# --------------- | ||
|
||
chip_boundary = input(235,4) | ||
#area = (m4+m4fill).area | ||
full_area = chip_boundary.area | ||
|
||
comp_density = polygons(comp_layer, comp_dummy_layer).area / full_area | ||
log("comp_density is #{comp_density}") | ||
if comp_density > 0.7 | ||
chip_boundary.output("comp.density", "0.7 max comp density") | ||
end | ||
|
||
</text> | ||
</klayout-macro> |
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
Oops, something went wrong.