40.4.6.4.7 ROP_WD6

Name: ROP_WD6

Bit 3130292827262524 
          
Access  
Reset  
Bit 2322212019181716 
       ROPM[1:0] 
Access  
Reset  
Bit 15141312111098 
 ROPH[7:0] 
Access  
Reset  
Bit 76543210 
 ROPHL[7:0] 
Access  
Reset  

Bits 17:16 – ROPM[1:0] Raster Operation Mode

ValueNameDescription
0 ROP2 Binary raster operation (D, S)

Two surfaces are used (required), 16 operations are defined, D and S required.

Mask set to 0 internally

Pattern set to 0 internally

Source read from memory

ROPL field value is used to generate the logical expression. ROPL can be any value between 0 and 15 (0x00 to 0x0F).

ROPH field is ignored.

ROP2_BLACK D = 0 (always 0, black in RGB mode)

ROP2_NOTMERGESOURCE D = ~(D|S) Inverse of R2_MERGESOURCE

ROP2_MASKNOTSOURCE D = D &~S Conjunction of destination and inverse of source

ROP2_NOTCOPYSOURCE D = ~S Inverse of source color

ROP2_MASKSOURCENOT D = S & ~D Conjunction of source and inverse of destination

ROP2_NOT D = ~D Inverse of destination

ROP2_XORSOURCE D = D ^ S Exclusive OR of destination and source

ROP2_NOTMASKSOURCE D = ~(D&S) Inverse of ROP2_MASKSOURCE

ROP2_MASKSOURCE D = D & P Conjunction of destination and source

ROP2_NOTXORSOURCE D = ~(D ^ S) Inverse of ROP2_XORSOURCE

ROP2_NOP D = D No change (copy)

ROP2_MERGENOTSOURCE D = D | ~S Disjunction of destination and inverse of source

ROP2_COPYSOURCE D = S

ROP2_MERGESOURCENOT D = S | ~D Disjunction of source and inverse of destination

ROP2_MERGESOURCE D = S | D Conjunction of source and destination

ROP2_WHITE D = 1

1 ROP3 Ternary raster operation (D, P, S)

Three surfaces used, 256 operations

Mask value set to 0

Source read from memory

Pattern read from memory

ROPL used to generate the logical expression

256 raster operations from 0x00 to 0xFF

2 ROP4 4-operand raster operation (D, P, S, M)

Four surfaces used, 256 operations

Mask value is read from memory (pointed by PMASK), mask is bit level.

Source read from memory

Pattern read from memory

ROPL used to generate the logical expression when mask bit is cleared

ROPH used to generate the logical expression when mask bit is set

Bits 15:8 – ROPH[7:0] 8-bit Raster Operation High

Bits 7:0 – ROPHL[7:0] 8-bit Raster Operation Low