Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
4d764e615This file is pinned to the selected release. Download the original to open it in your design tool.
using System;
using System.Diagnostics;
namespace Hast.VhdlBuilder.Representation.Declaration;
/// <summary>
/// Instantiation of an unconstrained VHDL array.
/// </summary>
[DebuggerDisplay("{ToVhdl(VhdlGenerationOptions.Debug)}")]
public class UnconstrainedArrayInstantiation : ArrayTypeBase
{
public int RangeFrom { get; set; }
public int RangeTo { get; set; }
public override DataType ToReference() => this;
public override string ToVhdl(IVhdlGenerationOptions vhdlGenerationOptions) =>
FormattableString.Invariant($"{vhdlGenerationOptions.NameShortener(Name)}({RangeFrom} to {RangeTo})");
}