
Genesis Microchip
gm5060 / gm5060-H Data Sheet
February 2002
C5060-DAT-01G
55
fonts. For example, in landscape mode the OSD displayed character screen aspect ratio is
programmable and is bounded by the equation:
CHARMAP_XSZ * CHARMAP_YSZ + CHARMAP_YSZ + 18 * ROUND(No. of fonts/2) =< 3594 (one bit per pixel)
(The ROUND operation would round 3.5 to 4.)
CHARMAP_XSZ * CHARMAP_YSZ + CHARMAP_YSZ + 18 * (No. of fonts) =< 3594 (two bits per pixel)
No such restrictions apply when fonts are stored in external frame buffer memory.
Row Attribute Word
The row attribute word at the start of each row in the character array has the following format:
Bits 23 - 4: Unused
Bit 3: This bit is used to indicate to the OSD how many colors an SDRAM font uses. If
set, the SDRAM font is processed as a two color font. In this mode, the user should use
only bit patterns "00" and "11" for describing a font pattern. This mode is useful when
WINDOWS BACKGROUND MODE is disabled. SDRAM fonts are processed
identically to 1-bit per pixel SRAM fonts – i.e., the SDRAM font will use seven bits
(which are independent from the foreground bits) to determine background color.
Bit 2 [SDRAM_FONT]: If set, characters in this OSD row are retrieved from SDRAM.
Bit 1 - 0 [SDRAM_FONT_TBL[1:0]]: If SDRAM resident fonts sets are being used,
characters in this OSD row use the font table specified by this register.
Character Attribute Word (One bit-per-pixel mode)
In one bit-per-pixel mode, each character attribute word defines the character index, the
background color, the foreground color, and the blink status for a visible character.
Bits 7 - 0: Character Index
Bits 23 - 16: Bits 7-0 of foreground color (specified by a "1" in the font map)
Bits 15 - 9: Bits 7-1 of background color (specified by a "0" in the font map)
Note that bit 0 of the background color is always "0". Also note that the background color
may be defined using the windowing method as described in Section 4.15.1.3 below. In
this case these bits are unused.
Bit 8: A "1" indicates that this character blinks when blinking is enabled.
When only two bit patterns are used to describe an
SDRAM
font ("11" and "00"), bit 3 of the
Character Attribute Row can be set, allowing the background color for fonts to be determined
by character index bits 7-1. This feature allows a user who is only using two colors in an
SDRAM font (11, 00) to choose the background color independent of the foreground color.
The foreground and background colors in this case are chosen the same way as a 1-bit per
pixel SRAM font; two bits are used to describe two colors because SDRAM fonts must
ALWAYS be defined as 2-bits per pixel.
Also note that the background color may be defined using the windowing method as described in
Section 4.15.1.3 below. In this case these bits are unused.
Character Attribute Word (Two bit-per-pixel mode)
In two bit-per-pixel mode, each character attribute word defines the character index, the
background color, three foreground colors, and the blink status for a visible character.