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 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 Not() { StdLogicVector result = new StdLogicVector(this.Count); for (int i = 0; i < this.Count; i++) { result[i] = StdLogicNot(this[i]); } return result; }