mirror of
https://github.com/TinyTapeout/tt-support-tools.git
synced 2026-11-03 04:36:09 +01:00
feat(precheck/gf180mcuD): add antenna check
This commit is contained in:
+22
-2
@@ -95,10 +95,16 @@ def klayout_custom_drc(
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def klayout_drc(gds: str, check: str, script=f"{PDK_NAME}_mr.drc", extra_vars=[]):
|
def klayout_drc(
|
||||||
|
gds: str,
|
||||||
|
check: str,
|
||||||
|
script=f"{PDK_NAME}_mr.drc",
|
||||||
|
script_dir="tech-files",
|
||||||
|
extra_vars=[],
|
||||||
|
):
|
||||||
logging.info(f"Running klayout {check} on {gds}")
|
logging.info(f"Running klayout {check} on {gds}")
|
||||||
if "/" not in script:
|
if "/" not in script:
|
||||||
script = f"tech-files/{script}"
|
script = f"{script_dir}/{script}"
|
||||||
script_vars = {
|
script_vars = {
|
||||||
check: "true",
|
check: "true",
|
||||||
"input": gds,
|
"input": gds,
|
||||||
@@ -120,6 +126,15 @@ def klayout_sg13g2(gds: str):
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
def klayout_gf180mcuD_antenna(gds: str):
|
||||||
|
return klayout_drc(
|
||||||
|
gds,
|
||||||
|
"antenna",
|
||||||
|
"antenna.drc",
|
||||||
|
script_dir=f"{PDK_ROOT}/{PDK_NAME}/libs.tech/klayout/drc/rule_decks",
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def klayout_checks(gds: str, expected_name: str, tech: str):
|
def klayout_checks(gds: str, expected_name: str, tech: str):
|
||||||
layout = pya.Layout()
|
layout = pya.Layout()
|
||||||
layout.read(gds)
|
layout.read(gds)
|
||||||
@@ -461,6 +476,11 @@ def main():
|
|||||||
"check": lambda: urpm_nwell_check(gds_file, top_module),
|
"check": lambda: urpm_nwell_check(gds_file, top_module),
|
||||||
"techs": ["sky130A"],
|
"techs": ["sky130A"],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "Antenna check",
|
||||||
|
"check": lambda: klayout_gf180mcuD_antenna(gds_file),
|
||||||
|
"techs": ["gf180mcuD"],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "Analog pin check",
|
"name": "Analog pin check",
|
||||||
"check": lambda: analog_pin_check(
|
"check": lambda: analog_pin_check(
|
||||||
|
|||||||
Reference in New Issue
Block a user