rvc

package
v0.0.0-...-2357530 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: MIT Imports: 9 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    []rvdef.Monitor
	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) (*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() ([]OutputFile, error)

ConvertAll converts iec61499 xml (stored as []FB) into vhdl []byte for each block (becomes []VHDLOutput struct) Returns nil error on success

type OutputFile

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

OutputFile is used when returning the converted data from the iec61499

type TemplateData

type TemplateData struct {
	FunctionIndex int
	Functions     []rvdef.Monitor
}

TemplateData is the structure used to hold data being passed into the templating engine

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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