FAQ

pltool
The programmable logic tool (pltool) veries access to the complex programmable logic devices (CPLD) and eld programmable gate
array (FPGA) and veries versions.
The pltool generates its conguration le based on the platform database. The conguration le is generated with a specic version of
devices in order to detect manufacturing misleads. The database holds all the versions and is updated when new versions are released.
The conguration le displays in tree format. The base is the chip that can have multiple registers and may or may not have bit descriptions
and bit collection information. Each parameter in the tree is on an individual line separated by the “|” character.
Example of the pltool Output
Syntax: ./pltool <option>
-h := show this help
test := test using the test config file
list := list devices and registers
read [b|h|w] device offset [length] := read the specified register
write [b|h|w] device offset data [length] := write at the specified register
The conguration le displays in tree format. The base is the chip that can have multiple registers and may or may not have bit descriptions
and bit collection information. Each parameter in the tree is on an individual line separated by the “|” character.
The following describes the C-row conguration le tree output.
C-Row
Parameter
Description
C The row identier.
Type CPLD, FPGA, or TPM.
Address The address of the device. For CPLD on an I2C bus, this is an 8–bit address. For PCI, this is the bus:dev:function in
a packed 32–bit word, 8–bits each. For memory, this is the address. LPC is unknown.
Name The text name for the device.
Interface i2c, pci, mem, io, or lpc.
Bus For devices on multiple busses, this indicates the bus number (for example, 0 for i2c indicates /dev/i2c-0. For PCI,
this holds the bus-dev-func in a 32–bit value with each byte representing bus, device and functions in that order
(for example, 0x020304 represents bus 02, device 03, and function 04).
Version Reg The register that contains the version for the device.
Version Mask The bits to use to check the version.
The following describes the R-row conguration le tree output.
R-Row
Parameter
Description
R The register identier.
Address The register addresses (oset) in the device.
Register Size Describes how many bits the register contains (for example, 8, 16, or 32).
Register Mask Lists the valid bits in this register.
Name The text name of this register.
Access Perm Access permissions:
18 ONIE diagnostics