Copy magic config for filter code

This commit is contained in:
mrg 2020-06-19 13:40:45 -07:00
parent 5872f553e1
commit a2d160dbf5
1 changed files with 8 additions and 0 deletions

View File

@ -37,6 +37,14 @@ def filter_gds(cell_name, input_gds, output_gds):
""" Run the gds through magic for any layer processing """ """ Run the gds through magic for any layer processing """
global OPTS global OPTS
# Copy .magicrc file into temp dir
magic_file = OPTS.openram_tech + "mag_lib/.magicrc"
if os.path.exists(magic_file):
shutil.copy(magic_file, OPTS.openram_temp)
else:
debug.warning("Could not locate .magicrc file: {}".format(magic_file))
run_file = OPTS.openram_temp + "run_filter.sh" run_file = OPTS.openram_temp + "run_filter.sh"
f = open(run_file, "w") f = open(run_file, "w")
f.write("#!/bin/sh\n") f.write("#!/bin/sh\n")