Inheritance: IEnumerable, ICloneable
Exemple #1
0
        public StdLogicVector Xor(StdLogicVector value)
        {
            if (value == null)
            {
                throw new ArgumentNullException("value is null.");
            }
            if (value.Count != this.Count)
            {
                throw new ArgumentException("value and the current System.Collections.BitArray do not have the same number of elements.");
            }

            StdLogicVector result = new StdLogicVector(value.Count);

            for (int i = 0; i < value.Count; i++)
            {
                result[i] = StdLogicXor(this[i], value[i]);
            }
            return(result);
        }
Exemple #2
0
 public StdLogicVector(StdLogicVector vector)
 {
     this.vector = new StdLogic[vector.Count];
     Array.Copy(vector.vector, this.vector, this.vector.Length);
 }
        public StdLogicVector Xor(StdLogicVector value)
        {
            if (value == null)
            {
                throw new ArgumentNullException("value is null.");
            }
            if (value.Count != this.Count)
            {
                throw new ArgumentException("value and the current System.Collections.BitArray do not have the same number of elements.");
            }

            StdLogicVector result = new StdLogicVector(value.Count);
            for (int i = 0; i < value.Count; i++)
            {
                result[i] = StdLogicXor(this[i], value[i]);
            }
            return result;
        }
 public StdLogicVector(StdLogicVector vector)
 {
     this.vector = new StdLogic[vector.Count];
     Array.Copy(vector.vector, this.vector, this.vector.Length);
 }
 public StdLogicVector Not()
 {
     StdLogicVector result = new StdLogicVector(this.Count);
     for (int i = 0; i < this.Count; i++)
     {
         result[i] = StdLogicNot(this[i]);
     }
     return result;
 }