using Hast.VhdlBuilder.Representation.Declaration; using System.Collections.Generic; namespace Hast.Transformer.Vhdl.ArchitectureComponents; /// /// The current state of the . /// public interface IMemberStateMachineState { /// /// Gets the block body of the member the state machine represents. /// IBlockElement Body { get; } /// /// Gets or sets the clock cycles required to invoke the member the state machine represents. /// decimal RequiredClockCycles { get; set; } } /// /// A state machine generated from a .NET member. /// public interface IMemberStateMachine : IArchitectureComponent { /// /// Gets the states of the state machine. The state with the index 0 is the start state, the one with the index 1 is /// the final state. /// IReadOnlyList States { get; } /// /// Adds a new state to the state machine. /// /// The state's VHDL element. /// The index of the state. int AddState(IBlockElement state); /// /// Makes note of a new multi-cycle operations. See . /// /// Reference to the result data object of the operation. /// The clock cycles needed to complete the operation, rounded up. void RecordMultiCycleOperation(IDataObject operationResultReference, int requiredClockCyclesCeiling); }