rtec

package
v0.0.0-...-50a3762 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CECCTransition

type CECCTransition struct {
	IfCond    string
	AssEvents []string
}

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

func (c *Converter) AddFunction(functionbytes []byte) error

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

type OutputFile struct {
	Name      string
	Extension string
	Contents  []byte
}

OutputFile is used when returning the converted data from the iec61499

type Recover

type Recover struct {
	Signal string `xml:"Signal"`
	Value  string `xml:"Value"`
}

type Row

type Row struct {
	// XMLName			xml.Name	`xml:"Row"`
	Recovery    string    `xml:"Recovery"`
	RecoveryKey string    `xml:"RecoveryKey"`
	Recovers    []Recover `xml:"Recover"`
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL