Beispiel #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            VHDLPortDirection inout = VHDLPortDirection.In;

            if (rbOut.Checked)
            {
                inout = VHDLPortDirection.Out;
            }
            if (rbInOut.Checked)
            {
                inout = VHDLPortDirection.InOut;
            }
            if (rbBuffer.Checked)
            {
                inout = VHDLPortDirection.Buffer;
            }

            VHDL_Port newPort = new VHDL_Port("", "STD_LOGIC", inout);

            tbPortName.Enabled = true;
            rbIn.Enabled       = true;
            rbOut.Enabled      = true;
            rbInOut.Enabled    = true;
            rbBuffer.Enabled   = true;
            cbPortType.Enabled = true;

            PortList.Add(newPort);
            lbPortList.Items.Add(newPort.Name);
            lbPortList.SelectedIndex = PortList.Count - 1;
            pictureBoxPreview.Invalidate();
            tbPortName.Text = string.Empty;
            tbPortName.Focus();
        }
Beispiel #2
0
 public VHDL_Port(string Name, string Type, VHDLPortDirection Direction, int LeftIndex, int RightIndex)
 {
     this.Name       = Name;
     this.Type       = Type;
     this.Direction  = Direction;
     this.LeftIndex  = LeftIndex;
     this.RightIndex = RightIndex;
 }
Beispiel #3
0
 public VHDL_Port(string Name, string Type, VHDLPortDirection Direction)
 {
     this.Name      = Name;
     this.Type      = Type;
     this.Direction = Direction;
 }