Add comment for future self

This commit is contained in:
Miodrag Milanovic 2022-09-28 14:45:39 +02:00
parent f54ac8a6d6
commit b45517f7b7
1 changed files with 7 additions and 0 deletions

View File

@ -198,6 +198,13 @@ static bool isNumber(const string& str)
return true;
}
// When used as attributes or parameter values Verific constants come already processed.
// - Real string values are already under quotes
// - Numeric values with specified width are always converted to binary
// - Rest of user defined values are handled as 32bit integers
// - There could be some internal values that are strings without quotes
// so we check if value is all digits or not
//
static const RTLIL::Const verific_const(const char *value)
{
std::string val = std::string(value);