mirror of https://github.com/VLSIDA/OpenRAM.git
Change magic to use OPENRAM_MAGICRC if defined.
This commit is contained in:
parent
3abebe4068
commit
191b382171
|
|
@ -71,7 +71,10 @@ def write_drc_script(cell_name, gds_name, extract, final_verification, output_pa
|
||||||
global OPTS
|
global OPTS
|
||||||
|
|
||||||
# Copy .magicrc file into the output directory
|
# Copy .magicrc file into the output directory
|
||||||
magic_file = OPTS.openram_tech + "tech/.magicrc"
|
magic_file = os.environ.get('OPENRAM_MAGICRC', None)
|
||||||
|
if not magic_file:
|
||||||
|
magic_file = OPTS.openram_tech + "tech/.magicrc"
|
||||||
|
|
||||||
if os.path.exists(magic_file):
|
if os.path.exists(magic_file):
|
||||||
shutil.copy(magic_file, output_path)
|
shutil.copy(magic_file, output_path)
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue