diff options
author | Tristan Gingold <tgingold@free.fr> | 2019-08-20 04:54:29 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2019-08-20 04:54:29 +0200 |
commit | 47b4650272ce425223da826b0de5bb7286036168 (patch) | |
tree | 3778ae11ddea6e8f5bc69909a724f11029e35573 /src/vhdl/vhdl-parse.adb | |
parent | b77eb1a27fa6838c7194a44f8d872005d08e6ac7 (diff) | |
download | ghdl-47b4650272ce425223da826b0de5bb7286036168.tar.gz ghdl-47b4650272ce425223da826b0de5bb7286036168.tar.bz2 ghdl-47b4650272ce425223da826b0de5bb7286036168.zip |
vhdl: handle assume in verification units.
Diffstat (limited to 'src/vhdl/vhdl-parse.adb')
-rw-r--r-- | src/vhdl/vhdl-parse.adb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vhdl/vhdl-parse.adb b/src/vhdl/vhdl-parse.adb index 95c479a57..1983409a5 100644 --- a/src/vhdl/vhdl-parse.adb +++ b/src/vhdl/vhdl-parse.adb @@ -8630,6 +8630,7 @@ package body Vhdl.Parse is Res : Iir; begin Res := Create_Iir (Iir_Kind_Psl_Assume_Directive); + Set_Location (Res); -- Accept PSL tokens Vhdl.Scanner.Flag_Psl := True; @@ -9821,6 +9822,8 @@ package body Vhdl.Parse is case Current_Token is when Tok_Default => Item := Parse_Psl_Default_Clock (True); + when Tok_Assume => + Item := Parse_Psl_Assume_Directive (True); when Tok_Assert => Item := Parse_Psl_Assert_Directive (True); when others => |