diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-04-11 07:55:43 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-04-11 07:55:43 +0200 |
commit | 06ee1499b50458cd23118b99b3727f8a08d847bd (patch) | |
tree | a907228fe0adafa7213f222fbbee96209e02c6f1 /src/vhdl/vhdl-ieee-std_logic_arith.adb | |
parent | ba140c09d7b9f21cbccdd29e1fdda67e110a38f0 (diff) | |
download | ghdl-06ee1499b50458cd23118b99b3727f8a08d847bd.tar.gz ghdl-06ee1499b50458cd23118b99b3727f8a08d847bd.tar.bz2 ghdl-06ee1499b50458cd23118b99b3727f8a08d847bd.zip |
vhdl: recognize ext/sxt from std_logic_arith.
Diffstat (limited to 'src/vhdl/vhdl-ieee-std_logic_arith.adb')
-rw-r--r-- | src/vhdl/vhdl-ieee-std_logic_arith.adb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/vhdl/vhdl-ieee-std_logic_arith.adb b/src/vhdl/vhdl-ieee-std_logic_arith.adb index 4c2b517ec..c1d7caccf 100644 --- a/src/vhdl/vhdl-ieee-std_logic_arith.adb +++ b/src/vhdl/vhdl-ieee-std_logic_arith.adb @@ -397,6 +397,16 @@ package body Vhdl.Ieee.Std_Logic_Arith is Def := Handle_Cmp (Eq_Patterns); when Name_Op_Inequality => Def := Handle_Cmp (Ne_Patterns); + when Name_Ext => + if Arg1_Kind /= Type_Slv or Arg2_Kind /= Type_Int then + raise Error; + end if; + Def := Iir_Predefined_Ieee_Std_Logic_Arith_Ext; + when Name_Sxt => + if Arg1_Kind /= Type_Slv or Arg2_Kind /= Type_Int then + raise Error; + end if; + Def := Iir_Predefined_Ieee_Std_Logic_Arith_Sxt; when others => null; end case; |