Skip to content

Commit

Permalink
fix(precheck): update analog template paths
Browse files Browse the repository at this point in the history
  • Loading branch information
urish committed Jun 18, 2024
1 parent ada2e92 commit 674fdc7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion precheck/precheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def main():
tiles = yaml_data.get("project", {}).get("tiles", "1x1")
is_analog = yaml_data.get("project", {}).get("analog_pins", 0) > 0
if is_analog:
template_def = f"../def/analog/tt_block_{tiles}_pg_ana.def"
template_def = f"../def/analog/tt_analog_{tiles}.def"
else:
template_def = f"../def/tt_block_{tiles}_pg.def"
logging.info(f"using def template {template_def}")
Expand Down
10 changes: 5 additions & 5 deletions precheck/test_precheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def generate_analog_example(
f.write(
textwrap.dedent(
f"""
def read ../def/analog/tt_block_1x2_pg_ana.def
def read ../def/analog/tt_analog_1x2.def
cellname rename tt_um_template {toplevel}
# VPWR
Expand Down Expand Up @@ -315,7 +315,7 @@ def test_pin_analog_example(gds_lef_analog_example: tuple[str, str]):
precheck.pin_check(
gds_file,
lef_file,
"../def/analog/tt_block_1x2_pg_ana.def",
"../def/analog/tt_analog_1x2.def",
"TEST_analog_example",
)

Expand All @@ -329,7 +329,7 @@ def test_pin_analog_wrong_vgnd(gds_lef_analog_wrong_vgnd: tuple[str, str]):
precheck.pin_check(
gds_file,
lef_file,
"../def/analog/tt_block_1x2_pg_ana.def",
"../def/analog/tt_analog_1x2.def",
"TEST_analog_wrong_vgnd",
)

Expand All @@ -343,7 +343,7 @@ def test_pin_analog_overlapping_vgnd(gds_lef_analog_overlapping_vgnd: tuple[str,
precheck.pin_check(
gds_file,
lef_file,
"../def/analog/tt_block_1x2_pg_ana.def",
"../def/analog/tt_analog_1x2.def",
"TEST_analog_overlapping_vgnd",
)

Expand All @@ -353,6 +353,6 @@ def test_pin_analog_compound_vgnd(gds_lef_analog_compound_vgnd: tuple[str, str])
precheck.pin_check(
gds_file,
lef_file,
"../def/analog/tt_block_1x2_pg_ana.def",
"../def/analog/tt_analog_1x2.def",
"TEST_analog_compound_vgnd",
)

0 comments on commit 674fdc7

Please sign in to comment.