aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/synth-static_oper.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-08-06 20:38:02 +0200
committerTristan Gingold <tgingold@free.fr>2020-08-06 21:46:15 +0200
commit57914f14e2c3c75551b8d5e0a5db2336d854ffd5 (patch)
tree89fade0b812f2dcc7be22e4a1b2138b1eed34ea3 /src/synth/synth-static_oper.adb
parent0c44c7def40d82a1e10ede897d44bfdd3b3537c8 (diff)
downloadghdl-57914f14e2c3c75551b8d5e0a5db2336d854ffd5.tar.gz
ghdl-57914f14e2c3c75551b8d5e0a5db2336d854ffd5.tar.bz2
ghdl-57914f14e2c3c75551b8d5e0a5db2336d854ffd5.zip
synth-oper: handle more operations for std_logic_arith. For #1426
Diffstat (limited to 'src/synth/synth-static_oper.adb')
-rw-r--r--src/synth/synth-static_oper.adb2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/synth/synth-static_oper.adb b/src/synth/synth-static_oper.adb
index 282d316cf..2b24d5ec0 100644
--- a/src/synth/synth-static_oper.adb
+++ b/src/synth/synth-static_oper.adb
@@ -842,6 +842,8 @@ package body Synth.Static_Oper is
-- SIGNED to Integer
return Create_Memory_Discrete
(Eval_Signed_To_Integer (Get_Memtyp (Param1), Expr), Res_Typ);
+ when Iir_Predefined_Ieee_Std_Logic_Arith_Conv_Integer_Int =>
+ return Get_Memtyp (Param1);
when Iir_Predefined_Ieee_Numeric_Std_Shf_Left_Uns_Nat
| Iir_Predefined_Ieee_Numeric_Std_Shf_Left_Sgn_Nat =>