From de0a8c6e1776a1301833c9a22e07929dd509fdf2 Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Sun, 19 Oct 2008 21:10:51 +0000 Subject: [PATCH] Minor changes git-svn-id: http://moon:8086/svn/vhdl/trunk@79 cc03376c-175c-47c8-b038-4cd826a8556b --- lib/VGA_ctrl/src/vga_types.vhd | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/VGA_ctrl/src/vga_types.vhd b/lib/VGA_ctrl/src/vga_types.vhd index 44cecbd..e778405 100644 --- a/lib/VGA_ctrl/src/vga_types.vhd +++ b/lib/VGA_ctrl/src/vga_types.vhd @@ -12,10 +12,14 @@ use IEEE.MATH_REAL.ALL; package vga_types is -- Constants - + constant VGA_NUM_CH : natural := 2; + -- Types - type color_range_t is (r, g, b); + type color_range_t is (r, g, b, a); type color_t is array (color_range_t) of unsigned(7 downto 0); + type color_array_t is array (0 to VGA_NUM_CH-1) of color_t; + + type color_op_t is (op_over, op_xor, op_alpha); type scan_timespec_t is record @@ -42,8 +46,8 @@ package vga_types is ( f_pxl_clk => 100E6, nfps => 6, - ts_h => (8,5,2,3,'0'), - ts_v => (6,4,2,3,'0') + ts_h => (80,5,2,3,'0'), + ts_v => (60,4,2,3,'0') ); -- 640 x 480 @ 60 Hz (not recommended)