Skip to content

Legacy:Tests

Bence Cs edited this page Nov 12, 2018 · 4 revisions

Legacy driver - logsys-test binary

This app is a command-line interactive interface to test the driver and the device. You can issue commands on STDIN and the response will be written to STDOUT/STDERR.

status

This command reads the device status and outputs in a table-like structure. The first 4 cells are the measured voltages on different pins in ###.## format

The fifth is the current flowing out on VCC

The sixth consists of 3 flags: * (VCC on), + (overcurrent detected) and - (reverse current detected). The column has a . if that flag is TRUE and is left blank otherwise

The seventh similarly has all the resources-in-use flags: JTAG, CLK1, CLK2, RST, Serial IO, EP1&EP2, EP3&EP4

clk status

This command reads the clock's status (whether it is active; current values of the registers)

clk start <freqHz>

Starts CLOCK2 at the given frequency

clk stop

Stops CLOCK2

pwrlim get

This command gets the power limit, as well as the correction values (the latter as a hex dump)

vcc on, vcc off, vcc get

Setting and getting the VCC pin

rst on, rst off, rst get

Setting and getting the RST pin

jtag scan

Performs a JTAG scan and outputs the devices' identifiers

conf <format> <file_path>

Configures the FPGA. format can be svf, xsvf, bit, jed. Path must not contain spaces, or must be enclosed in quote marks.

Valid:

  • /some/path.svf
  • 'file with spaces.bit'
  • "/media/Peter's Stuff/file.xsvf"

Invalid:

  • file\ with\ spaces.bit
  • /this won't/"work" (a path containing ', " AND can't be represented. Use symlinks.)

quit

Bye