3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-05-13 13:45:28 +00:00

Make sure co-simulation only uses integer arithmetic

This commit is contained in:
Scott Ashcroft 2026-04-23 13:55:08 +01:00 committed by stashcroft
parent 7e7336cdb8
commit e69341cd5f
3 changed files with 38 additions and 25 deletions

View file

@ -45,8 +45,7 @@ FstData::FstData(std::string filename) : ctx(nullptr)
ctx = (fstReaderContext *)fstReaderOpen(filename.c_str());
if (!ctx)
log_error("Error opening '%s' as FST file\n", filename);
int scale = (int)fstReaderGetTimescale(ctx);
timescale = pow(10.0, scale);
scale = (int)fstReaderGetTimescale(ctx);
timescale_str = "";
int unit = 0;
int zeros = 0;