Loading files
7f9864208This file is pinned to the selected release. Download the original to open it in your design tool.
using System.Diagnostics;
namespace Hast.VhdlBuilder.Representation.Declaration;
public enum PortMode
{
In,
Out,
Buffer,
InOut,
}
[DebuggerDisplay("{ToVhdl(Hast.VhdlBuilder.Representation.VhdlGenerationOptions.Debug)}")]
public class Port : TypedDataObjectBase
{
public PortMode Mode { get; set; }
public Port() => DataObjectKind = DataObjectKind.Signal;
public override string ToVhdl(IVhdlGenerationOptions vhdlGenerationOptions) =>
vhdlGenerationOptions.ShortenName(Name) +
": " +
Mode +
" " +
DataType.ToVhdl(vhdlGenerationOptions);
}