mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 14:13:23 +00:00
fmt,cxxrtl: add option to group digits in numbers.
The option is serialized to RTLIL as `_` (to match Python's option with the same symbol), and sets the `group` flag. This flag inserts an `_` symbol between each group of 3 digits (for decimal) or four digits (for binary, hex, and octal).
This commit is contained in:
parent
7b94599162
commit
00c5b60dfd
3 changed files with 42 additions and 5 deletions
|
@ -85,6 +85,7 @@ struct FmtPart {
|
|||
} sign = MINUS;
|
||||
bool hex_upper = false;
|
||||
bool show_base = false;
|
||||
bool group = false;
|
||||
|
||||
// VLOG_TIME type
|
||||
bool realtime = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue