/// <summary> /// Returns a port with the same parameters of the signal /// </summary> /// <param name="_dir">The direction of the newly created port</param> /// <returns>A port object with the same width, name, and datatype of the current signal</returns> public virtual Port toPort(Port.portDirection _dir) { return(new Port(_dir, this.name, this.type, this.top, this.bottom)); }
/// <summary> /// Change the direction of the port /// </summary> /// <param name="dir">The new direction of the port</param> public void setDirection(Port.portDirection dir) { this.direction = dir; }