diff options
author | Tristan Gingold <tgingold@free.fr> | 2019-12-24 18:00:41 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2019-12-24 18:00:41 +0100 |
commit | e0a1519e89fbc896517ced756719679e223c5401 (patch) | |
tree | aa4e1b17688ba8de9ed3669eca7b58e06c33e334 /src | |
parent | 6ffcbcbcf7c34ab6d1f71a73173b0af271892901 (diff) | |
download | ghdl-e0a1519e89fbc896517ced756719679e223c5401.tar.gz ghdl-e0a1519e89fbc896517ced756719679e223c5401.tar.bz2 ghdl-e0a1519e89fbc896517ced756719679e223c5401.zip |
synth: handle is_x (as false). Fix #1054
Diffstat (limited to 'src')
-rw-r--r-- | src/synth/synth-oper.adb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/synth/synth-oper.adb b/src/synth/synth-oper.adb index dd02da330..b5480a2b9 100644 --- a/src/synth/synth-oper.adb +++ b/src/synth/synth-oper.adb @@ -995,6 +995,10 @@ package body Synth.Oper is Edge := Build_Edge (Build_Context, Clk); return Create_Value_Net (Edge, Boolean_Type); end; + when Iir_Predefined_Ieee_1164_Scalar_Is_X + | Iir_Predefined_Ieee_1164_Vector_Is_X => + -- Always false. + return Create_Value_Discrete (0, Boolean_Type); when Iir_Predefined_Ieee_1164_To_Bitvector => declare L : constant Value_Acc := Get_Value (Subprg_Inst, Param1); |