Hardware description
5.18 CPLD control
You need to run the CPLD and enable it if you want to use:
•
the
SmartMedia macros
(see page 57)
•
the
reconfiguration macro
(see page 68)
•
the
Send Protocol macros
(see page 69)
RC200CPLDRun()
needs to be called in parallel to these macros, and
RC200CPLDEnable()
needs to
be called before you access them.
5.18.1 CPLD management tasks
extern macro proc RC200CPLDRun (
ClockRate
);
Parameters:
ClockRate
: Clock rate of the clock domain of the call to this macro, in Hz.
Timing:
Does not terminate in normal use.
Description:
Runs the device management tasks for the CLPD interface. You must run this
macro in parallel with accesses to the CPLD.
5.18.2 Enabling the CPLD
extern macro proc RC200CPLDEnable();
Parameters:
None.
Timing:
2 cycles if CPLD is ready for use, otherwise, undetermined.
Description:
You need to call this macro in parallel with
RC200CPLDRun()
, and before
accesses to the CPLD. The macro waits until the CPLD is ready and then sets the
CPLD internal mode to normal operation. Refer to the RC200 Hardware and
Installation Manual for more details.
Example:
par
{
RC200CPLDRun();
seq
{
RC200CPLDEnable();
// code for CPLD accesses
...
}
}
5.19 FPGA / parallel port communication
The Send Protocol allows you to send data between the FPGA and your PC via the parallel port.
To write data to or read data from the host PC:
www.celoxica.com
Page 69