public override void Compute() { if (FirstCompute) { FirstCompute = false; BinaryVarValue binValue = new BinaryVarValue(Value.Width, true); binValue.SetBitsAndExtend(Value.Value, false); Result.Value.UpdateValue(ref binValue); } }
public Output ComputeGetIfChanged() { if (Node != null) { ComputeNode(); } else { ComputeCon(); //Did connection value change? if (!OldValue.SameValue(ref Con.GetValue())) { OldValue.SetBitsAndExtend(ref Con.GetValue(), false); Con.Value.UpdateValueString(); return(Con); } } return(null); }
public void UpdateValue(ref BinaryVarValue update) { Value.SetBitsAndExtend(ref update, IsSigned); }