In a Power Manager Device an IEEE 1149.1 test access port (TAP) provides the control interface for serially accessing the digital I/O of the device.
The TAP controller is state machine driven with mode and clock inputs. Given in the correct sequence, instructions are shifted into an instruction register, which then determines subsequent data input, data output, and related operations.
Device programming is performed by addressing the configuration register, shifting data in, and then executing a program configuration instruction, after which the data is transferred to internal non-volatile memory. It is these non-volatile cells that store the configuration for the Power Manager Device.
A set of instructions called TAP instructions are defined that access all data registers and perform other internal control operations. The TAP is controlled by the Test Clock (TCK) and Test Mode Select (TMS) inputs. These inputs determine whether an Instruction Register or Data Register operation. is performed. As an example you can find more about TAP instructions in POWR1220AT8 Datasheet under the section IEEE Standard 1149.1 Interface (JTAG). You can find about TAP instructions for other Power Manager devices from their respective datasheet.
Lattice provides Diamond Programmer Software & Deployment tool through which TAP instructions can be executed.You can write TAP instructions in a simple txt file and save it to a .svf file.
Now open the Diamond Deployment tool from Start Menu> All Programs> Lattice Diamond Programmer > Deployment Tool
or from Standalone Diamond Programmer, go to Design > Utilities> Deployment Tool.
Open the saved svf file, connect the device though the cable and debug from there.
To download Lattice Diamond Programmer software and Deployment Tool,
Go to www.latticesemi.com and log in to your lattice web account.
Go to Products > Design Software & IP> Programmer and Deployment Tool
Below is the link for the same,
Under 'Software Downloads & Documentation' section, under DOWNLOADS tab, select Downloadable Software and download the Standalone Programmer as per your system requirements.