mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 09:05:32 +00:00
Error detection for co-simulation
This commit is contained in:
parent
6db23de7b1
commit
c0a156bcb4
2 changed files with 5 additions and 0 deletions
|
@ -26,6 +26,8 @@ FstData::FstData(std::string filename) : ctx(nullptr)
|
|||
{
|
||||
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 = "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue