functionconstructor

Inputs

TypeNameDefaultDescription
StringfileNameBase name of the files written in the simulation folder (.vcd, .txt); empty string = instanceName
StringinstanceNameComponent name (default file name, log messages)
StringchannelNamesNames of the 8 channels, separated by commas; empty names: CH0, CH1...
Integer[8]kindsKind of each channel: Integer(Interfaces.ChannelKind), 1 = Off ... 5 = SyncData
Real[8]baudratesUART channels: speed
Integer[8]dataBitsUART channels: data bits (5-8)
Integer[8]paritiesUART channels: -1 none, 0 even, 1 odd (machine.UART convention)
Integer[8]stopBitsUART channels: 1 or 2
Integer[8]msbFirstUART and synchronous channels: 1 = most significant bit first
Integer[8]clocksI2cSda and SyncData channels: clock channel (0-7)
Integer[8]clockFallingSyncData channels: 1 = data read on the falling edge of the clock
Integer[8]wordBitsSyncData channels: bits per word
Integer[8]signedWordsSyncData channels: 1 = two's complement words
BooleanwriteVcdWrite <base>.vcd
BooleanwritePulseViewSessionWrite <base>.pvs next to the VCD file: PulseView session with its protocol decoders set up from the channels
BooleanopenPulseViewOpen the VCD file in PulseView at the end of the simulation
StringpulseViewPathPath of the PulseView executable: absolute, or relative to the simulation folder (URIs resolved by the caller); empty string = automatic search
StringpulseViewLocalAutomatic search: pulseview.exe of the portable copy placed next to the library by get_pulseview.cmd (absolute path, may not exist)
BooleanwriteTextWrite <base>.txt (decoded frames, ASCII timing diagram)
BooleanopenTextOpen the text file in Notepad at the end of the simulation
Integer[5]textFlagsText file sections and options (0/1): hex dump, timing diagram, bit labels, split frames, compress silences
RealtextSilenceSilence not drawn in the timing diagram; 0 = automatic
RealtextResolutionDuration of one column of the timing diagram; 0 = automatic
IntegertextWidthColumns of the timing diagram per line

Outputs

TypeNameDefaultDescription
LogicAnalyzerCapturean