Open design file
Click on Generate Programming file

Fix possible errors
Click Configure Device (iIMPACT)
When IMPACT opens – click cancel on all prompt until you see the the main window:

Open
the cdf file. If file is not prepared – add devices similar way
and save the file.
Click Output, select STAPL, enter file name for resulting STAPL file
Click on device what need to be downloaded and select Program.
Important. When programming si finished click on Output/STAPLE/Stop Writing to STAPLE File. If you don't do that then the end of the file will not be written out.