######### RGB Video

Library: Input/Output
Introduced: 3.0.0
Appearance: A rectangular raster screen bordered by a gray frame. In the lower-left corner of the frame, control and data pins are located.

Behavior

The RGB Video component models a pixel-based raster display supporting various color schemes and resolutions. It allows graphics to be rendered by writing pixel colors at specific (X, Y) coordinates.

A pixel write operation occurs on the rising edge of the clock signal CLK, provided that the write enable input WE is 1. The pixel color at coordinates (X, Y) is updated with the value from the Data input.

Resetting the screen to black is performed by a signal on the RST input. The reset logic depends on the Reset attribute and can be either synchronous (on the rising edge of the clock) or asynchronous (immediately).

Pins (inputs are located on the bottom edge from left to right)

Pin 0 (input, bit width 1):
Reset signal (RST). Clears the entire screen, filling it with black when a logical 1 is applied.
Pin 1 (input, bit width 1, clock input):
Clock signal (CLK). Data is written into the display memory on its rising edge.
Pin 2 (input, bit width 1):
Write enable (WE). Writing a pixel is active only when this input is 1.
Pin 3 (input, bit width calculated based on screen width):
X coordinate of the pixel to be written (from 0 to screen width - 1).
Pin 4 (input, bit width calculated based on screen height):
Y coordinate of the pixel to be written (from 0 to screen height - 1).
Pin 5 (input, bit width determined by color format):
Pixel color data (Data). The color value to be written to the selected coordinate.

Attributes

Cursor
Allows enabling a blinking dot at the position of the last written pixel for visual debugging (Blinking dot / Without cursor).
Reset
The type of reset signal: Asynchronous (immediate level-triggered reset) or Synchronous (edge-triggered reset on CLK rising edge).
Color Mode
Specifies the color encoding format on the Data input:
  • 888 RGB (24 bit) — 24-bit full color mode.
  • 555 RGB (15 bit) — 5 bits for each red, green, and blue channel.
  • 565 RGB (16 bit) — 5 bits for red, 6 bits for green, 5 bits for blue.
  • 444 RGB (12 bit) — 4 bits for each red, green, and blue channel.
  • 8-Color RGB (3 bit) — Simple 3-bit scheme (8 basic colors).
  • Atari 2600 (7 bit) — Color palette of the Atari 2600 console.
  • XTerm16 (4 bit) — 16 standard terminal colors.
  • XTerm256 (8 bit) — 256 terminal colors.
  • Grayscale (4 bit) — 16 shades of gray.
  • VGA256 (8 bit) — Standard 256-color VGA palette.
Resolution
Specifies the screen size in pixels (e.g., 128x128, 256x256, 320x240, 640x480, etc., or Custom).
Width
The width of the screen in pixels (only available with custom resolution).
Height
The height of the screen in pixels (only available with custom resolution).
Scale
Zoom factor for displaying pixels on the canvas (from 1 to 8).

Back to Library Reference