Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Command Processor (CP)

The command processor (CP) is responsible for fetching and processing GX commands generated by the CPU from an in-memory ring buffer (FIFO).

Registers

Warning

All FIFO registers are middle endian.

CP Status (0x0C00_0000, 2 bytes)

Contains status regarding the command processor.

BitsNameDescription
0CP FIFO OverflowWatermark logic
1CP FIFO UnderflowWatermark logic
2CP read idle
3CP command idle
4Breakpoint Interrupt
5..16Unused

CP Control (0x0C00_0002, 2 bytes)

Controls the command processor.

BitsNameDescription
0CP FIFO Read EnableWhether the CP will read commands from the FIFO
1CP FIFO Breakpoint Enable
2CP FIFO Overflow IRQ Enable
3CP FIFO Underflow IRQ Enable
4CP FIFO Linked ModeControls the FIFO mode. Is set on reset.
5CP FIFO Breakpoint IRQ Enable
6..16Unused

CP Clear (0x0C00_0004, 2 bytes, write only)

BitsNameDescription
0Clear CP FIFO OverflowWrite 1 to clear status bit 0
1Clear CP FIFO UnderflowWrite 1 to clear status bit 1
2..16Unused

CP FIFO Start (0x0C00_0020, 4 bytes)

Start address of the ring buffer.

CP FIFO End (0x0C00_0024, 4 bytes)

End address of the ring buffer (exclusive).

CP FIFO High Watermark (0x0C00_0028, 4 bytes)

Ring buffer’s high watermark, i.e. the remaining capacity of the CP FIFO that triggers a high watermark interrupt.

CP FIFO Low Watermark (0x0C00_002C, 4 bytes)

Ring buffer’s low watermark, i.e. the remaining capacity of the CP FIFO that triggers a low watermark interrupt.

CP FIFO Count (0x0C00_0030, 4 bytes)

Distance between the FIFO read and write pointers.

CP FIFO Write Pointer (0x0C00_0034, 4 bytes)

Current address of the FIFO write pointer (i.e. where new data is going to be written).

CP FIFO Read Pointer (`0x0C00_00348, 4 bytes)

Current address of the FIFO read pointer (i.e. where new data is going to read from).