Check that we are not using Magic for FreePDK45.

This commit is contained in:
Matt Guthaus 2018-01-12 14:50:35 -08:00
parent 243097cb33
commit 7c50708158
1 changed files with 11 additions and 9 deletions

View File

@ -24,25 +24,27 @@ else:
OPTS.lvs_exe = get_tool("LVS",["calibre","assura","netgen"]) OPTS.lvs_exe = get_tool("LVS",["calibre","assura","netgen"])
OPTS.pex_exe = get_tool("PEX",["calibre","magic"]) OPTS.pex_exe = get_tool("PEX",["calibre","magic"])
if OPTS.tech_name == "freepdk45":
debug.check(OPTS.drc_exe[0]!="magic","Magic does not support FreePDK45 for DRC.")
if OPTS.drc_exe == None: if OPTS.drc_exe == None:
pass pass
elif "calibre" in OPTS.drc_exe: elif "calibre"==OPTS.drc_exe[0]:
from calibre import run_drc from calibre import run_drc
elif "assura" in OPTS.drc_exe: elif "assura"==OPTS.drc_exe[0]:
from assura import run_drc from assura import run_drc
elif "magic" in OPTS.drc_exe: elif "magic"==OPTS.drc_exe[0]:
from magic import run_drc from magic import run_drc
else: else:
debug.warning("Did not find a supported DRC tool.") debug.warning("Did not find a supported DRC tool.")
if OPTS.lvs_exe == None: if OPTS.lvs_exe == None:
pass pass
elif "calibre" in OPTS.lvs_exe: elif "calibre"==OPTS.lvs_exe[0]:
from calibre import run_lvs from calibre import run_lvs
elif "assura" in OPTS.lvs_exe: elif "assura"==OPTS.lvs_exe[0]:
from assura import run_lvs from assura import run_lvs
elif "netgen" in OPTS.lvs_exe: elif "netgen"==OPTS.lvs_exe[0]:
from magic import run_lvs from magic import run_lvs
else: else:
debug.warning("Did not find a supported LVS tool.") debug.warning("Did not find a supported LVS tool.")
@ -50,9 +52,9 @@ else:
if OPTS.pex_exe == None: if OPTS.pex_exe == None:
pass pass
elif "calibre" in OPTS.pex_exe: elif "calibre"==OPTS.pex_exe[0]:
from calibre import run_pex from calibre import run_pex
elif "magic" in OPTS.pex_exe: elif "magic"==OPTS.pex_exe[0]:
from magic import run_pex from magic import run_pex
else: else:
debug.warning("Did not find a supported PEX tool.") debug.warning("Did not find a supported PEX tool.")