aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/fstdata.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fstdata.cc')
-rw-r--r--kernel/fstdata.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/fstdata.cc b/kernel/fstdata.cc
index e497ff7ad..466b8f19f 100644
--- a/kernel/fstdata.cc
+++ b/kernel/fstdata.cc
@@ -24,6 +24,7 @@ USING_YOSYS_NAMESPACE
FstData::FstData(std::string filename) : ctx(nullptr)
{
ctx = (fstReaderContext *)fstReaderOpen(filename.c_str());
+ timescale = pow(10.0, (int)fstReaderGetTimescale(ctx));
extractVarNames();
}