示例#1
0
 /// <summary>
 /// Initializes a signal
 /// </summary>
 /// <param name="_name">The name of the signal</param>
 /// <param name="_type">The datatype of the signal</param>
 /// <param name="_defaultValue">The default value for the signal. If not specified, pass 'null'</param>
 /// <param name="_top">The top integer in the bus width declaration (i.e. the 'X' in (X DOWNTO Y))</param>
 /// <param name="_bottom">The bottom integer in the bus width declaration (i.e. the 'Y' in (X DOWNTO Y))</param>
 public Signal(string _name, Utilities.VHDLDataType _type, string _defaultValue, int _top, int _bottom)
 {
     this.name         = _name;
     this.type         = _type;
     this.defaultValue = _defaultValue;
     this.top          = _top;
     this.bottom       = _bottom;
     return;
 }
示例#2
0
 /// <summary>
 /// The constructor for a port.
 /// </summary>
 /// <param name="_dir">the direction of the port (See portDirection)</param>
 /// <param name="_name">the VHDL name of the port</param>
 /// <param name="_type">the VHDL datatype of the port</param>
 /// <param name="_top">The upper limit for the port (X in X DOWNTO Y)</param>
 /// <param name="_bottom">The lower limit for the port (Y in X DOWNTO Y)</param>
 public Port(portDirection _dir, string _name, Utilities.VHDLDataType _type, int _top, int _bottom)
 {
     this.direction = _dir;
     this.portName  = _name;
     this.type      = _type;
     this.top       = _top;
     this.bottom    = _bottom;
     return;
 }