mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-08-22 14:17:27 +02:00
Liberty file caching with new libcache command
This adds optional in-memory caching of parsed liberty files to speed up flows that repeatedly parse the same liberty files. To avoid increasing the memory overhead by default, the caching is disabled by default. The caching can be controlled globally or on a per path basis using the new `libcache` command, which also allows purging cached data.
This commit is contained in:
+1
-1
@@ -352,7 +352,7 @@ void read_liberty_cellarea(dict<IdString, cell_area_t> &cell_area, string libert
|
||||
yosys_input_files.insert(liberty_file);
|
||||
if (f->fail())
|
||||
log_cmd_error("Can't open liberty file `%s': %s\n", liberty_file.c_str(), strerror(errno));
|
||||
LibertyParser libparser(*f);
|
||||
LibertyParser libparser(*f, liberty_file);
|
||||
delete f;
|
||||
|
||||
for (auto cell : libparser.ast->children)
|
||||
|
||||
Reference in New Issue
Block a user