def setup_export_schematic(self, lib_name, cell_name, out_file, view_name='schematic', params=None):
# type: (str, str, str, str, Optional[Dict[str, Any]]) -> ProcInfo
out_file = os.path.abspath(out_file)
run_dir = os.path.dirname(out_file)
out_name = os.path.basename(out_file)
log_file = os.path.join(run_dir, 'schematic_export.log')
# fill in stream out configuration file.
content = Template(sch_template).render(lib_name=lib_name,
cell_name=cell_name,
view_name=view_name,
output_name=out_name,
source_added_file=self._source_added_file,
run_dir=run_dir,
)
# create configuration file.
config_fname = os.path.join(run_dir, 'si.env')
write_file(config_fname, content)
# run command
cmd = ['si', run_dir, '-batch', '-command', 'netlist']
return cmd, log_file, None, os.environ['BAG_WORK_DIR']
评论列表
文章目录