Logic Nets
Nets assigned to the logic type can be inspected using a logic analyzer. A maximum of 16 nets can be assigned as logic. Unlike with analog nets all 16 logic nets can be viewed simultaneously.
Logic nets can use the same, trigger, and cursor functions as analog nets. They can also use many of the same measurement functions, such as frequency and period.
Set Logic Signal Threshold
This sets the voltage threshold a signal must pass through in order to be captured by the logic analyzer.
from lager import Net, NetType
sck = Net.get('I2C.SCK',
type=NetType.Logic,
setup_function=setup_nets,
teardown_function=teardown_nets)
sck.set_signal_threshold(1.5)
~ lager logic I2C.SCK --threshold 1.5
Adjust Waveform Display Size
This adjusts the size of the waveform on the logic analyzer. This is helpful when trying to fit multiple waveforms on the screen.
Display Large
from lager import Net, NetType
sck = Net.get('I2C.SCK',
type=NetType.Logic,
setup_function=setup_nets,
teardown_function=teardown_nets)
sck.size_large()
~ lager logic I2C.SCK --display-large
Display Medium
from lager import Net, NetType
sck = Net.get('I2C.SCK',
type=NetType.Logic,
setup_function=setup_nets,
teardown_function=teardown_nets)
sck.size_medium()
~ lager logic I2C.SCK --display-medium
Display Small
from lager import Net, NetType
sck = Net.get('I2C.SCK',
type=NetType.Logic,
setup_function=setup_nets,
teardown_function=teardown_nets)
sck.size_small()
~ lager logic I2C.SCK --display-small