public ValueProvider(Type type, VHDLBaseValue value_ = null, string name = "", VHDLDirection direction = VHDLDirection.InOut) { this.type = type; this.value_ = value_; this.name = name; this.direction = direction; }
public Signal(Type type, VHDLBaseValue value_ = null, string name = "", VHDLDirection direction = VHDLDirection.InOut) : base(type, value_, name, direction) { dump = new NewSortedDictionary <TimeStampInfo <VHDLBaseValue> >(); if (value_ != null) { dump.Append(0, new TimeStampInfo <VHDLBaseValue>(value_)); } }
/// <summary> /// Преобразование AbstractValue в строку /// </summary> /// <param name="value"></param> /// <returns></returns> public static string ToVCDString(VHDLBaseValue value, string identifier) { if (value is VHDLRuntime.Values.BuiltIn.BIT) { return(ToVCDString(value as VHDLRuntime.Values.BuiltIn.BIT, identifier)); } if (value is VHDLIntegerValue) { return(ToVCDString(value as VHDLIntegerValue, identifier)); } if (value is VHDLFloatingPointValue) { return(ToVCDString(value as VHDLFloatingPointValue, identifier)); } return(string.Empty); }
public virtual void Assign(VHDLBaseValue value_) { this.value_ = value_; }
public ValueProvider(VHDLBaseValue value_ = null, string name = "", VHDLDirection direction = VHDLDirection.InOut) : this(defaultVariableType, value_, name, direction) { }
public ScheduledEvent(VHDLBaseValue _value, TIME delay) { this._value = _value; this.delay = (UInt64)delay.Value; }
public ScheduledEvent(VHDLBaseValue _value, UInt64 delay) { this._value = _value; this.delay = delay; }
public void RegisterDutyCycleDelayEvent(Signal signal, VHDLBaseValue value) { signal.RegisterDutyCycleDelayEvent(currentDutyCycle, value); }
//Listof the predefined attributes of the value /// <summary> /// T'IMAGE(X) is a string representation of X that is of type T. /// </summary> /// <param name="X"></param> /// <returns></returns> public virtual string IMAGE(VHDLBaseValue X) { return(X.ToString()); }
public Variable(VHDLBaseValue value_ = null, string name = "", VHDLDirection direction = VHDLDirection.InOut) : base(value_, name, direction) { }
public void RegisterInertialDelayEvent(UInt64 CurrentTime, UInt64 DelayTime, VHDLBaseValue value) { dump.AddInertialEvent(CurrentTime, CurrentTime + DelayTime, new TimeStampInfo <VHDLBaseValue>(value)); }
public void RegisterTransportDelayEvent(UInt64 CurrentTime, UInt64 DelayTime, VHDLBaseValue value) { dump.AddTransportEvent(CurrentTime + DelayTime, new TimeStampInfo <VHDLBaseValue>(value)); }
public void RegisterDutyCycleDelayEvent(int CurrentDutyCycle, VHDLBaseValue value) { dump.LastValue.Info.Add(CurrentDutyCycle + 1, value); }