Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
a4519e7a0This 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(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);
}