Date: Thu, 20 Jan 2005 Acosta, Madorsky Instructions to program the CLC Coincidence Unit. 1. Obtain the new mcs file for the CLC Coincidence unit. For example, http://www.phys.ufl.edu/~madorsky/Coincidence_unit/mcs/cdfcu.mcs.zip Obtain a Xilinx parallel port cable III (make sure it is the right one, with the correctly labelled JTAG flying leads) 2. Install the following older version of the Xilinx programming tool on your Windows computer (so that it handles correctly the older EPROM xc1802_vq44 on the coincidence unit) http://www.phys.ufl.edu/~acosta/cdf/webpack_fpga_prog.exe (version 3.3WP8.x) Follow instructions to unpack and install. 3. Connect the Xilinx parallel port cable III from the computer parallel port to the JTAG connector on the coincidence unit, according to this document: http://www.phys.ufl.edu/~madorsky/Coincidence_unit/coincidence.doc See Figs. 1 and 3 and Table 5 for correct connection. Note that there are only 6 flying leads and 8 pins. Thus, you connect VCC to one of the two VCC pins, and GND to one of the two pins (doesn't matter which). You can also consult CDF Note 5861, Fig. 4 and 6 and Table 5. It has the same information. 4. Power up the crate containing the CLC coincidence unit 5. Start the Xilinx JTAG programmer software Start->Programs->Xilinx WebPACK->Device Programming 6. Choose File->Initialize Chain If the board is powered and connected properly, it should find the EPROM on the JTAG chain (XC1802). 7. VERY IMPORTANT!!! - read back whatever is now in this chip. JTAG programmer will save it as an MCS file - keep this file safe and backed up. In case the new file does not work, you will be able to reload the old configuration from this MCS file later, and make the board works as it was before. To do this, choose Operations->Readback 8. Load the file firmware file. To do this, choose Edit->Properties and browse to attach the correct MCS file. Either here or in the next step you must choose the correct package type for the EPROM. It is xc1802_vq44. 9. Program device by choosing Operations->Program 10. Power cycle the crate so that the new EPROM contents get loaded into the FPGA. The red LED next to the EPROM should flash red briefly and turn off if the FPGA is properly loaded. 11. Test that the new firmware behaves as expected. For example, pulse the LEDs with only a couple PMTs powered.