mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-31 00:13:18 +00:00
fmt: %t/$time support
This commit is contained in:
parent
52dc397a50
commit
c382d7d3ac
7 changed files with 133 additions and 26 deletions
|
@ -748,6 +748,11 @@ struct AST_INTERNAL::ProcessGenerator
|
|||
// and in case this will be used as an argument...
|
||||
arg.sig = node->bitsAsConst();
|
||||
arg.signed_ = false;
|
||||
} else if (node->type == AST_IDENTIFIER && node->str == "$time") {
|
||||
arg.type = VerilogFmtArg::TIME;
|
||||
} else if (node->type == AST_IDENTIFIER && node->str == "$realtime") {
|
||||
arg.type = VerilogFmtArg::TIME;
|
||||
arg.realtime = true;
|
||||
} else {
|
||||
arg.type = VerilogFmtArg::INTEGER;
|
||||
arg.sig = node->genRTLIL();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue