Add Softare For SimpleScope
The SimpleScope
class has been updated to read out the firmware block from !105 (merged). It has two functions:
-
getCounts
: returns the number of registered level changes -
getTrace
: returns the last trace saved in the firmware The argument to both is the channel (not AXI register number!) of interest. The channel mapping is conveniently parameterized in theScopeChannels
enum.
WARNING The firmware changes the uio order due to the new block being inserted (alphabetically) in the middle. So this is not compatible with older firmware. The other functionality should still work.
The ScopeTest
demonstrates the usage by toggling the DCDCen
/LDx0en
lines and printing out the scope trace.
Changed uint
to uint32_t
as the latter is a standard definition and enforced by newer compilers.