Signed-off-by: James Cherry <[email protected]>
This commit is contained in:
James Cherry
2024-11-20 13:11:10 -08:00
parent 7def9a256e
commit 3c461f2d35
3 changed files with 11 additions and 0 deletions
+3
View File
@@ -17,6 +17,7 @@
#include "SpefReader.hh"
#include "Zlib.hh"
#include "Stats.hh"
#include "Report.hh"
#include "Debug.hh"
#include "StringUtil.hh"
@@ -64,6 +65,7 @@ readSpefFile(const char *filename,
// Use zlib to uncompress gzip'd files automagically.
gzFile stream = gzopen(filename, "rb");
if (stream) {
Stats stats(sta->debug(), sta->report());
SpefReader reader(filename, stream, instance, ap,
pin_cap_included, keep_coupling_caps, coupling_cap_factor,
reduce, corner, min_max, sta);
@@ -73,6 +75,7 @@ readSpefFile(const char *filename,
success = (::SpefParse_parse() == 0);
gzclose(stream);
spef_reader = nullptr;
stats.report("Read spef");
}
else
throw FileNotReadable(filename);