Inheritance: IEnumerable, ICloneable
Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 public StdLogicVector(StdLogicVector vector)
 {
     this.vector = new StdLogic[vector.Count];
     Array.Copy(vector.vector, this.vector, this.vector.Length);
 }
Ejemplo n.º 3
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;
        }
Ejemplo n.º 4
0
 public StdLogicVector(StdLogicVector vector)
 {
     this.vector = new StdLogic[vector.Count];
     Array.Copy(vector.vector, this.vector, this.vector.Length);
 }
Ejemplo n.º 5
0
 public StdLogicVector Not()
 {
     StdLogicVector result = new StdLogicVector(this.Count);
     for (int i = 0; i < this.Count; i++)
     {
         result[i] = StdLogicNot(this[i]);
     }
     return result;
 }