3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-23 09:05:32 +00:00

gzip: simplify uncompressed interface

This commit is contained in:
Emil J. Tywoniak 2025-01-03 18:40:40 +01:00
parent 218ec3fc05
commit d00259081d
4 changed files with 18 additions and 23 deletions

View file

@ -631,14 +631,12 @@ struct DfflibmapPass : public Pass {
LibertyMergedCells merged;
for (auto path : liberty_files) {
std::ifstream f;
f.open(path.c_str());
std::istream* ff = uncompressed(&f, path);
if (ff->fail())
std::istream& f = uncompressed(path);
if (f.fail())
log_cmd_error("Can't open liberty file `%s': %s\n", path.c_str(), strerror(errno));
LibertyParser p(*ff);
LibertyParser p(f);
merged.merge(p);
delete ff;
delete &f;
}
find_cell(merged.cells, ID($_DFF_N_), false, false, false, false, false, false, dont_use_cells);