예제 #1
0
        public VHDLIntegerValue Rem(VHDLIntegerValue value)
        {
            long rem = 0;
            long div = Math.DivRem(mValue, value.mValue, out rem);

            return(new VHDLIntegerValue(rem));
        }
예제 #2
0
 public override int CompareTo(VHDLScalarValue obj)
 {
     if (obj is VHDLIntegerValue)
     {
         VHDLIntegerValue els = obj as VHDLIntegerValue;
         return(mValue.CompareTo(els.mValue));
     }
     throw new ArgumentException("Could not cast {0} to VHDLIntegerValue", obj.GetType().Name);
 }
예제 #3
0
 public VHDLIntegerValue Multiply(VHDLIntegerValue value)
 {
     return(new VHDLIntegerValue(mValue * value.mValue));
 }
예제 #4
0
 public VHDLIntegerValue Divide(VHDLIntegerValue value)
 {
     return(new VHDLIntegerValue(mValue / value.mValue));
 }
예제 #5
0
 VHDLIntegerValue IVHDLArithmetic <VHDLIntegerValue> .Exp(VHDLIntegerValue value)
 {
     return(new VHDLIntegerValue((Int64)Math.Pow(mValue, value.mValue)));
 }
예제 #6
0
 public Int64 Exp(VHDLIntegerValue value)
 {
     return((Int64)Math.Pow(mValue, value.mValue));
 }
예제 #7
0
 public bool Equals(VHDLIntegerValue value)
 {
     return(mValue == value.mValue);
 }
예제 #8
0
 public VHDLPhysicalValue <T> Divide(VHDLIntegerValue value)
 {
     return(new VHDLPhysicalValue <T>(physicalType, mValue / value.Value));
 }
예제 #9
0
 public bool GreaterThan(VHDLIntegerValue value)
 {
     return(mValue > value.mValue);
 }
예제 #10
0
 public bool LessEquals(VHDLIntegerValue value)
 {
     return(mValue <= value.mValue);
 }
예제 #11
0
 public bool LessThan(VHDLIntegerValue value)
 {
     return(mValue < value.mValue);
 }
 VHDLFloatingPointValue IVHDLArithmetic <VHDLFloatingPointValue> .Exp(VHDLIntegerValue value)
 {
     return(new VHDLFloatingPointValue(Math.Pow(mValue, value.Value)));
 }
 public double Exp(VHDLIntegerValue value)
 {
     return(Math.Pow(mValue, value.Value));
 }
예제 #14
0
 public VHDLIntegerValue Plus(VHDLIntegerValue value)
 {
     return(new VHDLIntegerValue(mValue + value.mValue));
 }
예제 #15
0
 public bool GreaterEquals(VHDLIntegerValue value)
 {
     return(mValue >= value.mValue);
 }
예제 #16
0
 public VHDLIntegerValue Minus(VHDLIntegerValue value)
 {
     return(new VHDLIntegerValue(mValue - value.mValue));
 }
예제 #17
0
 public bool NotEquals(VHDLIntegerValue value)
 {
     return(mValue != value.mValue);
 }
예제 #18
0
 public VHDLIntegerValue Mod(VHDLIntegerValue value)
 {
     return(new VHDLIntegerValue(mValue % value.mValue));
 }
예제 #19
0
 public VHDLPhysicalValue <T> Multiply(VHDLIntegerValue value)
 {
     return(new VHDLPhysicalValue <T>(physicalType, mValue * value.Value));
 }