Adding per tool parameter for a cache directory
Used in some tools but underutilzied. For shared cloud infrastructure, this is a must have feature
@@ -1060,6 +1060,23 @@ def schema_eda(cfg):
"cli: -tool_np 'drc 64' ",
"api: chip.set('tool','drc','np','64') "]
+ #cache
+ cfg['tool'][stage]['cache'] = {}
+ cfg['tool'][stage]['cache']['switch'] = '-tool_cache'
+ cfg['tool'][stage]['cache']['switch_args'] = '<>'
+ cfg['tool'][stage]['cache']['type'] = ['file']
+ cfg['tool'][stage]['cache']['requirement'] = ['optional']
+ cfg['tool'][stage]['cache']['defvalue'] = []
+ cfg['tool'][stage]['cache']['short_help'] = 'Cache Directory Name'
+ cfg['tool'][stage]['cache']['help'] = [
+ "Specifies a writeable shared cache directory to be used ",
+ "for storage of processed design and library data. The ",
+ "purpose of caching is to save runtime and disk space ",
+ "in future runs. ",
+ " ",
+ "Examples: ",
+ "cli: -tool_cache 'syn ./disk1/edacache' ",
+ "api: chip.set('tool','syn','cache','./disk1/edacache') "]
#keymap
cfg['tool'][stage]['keymap'] = {}
@@ -1214,6 +1231,8 @@ def schema_options(cfg):
"api: chip.set('build','./build_the_future') "]
}
+
+
cfg['start'] = {
'switch' : '-start',
'switch_args' : '<stage>',
