3
0
Fork 0
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:
Catherine 2024-03-28 08:55:26 +00:00 committed by Marcelina Kościelnicka
parent 7b94599162
commit 00c5b60dfd
3 changed files with 42 additions and 5 deletions

View file

@ -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;