aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2021-05-22 07:58:04 +0200
committerTristan Gingold <tgingold@free.fr>2021-05-22 07:58:04 +0200
commit8ef3af5bfc135e63ac76315a863e71690f0b0b73 (patch)
treee5c22940b105bbcefe3163ddfa517584083bfbe2
parent6baa2e235e18c7a8e83b5d973e4dbf7ff8ba16d9 (diff)
downloadghdl-8ef3af5bfc135e63ac76315a863e71690f0b0b73.tar.gz
ghdl-8ef3af5bfc135e63ac76315a863e71690f0b0b73.tar.bz2
ghdl-8ef3af5bfc135e63ac76315a863e71690f0b0b73.zip
vhdl-evaluation: add a comment
-rw-r--r--src/vhdl/vhdl-evaluation.adb7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/vhdl/vhdl-evaluation.adb b/src/vhdl/vhdl-evaluation.adb
index babd3fef6..0486b8808 100644
--- a/src/vhdl/vhdl-evaluation.adb
+++ b/src/vhdl/vhdl-evaluation.adb
@@ -345,6 +345,13 @@ package body Vhdl.Evaluation is
Set_Right_Limit (A_Range, Right);
end Set_Right_Limit_By_Length;
+ -- LRM08 9.3.2 Literals
+ -- If there is a value to the left of the nominal leftmost bound (given by
+ -- the 'LEFTOF) attribute, then the leftmost bound is the nominal leftmost
+ -- bound, and the rightmost bound is the value to the left of the nominal
+ -- leftmost bound. Otherwise, the leftmost bound is the value to the
+ -- right of the nominal leftmost bound, and the rightmost bound is the
+ -- nominal leftmost bound.
procedure Set_Enumeration_Null_Range_Limits (A_Range : Iir)
is
A_Type : constant Iir := Get_Type (A_Range);