User manual

RC200/203 Manual
www.celoxica.com Page 81
Parameters:
ImageAddress: Data of type unsigned 16, specifying the
block address to start accessing the SmartMedia card at for
reconfiguration.
Timing: If reconfiguration is success, the macro does not return.
Description: This macro reconfigures the FPGA from the SmartMedia.
You must run it in parallel with
RC200CPLDRun(), and after
calling
RC200CPLDEnable(). It checks if a SmartMedia card is
present, and if it is, it writes the SmartMedia block address to
two CPLD registers, and then reads from another CPLD
register which causes the CPLD to reconfigure the FPGA from
that address. The address is passed in as a logical address,
which is the physical address on the SmartMedia + 1. This
allows for the CIS (Card Information Structure) block. If no
SmartMedia card is present, the macro returns, otherwise it
enters a loop until the FPGA is reconfigured.
5.18 CPLD control
You need to run the CPLD and enable it if you want to use:
the
SmartMedia macros (see page 66)
the
reconfiguration macro (see page 80)
the
Send Protocol macros (see page 82)
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();