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.

../../_images/logic_setup.png

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.

set_logic_signal_threshold.py
 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)
Set Logic Signal Threshold
~  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

display_logic_wfm_large.py
 from lager import Net, NetType

 sck = Net.get('I2C.SCK',
         type=NetType.Logic,
         setup_function=setup_nets,
         teardown_function=teardown_nets)

 sck.size_large()
Display The Logic Waveform Large
~  lager logic I2C.SCK --display-large

Display Medium

display_logic_wfm_medium.py
 from lager import Net, NetType

 sck = Net.get('I2C.SCK',
         type=NetType.Logic,
         setup_function=setup_nets,
         teardown_function=teardown_nets)

 sck.size_medium()
Display The Logic Waveform Medium
~  lager logic I2C.SCK --display-medium

Display Small

display_logic_wfm_small.py
 from lager import Net, NetType

 sck = Net.get('I2C.SCK',
         type=NetType.Logic,
         setup_function=setup_nets,
         teardown_function=teardown_nets)

 sck.size_small()
Display The Logic Waveform Small
~  lager logic I2C.SCK --display-small