diff options
Diffstat (limited to 'src/synth/synth-context.adb')
-rw-r--r-- | src/synth/synth-context.adb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/synth/synth-context.adb b/src/synth/synth-context.adb index 135b40d7c..d26562481 100644 --- a/src/synth/synth-context.adb +++ b/src/synth/synth-context.adb @@ -135,6 +135,14 @@ package body Synth.Context is return Get_Current_Value (Val.W); when Value_Net => return Val.N; + when Value_Mux2 => + declare + Cond : constant Net := Get_Net (Val.M_Cond); + begin + return Build_Mux2 (Ctxt => Build_Context, Sel => Cond, + I0 => Get_Net (Val.M_F), + I1 => Get_Net (Val.M_T)); + end; when Value_Lit => case Val.Lit.Kind is when Iir_Value_B1 => |