{
const std::vector<std::string> g_units = { "s", "ms", "us", "ns", "ps", "fs", "as", "zs" };
ctx = (fstReaderContext *)fstReaderOpen(filename.c_str());
+ if (!ctx)
+ log_error("Error opening '%s'\n", filename.c_str());
int scale = (int)fstReaderGetTimescale(ctx);
timescale = pow(10.0, scale);
timescale_str = "";
log_assert(top == nullptr);
fst = new FstData(sim_filename);
+ if (scope.empty())
+ log_error("Scope must be defined for co-simulation.\n");
+
top = new SimInstance(this, scope, topmod);
std::vector<fstHandle> fst_clock;