Installation and set-up
The FPGA also has access to the parallel port and to the SmartMedia Flash memory through the CPLD.
You can program the FPGA via the CPLD from the SmartMedia Flash memory, or from the parallel port.
4.4.1 FPGA operation modes
The RC200 FPGA has two modes of operation:
•
normal operation: communicates with the SmartMedia and PLL and is a parallel port slave
•
parallel port control operation: becomes parallel port master and drives all parallel port
signals
The operation mode is set by control line P9 on the CPLD. If P9 is high, the FPGA is in normal operation
mode. If P9 is low, the FPGA is in parallel port control operation mode.
The function of the other CPLD control lines changes, depending on whether P9 is high or low.
4.4.2 Programming the FPGA using the FTU2 program
Celoxica provides a File Transfer Utility program, FTU2, which simplifies the process of programming
the RC200 FPGA via the parallel port.
4.4.3 Programming the FPGA from the parallel port
To program the RC200 Virtex-II from the parallel port:
1. Check that the board is connected and powered by reading the CPLD version ID (CPLD
address value 7).
The board may not return the ID if the FPGA is controlling the parallel port. If this happens,
eject the SmartMedia card and press the Reset button.
2. Disable and clear the FPGA by asserting nPROG (CPLD address 3, bit 4). Leave nPROG
asserted.
3. Disable the SmartMedia state machine by asserting CPLD address 3, bit 3 and leave this
asserted during programming.
4. Wait at least 1mS.
5. Deassert nPROG.
6. Wait for nINIT (CPLD address 3, bit 2) to go high, showing that the FPGA has cleared its
memory. For timeouts this is 4uS per frame, giving a total of 4.9mS for the Virtex II
XC2V1000 on the RC200 and 13mS for the XC2V3000 on the RC203.
7. The entire BIT file without the header can now be transferred directly to address 0. The
CPLD times the nCS, nWR and CCLK signals such the FPGA may be programmed.
8. After programming the FPGA, you need to wait at least 100µS before accessing the CPLD.
Alternatively, wait 1µS and check that PnCS is high (i.e. that there is no access to the
parallel port).
If programming is successful, DONE (CPLD address 3, bit 0) will be high, lighting the DONE LED. The
SmartMedia state machine can then be re-enabled by setting the Disable SmartMedia state machine
signal low (address 3, bit 3).
If there is an error during programming the FPGA will signal a CRC error by
lowering nINIT (unless the FPGA is accessing the CPLD).
www.celoxica.com
Page 19