User manual

RC200/203 Manual
www.celoxica.com Page 45
Parameters:
Address: Address of data to read/write on the next clock
cycle, of type
unsigned 19 on the Standard and Professional
versions of the RC200, and
unsigned 20 on Expert boards.
Timing: 1 clock cycle.
Description:
Sets the address of data for the Read or Write which will
occur on the next cycle.
Example:
seq
{
RC200PL1RAM0SetReadAddress (Addr);
RC200PL1RAM0Read (&Data);
}
5.7.3 Write address mask
extern macro proc RC200PL1RAM0SetWriteAddressMask (Address, Mask);
extern macro proc RC200PL1RAM1SetWriteAddressMask (Address, Mask);
Parameters:
Address: Address of data to read/write on the next clock
cycle, of type
unsigned 19 on the Standard and Professional
RC200, and
unsigned 20 on Expert boards.
Mask: data value of type unsigned 4.
Timing: 1 clock cycle.
Description:
Sets the address for the next write and masks the bytes that
are set to 0 in
Mask. For example, if Mask was 0010, only the
second byte would be written to.
5.7.4 Reading from RAM
extern macro proc RC200PL1RAM0Read (DataPtr);
extern macro proc RC200PL1RAM1Read (DataPtr);
Parameters: DataPtr: Pointer to an lvalue of type unsigned 36.
Timing: 1 clock cycle.
Description:
Reads a single item of data from the address specified by the
call to the
RC200PL1RAM*SetReadAddress() on the previous
cycle.