예제 #1
0
        /// <summary>
        /// Creates the input operand.
        /// </summary>
        /// <remarks>Must always first create components with lower values,
        /// to ensure correct input layout.</remarks>
        /// <param name="fmt">The format.</param>
        /// <param name="component">The component.</param>
        /// <returns>The operand.</returns>
        public Operand CreateInput(PinFormat fmt, PinComponent component)
        {
            Operand op = new Operand(fmt, GenerateNextUniqueName());

            compiler.RegisterInput(op.Name, fmt, component);
            return(op);
        }