fpgainfo¶
SYNOPSIS¶
fpgainfo [-h | --help] <command> [<args>]
DESCRIPTION¶
fpgainfo displays FPGA information derived from sysfs files. The command argument is one of the following: errors, power, temp, port or fme. Some commands may also have other arguments or options that control their behavior.
For systems with multiple FPGA devices, the BDF (or bus, device, function) may be specified to limit the output to the FPGA resource with the corresponding PCIe configuration. If not specified, information will be displayed for all resources for the given command.
FPGAINFO COMMANDS¶
errors
Show/clear errors of an FPGA resource that the first argument specifies.
fpgainfo displays information in human readable form.
power
Show total the power in watts that the FPGA hardware consumes.
temp
Show FPGA temperature values in degrees Fahrenheit.
port
Shows information about the port such as the AFU ID of currently loaded AFU.
fme
Show information about the FPGA platform such as the FPGA Interface Manager (FIM) ID.
COMMON ARGUMENTS¶
The following arguments are common to all commands and are optional.
-b, --bus
PCIe bus number of resource.
-d, --device
PCIe device number of resource.
-f, --function
PCIe function number of resource.
--json
Display information as JSON string.
ERRORS ARGUMENTS¶
The first argument to the errors
command specifies the resource
type. It must be one of the following: fme
,port
,all
fme
Show/clear FME errors.
port
Show/clear PORT errors.
all
Show/clear errors for all resources.
--clear, -c
Clear errors for the given FPGA resource.
EXAMPLES¶
This command shows the current power consumtion:
./fpgainfo power
This command shows the current temperature reading:
./fpgainfo temp
This command shows FME resource errors
./fpgainfo errors fme
This command clears all errors on all resources:
./fpgainfo errors all -c
This command shows information of the FME on bus 0x5e
./fpgainfo fme -b 0x5e