Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CECCTransition ¶
CECCTransition is used with getCECCTransitionCondition to return results to the template
type Converter ¶
type Converter struct { Funcs []rtedef.EnforcedFunction Language string // contains filtered or unexported fields }
Converter is the struct we use to store all functions for conversion (and what we operate from)
func New ¶
func New(language string, serialComposition bool, parallelComposition bool, synthesis bool) (*Converter, error)
New returns a new instance of a Converter based on the provided language
func (*Converter) AddFunction ¶
AddFunction should be called for each Function in the project
func (*Converter) ConvertAll ¶
func (c *Converter) ConvertAll(serialComposition bool, parallelComposition bool, synthesis bool) ([]OutputFile, error)
ConvertAll converts iec61499 xml (stored as []FB) into vhdl []byte for each block (becomes []VHDLOutput struct) Returns nil error on success
type EnforcedFunction ¶
type EnforcedFunction struct { // Interface string `xml:"Interface"` // Policies []string `xml:"Policy"` LUT SelectLUT `xml:"SelectLUT"` }
type OutputFile ¶
OutputFile is used when returning the converted data from the iec61499
type SelectLUT ¶
type SelectLUT struct { // XMLName xml.Name `xml:"SelectLUT"` Rows []Row `xml:"Row"` }
type TemplateData ¶
type TemplateData struct { FunctionIndex int Functions []rtedef.EnforcedFunction }
TemplateData is the structure used to hold data being passed into the templating engine
type VerilogECCTransition ¶
type VerilogECCTransition CECCTransition
VerilogECCTransition is used with getVerilogECCTransitionCondition to return results to the template
type VhdlECCTransition ¶
type VhdlECCTransition CECCTransition
VhdlECCTransition is used with getVhdlECCTransitionCondition to return results to the template