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)