3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-19 04:13:39 +00:00

Display simulation time data

This commit is contained in:
Miodrag Milanovic 2022-01-31 10:52:47 +01:00
parent a6959d30df
commit 543feb75cb
3 changed files with 27 additions and 2 deletions

View file

@ -55,6 +55,7 @@ class FstData
std::string valueAt(fstHandle signal, uint64_t time);
fstHandle getHandle(std::string name);
double getTimescale() { return timescale; }
const char *getTimescaleString() { return timescale_str.c_str(); }
private:
void extractVarNames();
@ -69,6 +70,7 @@ private:
std::vector<uint64_t> sample_times;
size_t sample_times_ndx;
double timescale;
std::string timescale_str;
uint64_t start_time;
uint64_t end_time;
std::vector<uint64_t> edges;