aboutsummaryrefslogtreecommitdiffstats
path: root/frontends
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2022-09-28 14:45:39 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2022-09-28 14:45:39 +0200
commitb45517f7b755c9d568dee77a2b52301db6e95a78 (patch)
tree0e3ee180b0defa074482ecb3dab43c7b8c044132 /frontends
parentf54ac8a6d641108b3637652921f65d76577881a8 (diff)
downloadyosys-b45517f7b755c9d568dee77a2b52301db6e95a78.tar.gz
yosys-b45517f7b755c9d568dee77a2b52301db6e95a78.tar.bz2
yosys-b45517f7b755c9d568dee77a2b52301db6e95a78.zip
Add comment for future self
Diffstat (limited to 'frontends')
-rw-r--r--frontends/verific/verific.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/frontends/verific/verific.cc b/frontends/verific/verific.cc
index 3b2b47be5..a5c02b0af 100644
--- a/frontends/verific/verific.cc
+++ b/frontends/verific/verific.cc
@@ -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);