61 lines
7.8 KiB
Plaintext
61 lines
7.8 KiB
Plaintext
# Pins
|
|
and2.0.in0 {'haltype': 'pin', 'name': 'and2.0.in0', 'type': <Type.BOOL: 1>, 'dir': <Dir.IN: 16>, 'value': False, 'alias': None, 'signal': 'net-input-a', 'comp': 'and2', 'comp_id': 'ID'}
|
|
and2.0.in1 {'haltype': 'pin', 'name': 'and2.0.in1', 'type': <Type.BOOL: 1>, 'dir': <Dir.IN: 16>, 'value': False, 'alias': None, 'signal': 'net-input-b', 'comp': 'and2', 'comp_id': 'ID'}
|
|
and2.0.out {'haltype': 'pin', 'name': 'and2.0.out', 'type': <Type.BOOL: 1>, 'dir': <Dir.OUT: 32>, 'value': False, 'alias': None, 'signal': 'net-xor-a', 'comp': 'and2', 'comp_id': 'ID'}
|
|
and2.0.time {'haltype': 'pin', 'name': 'and2.0.time', 'type': <Type.S32: 3>, 'dir': <Dir.OUT: 32>, 'value': 0, 'alias': None, 'signal': None, 'comp': 'and2', 'comp_id': 'ID'}
|
|
or2.0.in0 {'haltype': 'pin', 'name': 'or2.0.in0', 'type': <Type.BOOL: 1>, 'dir': <Dir.IN: 16>, 'value': False, 'alias': None, 'signal': 'net-input-a', 'comp': 'or2', 'comp_id': 'ID'}
|
|
or2.0.in1 {'haltype': 'pin', 'name': 'or2.0.in1', 'type': <Type.BOOL: 1>, 'dir': <Dir.IN: 16>, 'value': False, 'alias': None, 'signal': 'net-input-b', 'comp': 'or2', 'comp_id': 'ID'}
|
|
or2.0.out {'haltype': 'pin', 'name': 'or2.0.out', 'type': <Type.BOOL: 1>, 'dir': <Dir.OUT: 32>, 'value': False, 'alias': None, 'signal': 'net-xor-b', 'comp': 'or2', 'comp_id': 'ID'}
|
|
or2.0.time {'haltype': 'pin', 'name': 'or2.0.time', 'type': <Type.S32: 3>, 'dir': <Dir.OUT: 32>, 'value': 0, 'alias': None, 'signal': None, 'comp': 'or2', 'comp_id': 'ID'}
|
|
testthread.threadbeat {'haltype': 'pin', 'name': 'testthread.threadbeat', 'type': <Type.SINT: 6>, 'dir': <Dir.OUT: 32>, 'value': 0, 'alias': None, 'signal': None, 'comp': '__testthread', 'comp_id': 'ID'}
|
|
testthread.time {'haltype': 'pin', 'name': 'testthread.time', 'type': <Type.S32: 3>, 'dir': <Dir.OUT: 32>, 'value': 0, 'alias': None, 'signal': None, 'comp': '__testthread', 'comp_id': 'ID'}
|
|
xor2.0.in0 {'haltype': 'pin', 'name': 'xor2.0.in0', 'type': <Type.BOOL: 1>, 'dir': <Dir.IN: 16>, 'value': False, 'alias': None, 'signal': 'net-xor-a', 'comp': 'xor2', 'comp_id': 'ID'}
|
|
xor2.0.in1 {'haltype': 'pin', 'name': 'xor2.0.in1', 'type': <Type.BOOL: 1>, 'dir': <Dir.IN: 16>, 'value': False, 'alias': None, 'signal': 'net-xor-b', 'comp': 'xor2', 'comp_id': 'ID'}
|
|
xor2.0.out {'haltype': 'pin', 'name': 'xor2.0.out', 'type': <Type.BOOL: 1>, 'dir': <Dir.OUT: 32>, 'value': False, 'alias': None, 'signal': 'net-output', 'comp': 'xor2', 'comp_id': 'ID'}
|
|
xor2.0.time {'haltype': 'pin', 'name': 'xor2.0.time', 'type': <Type.S32: 3>, 'dir': <Dir.OUT: 32>, 'value': 0, 'alias': None, 'signal': None, 'comp': 'xor2', 'comp_id': 'ID'}
|
|
# Params
|
|
and2.0.tmax {'haltype': 'parameter', 'name': 'and2.0.tmax', 'type': <Type.S32: 3>, 'dir': <Dir.RW: 192>, 'value': 0, 'alias': None, 'comp': 'and2', 'comp_id': 'ID'}
|
|
and2.0.tmax-increased {'haltype': 'parameter', 'name': 'and2.0.tmax-increased', 'type': <Type.BOOL: 1>, 'dir': <Dir.RO: 64>, 'value': False, 'alias': None, 'comp': 'and2', 'comp_id': 'ID'}
|
|
or2.0.tmax {'haltype': 'parameter', 'name': 'or2.0.tmax', 'type': <Type.S32: 3>, 'dir': <Dir.RW: 192>, 'value': 0, 'alias': None, 'comp': 'or2', 'comp_id': 'ID'}
|
|
or2.0.tmax-increased {'haltype': 'parameter', 'name': 'or2.0.tmax-increased', 'type': <Type.BOOL: 1>, 'dir': <Dir.RO: 64>, 'value': False, 'alias': None, 'comp': 'or2', 'comp_id': 'ID'}
|
|
testthread.tmax {'haltype': 'parameter', 'name': 'testthread.tmax', 'type': <Type.S32: 3>, 'dir': <Dir.RW: 192>, 'value': 0, 'alias': None, 'comp': '__testthread', 'comp_id': 'ID'}
|
|
xor2.0.tmax {'haltype': 'parameter', 'name': 'xor2.0.tmax', 'type': <Type.S32: 3>, 'dir': <Dir.RW: 192>, 'value': 0, 'alias': None, 'comp': 'xor2', 'comp_id': 'ID'}
|
|
xor2.0.tmax-increased {'haltype': 'parameter', 'name': 'xor2.0.tmax-increased', 'type': <Type.BOOL: 1>, 'dir': <Dir.RO: 64>, 'value': False, 'alias': None, 'comp': 'xor2', 'comp_id': 'ID'}
|
|
# Signals
|
|
net-input-a {'haltype': 'signal', 'name': 'net-input-a', 'type': <Type.BOOL: 1>, 'value': False, 'writers': 0, 'readers': 2, 'bidirs': 0, 'driver': None}
|
|
net-input-b {'haltype': 'signal', 'name': 'net-input-b', 'type': <Type.BOOL: 1>, 'value': False, 'writers': 0, 'readers': 2, 'bidirs': 0, 'driver': None}
|
|
net-output {'haltype': 'signal', 'name': 'net-output', 'type': <Type.BOOL: 1>, 'value': False, 'writers': 1, 'readers': 0, 'bidirs': 0, 'driver': 'xor2.0.out'}
|
|
net-xor-a {'haltype': 'signal', 'name': 'net-xor-a', 'type': <Type.BOOL: 1>, 'value': False, 'writers': 1, 'readers': 1, 'bidirs': 0, 'driver': 'and2.0.out'}
|
|
net-xor-b {'haltype': 'signal', 'name': 'net-xor-b', 'type': <Type.BOOL: 1>, 'value': False, 'writers': 1, 'readers': 1, 'bidirs': 0, 'driver': 'or2.0.out'}
|
|
# Components
|
|
xor2 {'haltype': 'component', 'name': 'xor2', 'type': <CompType.REALTIME: 1>, 'id': 'ID', 'pid': 0, 'ready': True, 'insmod': 'count=1'}
|
|
or2 {'haltype': 'component', 'name': 'or2', 'type': <CompType.REALTIME: 1>, 'id': 'ID', 'pid': 0, 'ready': True, 'insmod': 'count=1'}
|
|
and2 {'haltype': 'component', 'name': 'and2', 'type': <CompType.REALTIME: 1>, 'id': 'ID', 'pid': 0, 'ready': True, 'insmod': 'count=1'}
|
|
__testthread {'haltype': 'component', 'name': '__testthread', 'type': <CompType.REALTIME: 1>, 'id': 'ID', 'pid': 0, 'ready': True, 'insmod': None}
|
|
threads {'haltype': 'component', 'name': 'threads', 'type': <CompType.REALTIME: 1>, 'id': 'ID', 'pid': 0, 'ready': True, 'insmod': 'name1=testthread period1=1000000'}
|
|
# Functions
|
|
and2.0 {'haltype': 'function', 'name': 'and2.0', 'comp': 'and2', 'comp_id': 'ID', 'users': 1, 'reentrant': False}
|
|
or2.0 {'haltype': 'function', 'name': 'or2.0', 'comp': 'or2', 'comp_id': 'ID', 'users': 1, 'reentrant': False}
|
|
xor2.0 {'haltype': 'function', 'name': 'xor2.0', 'comp': 'xor2', 'comp_id': 'ID', 'users': 1, 'reentrant': False}
|
|
# Threads
|
|
testthread {'haltype': 'thread', 'name': 'testthread', 'comp': '__testthread', 'comp_id': 'ID', 'priority': 0, 'period': 1000000, 'functions': [{'haltype': 'threadfunction', 'name': 'and2.0', 'index': 0, 'is_init': False}, {'haltype': 'threadfunction', 'name': 'or2.0', 'index': 1, 'is_init': False}, {'haltype': 'threadfunction', 'name': 'xor2.0', 'index': 2, 'is_init': False}]}
|
|
# Signal pins
|
|
and2.0.out {'haltype': 'pin', 'name': 'and2.0.out', 'type': <Type.BOOL: 1>, 'dir': <Dir.OUT: 32>, 'value': False, 'alias': None, 'signal': 'net-xor-a', 'comp': 'and2', 'comp_id': 'ID'}
|
|
xor2.0.in0 {'haltype': 'pin', 'name': 'xor2.0.in0', 'type': <Type.BOOL: 1>, 'dir': <Dir.IN: 16>, 'value': False, 'alias': None, 'signal': 'net-xor-a', 'comp': 'xor2', 'comp_id': 'ID'}
|
|
# Intended failures
|
|
pin('does-not-exist') fails correctly
|
|
param('does-not-exist') fails correctly
|
|
signal('does-not-exist') fails correctly
|
|
comp('does-not-exist') fails correctly
|
|
comp(65534) fails correctly
|
|
funct('does-not-exist') fails correctly
|
|
thread('does-not-exist') fails correctly
|
|
signalpins('does-not-exist') fails correctly
|
|
# Simple named queries
|
|
Pin: {'haltype': 'pin', 'name': 'or2.0.in1', 'type': <Type.BOOL: 1>, 'dir': <Dir.IN: 16>, 'value': False, 'alias': None, 'signal': 'net-input-b', 'comp': 'or2', 'comp_id': 'ID'}
|
|
Param: {'haltype': 'parameter', 'name': 'testthread.tmax', 'type': <Type.S32: 3>, 'dir': <Dir.RW: 192>, 'value': 0, 'alias': None, 'comp': '__testthread', 'comp_id': 'ID'}
|
|
Signal: {'haltype': 'signal', 'name': 'net-output', 'type': <Type.BOOL: 1>, 'value': False, 'writers': 1, 'readers': 0, 'bidirs': 0, 'driver': 'xor2.0.out'}
|
|
Component: {'haltype': 'component', 'name': 'and2', 'type': <CompType.REALTIME: 1>, 'id': 'ID', 'pid': 0, 'ready': True, 'insmod': 'count=1'}
|
|
Function: {'haltype': 'function', 'name': 'xor2.0', 'comp': 'xor2', 'comp_id': 'ID', 'users': 1, 'reentrant': False}
|
|
Thread: {'haltype': 'thread', 'name': 'testthread', 'comp': '__testthread', 'comp_id': 'ID', 'priority': 0, 'period': 1000000, 'functions': [{'haltype': 'threadfunction', 'name': 'and2.0', 'index': 0, 'is_init': False}, {'haltype': 'threadfunction', 'name': 'or2.0', 'index': 1, 'is_init': False}, {'haltype': 'threadfunction', 'name': 'xor2.0', 'index': 2, 'is_init': False}]}
|