Beispiel #1
0
 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;
 }
Beispiel #2
0
 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_));
     }
 }
Beispiel #3
0
 /// <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);
 }
Beispiel #4
0
 public virtual void Assign(VHDLBaseValue value_)
 {
     this.value_ = value_;
 }
Beispiel #5
0
 public ValueProvider(VHDLBaseValue value_ = null, string name = "", VHDLDirection direction = VHDLDirection.InOut)
     : this(defaultVariableType, value_, name, direction)
 {
 }
Beispiel #6
0
 public ScheduledEvent(VHDLBaseValue _value, TIME delay)
 {
     this._value = _value;
     this.delay  = (UInt64)delay.Value;
 }
Beispiel #7
0
 public ScheduledEvent(VHDLBaseValue _value, UInt64 delay)
 {
     this._value = _value;
     this.delay  = delay;
 }
Beispiel #8
0
 public void RegisterDutyCycleDelayEvent(Signal signal, VHDLBaseValue value)
 {
     signal.RegisterDutyCycleDelayEvent(currentDutyCycle, value);
 }
Beispiel #9
0
        //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());
        }
Beispiel #10
0
 public Variable(VHDLBaseValue value_ = null, string name = "", VHDLDirection direction = VHDLDirection.InOut)
     : base(value_, name, direction)
 {
 }
Beispiel #11
0
 public void RegisterInertialDelayEvent(UInt64 CurrentTime, UInt64 DelayTime, VHDLBaseValue value)
 {
     dump.AddInertialEvent(CurrentTime, CurrentTime + DelayTime, new TimeStampInfo <VHDLBaseValue>(value));
 }
Beispiel #12
0
 public void RegisterTransportDelayEvent(UInt64 CurrentTime, UInt64 DelayTime, VHDLBaseValue value)
 {
     dump.AddTransportEvent(CurrentTime + DelayTime, new TimeStampInfo <VHDLBaseValue>(value));
 }
Beispiel #13
0
 public void RegisterDutyCycleDelayEvent(int CurrentDutyCycle, VHDLBaseValue value)
 {
     dump.LastValue.Info.Add(CurrentDutyCycle + 1, value);
 }