mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-24 01:25:33 +00:00
fmt: %t/$time support
This commit is contained in:
parent
52dc397a50
commit
c382d7d3ac
7 changed files with 133 additions and 26 deletions
|
@ -1330,7 +1330,10 @@ struct module {
|
|||
virtual bool eval() = 0;
|
||||
virtual bool commit() = 0;
|
||||
|
||||
unsigned int steps = 0;
|
||||
|
||||
size_t step() {
|
||||
++steps;
|
||||
size_t deltas = 0;
|
||||
bool converged = false;
|
||||
do {
|
||||
|
|
|
@ -1797,6 +1797,12 @@ bool dump_cell_expr(std::ostream &f, std::string indent, RTLIL::Cell *cell)
|
|||
dump_sigspec(f, arg.sig);
|
||||
f << ")";
|
||||
break;
|
||||
case VerilogFmtArg::TIME:
|
||||
if (arg.realtime)
|
||||
f << "$realtime";
|
||||
else
|
||||
f << "$time";
|
||||
break;
|
||||
default: log_abort();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue