User manual
RC200/203 Manual
www.celoxica.com Page 80
Parameters:
Data: Data of type unsigned 8, containing a byte of data to
write to the packet.
ResultPtr: Pointer to data of type unsigned 1. Returns 1
(failure) or 0 (success).
Timing:
1 or 6 clock cycles alternately. This is because the macro
writes a byte at a time, but Ethernet accesses are 16-bit.
When a byte of data is already buffered on the chip the write
only takes 1 clock cycle.
Timing may differ if other accesses to the chip precede a
write operation.
Description: Writes a single byte of data to a packet.
Returns
ResultPtr = 1 to indicate an error if the expected
number of bytes have already been written to the packet, or
if there is no write in progress.
Data is written a byte at a time, but communications with the
Ethernet chip are 16-bit, so a byte is buffered in the Ethernet
data structure, until there are 16 bits to write.
You must call
RC200EthernetWriteBegin() before this
macro.
Completing the write process
extern macro proc RC200EthernetWriteEnd (StatusPtr, ResultPtr);
Parameters:
StatusPtr: Pointer to data of type unsigned 16. Returns
the status data from the transmitted packet.
ResultPtr: Pointer to data of type unsigned 1. Returns 1
(failure – packet has not been transmitted) or 0 (success).
Timing:
45 clock cycles to 5ms (timeout), depending on speed of
response of Ethernet device.
Description:
Completes the process of writing a packet, by commanding
the Ethernet device to send it onto the network and waiting
for completion or timeout.
You must call this macro after all the data has been written
to a packet.
5.17 Reconfiguring the FPGA
extern macro proc RC200Reconfigure (ImageAddress);