
PRELIMINARY
GRAPHICS 2D
S3C6400X RISC MICROPROCESSOR
18-6
COORD_0
Coordinate of the leftmost topmost coordinate of the destination window
COORD_1
Coordinate of the rightmost bottommost coordinate of the destination window
FG_COLOR Foreground
Color
BG_COLOR Background
Color
CMDR_7
The base address of the font data. Note that writing to this register starts the
rendering process in the memory-to-screen mode.
CMDR_4/CMDR_5
The host provides the font data through these two command registers. When the
host writes the first 32-bit data into CMDR_4, the rendering process starts in the
host-to-screen mode. Then the host should provide the rest of data by writing them
into CMDR_5 continuously.
RASTER OPERATION
Raster Operation performs Boolean operations on three operands: source, destination and third operand
according to the 8-bit ROP value specified by the user. The truth table of ROP is given in the following table.
Source
Destination
Third Operand
ROP Value
1 1 1 Bit7
1 1 0 Bit6
1 0 1 Bit5
1 0 0 Bit4
0 1 1 Bit3
0 1 0 Bit2
0 0 1 Bit1
0 0 0 Bit0
The third operand can be pattern or foreground color, configurable by the OS bit in the ROP_REG.
Pattern is a user-specified 8x8x16-bpp image; the pattern data should be given in RGB565 format. The following
equation is used to calculate the pattern index of pixel (x, y):
index = ( ((patternO y) & 0x7 )<<3 ) + ((patternO x)&0x7),
where patternOffsetY and patternOffsetX are the offset value specified in register PATOFF_REG.
Here are some examples on how to use the ROP value to perform the operations:
1) Final Data = Source. Only the Source data matter, so ROP Value = “11110000”.
2) Final Data = Destination. Only the Destination data matter, so ROP Value = “11001100”.
3) Final Data = Pattern. Only the Pattern data matter, so ROP Value = “10101010”.