***
Genesis Microchip Confidential ***
gm5110/20 Preliminary Data Sheet
June 2002
31
C5110-DAT-01C
4.13.1 On-Chip OSD SRAM
The on-chip static RAM (4096 words by 24 bits) stores the cell map and the cell definitions.
In memory, the cell map is organized as an array of words, each defining the attributes of one
visible character on the screen starting from upper left of the visible character array. These
attributes specify which character to display, whether it is stored as 1, 2 or 4 bits per pixel,
the foreground and background colors, blinking, etc.
Registers CELLMAP_XSZ and CELLMAP_YSZ are used to define the visible area of the
OSD image. For example, Figure 22 shows a cell map for which CELLMAP_XSZ =25 and
CELLMAP_YSZ =10.
Brightness
Contrast
Address26:
Cell attributes for
1
cell, 2
row
Address 25:
Attributes for
upper-right hand cell
Address 1:
Cell Attributes for
upper-left hand cell
CELLMAP_XSZ
CELLMAP_YSZ
Figure 22.
OSD Cell Map
Cell definitions are stored as bit map data. On-chip registers point to the start of 1-bit per
pixel definitions, 2-bit per pixel definitions and 4-bit per pixel definitions respectively. 1, 2
and 4-bit per pixel cell definitions require 9, 18 and 36 words of the OSD RAM respectively.
Note that the cell map and the cell definitions share the same on-chip RAM. Thus, the size of
the cell map can be traded off against the number of different cell definitions. In particular,
the size of the OSD image and the number of cell definitions must fit in OSD SRAM. That is,
the following inequality must be satisfied. (Note, the ROUND operation rounds 3.5 to 4).
(CELLMAP_XSZ+1) * CELLMAP_YSZ +
18 * ROUND(Number of 1-bit per pixel fonts / 2) +
18 * (Number of 2-bit per pixel fonts) +
36 * (Number of 4-bit per pixel fonts) <= 4096
For example, an OSD menu 360 pixels wide by 360 pixels high is 30 cells in width and 20
cells in height. Many of these cells would be the same (e.g. empty). In this case, the menu