diff options
author | Tristan Gingold <tgingold@free.fr> | 2022-12-26 10:24:12 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2022-12-26 10:25:21 +0100 |
commit | 9dfc223c388915dd7bff3329b521b98d1ba081f5 (patch) | |
tree | 0d369722ace641d4b7171f7a967d0a32fd470584 /src/synth | |
parent | 1be382f13fe7d6b94dffec14922012fd463d4d04 (diff) | |
download | ghdl-9dfc223c388915dd7bff3329b521b98d1ba081f5.tar.gz ghdl-9dfc223c388915dd7bff3329b521b98d1ba081f5.tar.bz2 ghdl-9dfc223c388915dd7bff3329b521b98d1ba081f5.zip |
synth: add support for to_x01z. Fix #2285
Diffstat (limited to 'src/synth')
-rw-r--r-- | src/synth/synth-vhdl_oper.adb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/synth/synth-vhdl_oper.adb b/src/synth/synth-vhdl_oper.adb index b46a8ec57..1813d894c 100644 --- a/src/synth/synth-vhdl_oper.adb +++ b/src/synth/synth-vhdl_oper.adb @@ -1985,7 +1985,8 @@ package body Synth.Vhdl_Oper is | Iir_Predefined_Ieee_Numeric_Std_To_01_Uns | Iir_Predefined_Ieee_Numeric_Std_To_01_Sgn | Iir_Predefined_Ieee_1164_To_X01_Slv - | Iir_Predefined_Ieee_1164_To_UX01_Slv => + | Iir_Predefined_Ieee_1164_To_UX01_Slv + | Iir_Predefined_Ieee_1164_To_X01Z_Slv => if Is_Static (L.Val) then raise Internal_Error; end if; @@ -1994,6 +1995,7 @@ package body Synth.Vhdl_Oper is when Iir_Predefined_Ieee_1164_To_Bit | Iir_Predefined_Ieee_1164_To_X01_Log | Iir_Predefined_Ieee_1164_To_UX01_Log + | Iir_Predefined_Ieee_1164_To_X01Z_Log | Iir_Predefined_Ieee_1164_To_Stdulogic => -- A no-op. return Create_Value_Net (Get_Net (Ctxt, L), Res_Typ); |