mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 06:03:23 +00:00
fmt: %t/$time support
This commit is contained in:
parent
52dc397a50
commit
c382d7d3ac
7 changed files with 133 additions and 26 deletions
|
@ -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