Loading files
using System.Diagnostics;
namespace Hast.VhdlBuilder.Representation.Declaration;
[DebuggerDisplay("{ToVhdl(Hast.VhdlBuilder.Representation.VhdlGenerationOptions.Debug)}")]
public class Attribute : DataType
{
public DataType ValueType { get; set; }
public Attribute() => TypeCategory = DataTypeCategory.Identifier;
public override string ToVhdl(IVhdlGenerationOptions vhdlGenerationOptions) =>
Terminated.Terminate(
$"attribute {vhdlGenerationOptions.ShortenName(Name)}: {ValueType.ToReference().ToVhdl(vhdlGenerationOptions)}",
vhdlGenerationOptions);
}
7f9864208This file is pinned to the selected release. Download the original to open it in your design tool.