aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/synth-static_oper.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-09-20 08:43:25 +0200
committerTristan Gingold <tgingold@free.fr>2020-09-20 08:43:25 +0200
commit76a3614439971b635828b004c6041f3ffbceb83d (patch)
tree6c91b39b04cf046b0c9ef91e6a5f58b3b32e359a /src/synth/synth-static_oper.adb
parent1337962c251723acaf021a8df2efbc261804f88a (diff)
downloadghdl-76a3614439971b635828b004c6041f3ffbceb83d.tar.gz
ghdl-76a3614439971b635828b004c6041f3ffbceb83d.tar.bz2
ghdl-76a3614439971b635828b004c6041f3ffbceb83d.zip
synth: handle static resize. For #1460
Diffstat (limited to 'src/synth/synth-static_oper.adb')
-rw-r--r--src/synth/synth-static_oper.adb3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/synth/synth-static_oper.adb b/src/synth/synth-static_oper.adb
index 7fa3a86fc..2da770ba1 100644
--- a/src/synth/synth-static_oper.adb
+++ b/src/synth/synth-static_oper.adb
@@ -858,6 +858,9 @@ package body Synth.Static_Oper is
return Shift_Vec
(Get_Memtyp (Param1), Uns32 (Read_Discrete (Param2)),
True, True);
+ when Iir_Predefined_Ieee_Numeric_Std_Resize_Sgn_Nat =>
+ return Resize_Vec
+ (Get_Memtyp (Param1), Uns32 (Read_Discrete (Param2)), True);
when Iir_Predefined_Ieee_1164_To_Stdlogicvector_Bv =>
declare