OpenCores
URL https://opencores.org/ocsvn/yavga/yavga/trunk

Subversion Repositories yavga

[/] [yavga/] [trunk/] [vhdl/] [yavga_pkg.vhd] - Blame information for rev 25

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 sandroamt
--      Package File Template
2
--
3
--      Purpose: This package defines supplemental types, subtypes, 
4
--               constants, and functions 
5
 
6
 
7
library IEEE;
8
use IEEE.STD_LOGIC_1164.all;
9
 
10
package yavga_pkg is
11
 
12
-- Declare constants
13
 
14
  -- chars address and data bus size
15
  constant c_CHR_ADDR_BUS_W : integer := 11;
16
  constant c_CHR_DATA_BUS_W : integer := 32;
17
 
18
  -- internal used chars address and data bus size 
19
  constant c_INTCHR_ADDR_BUS_W : integer := 13;
20
  constant c_INTCHR_DATA_BUS_W : integer := 8;
21
 
22
  -- internal ROM chmaps address and data bus
23
  constant c_INTCHMAP_ADDR_BUS_W : integer := 11;
24
  constant c_INTCHMAP_DATA_BUS_W : integer := 8;
25
 
26
  -- waveform address and data bus size
27
  constant c_WAVFRM_ADDR_BUS_W : integer := 10;
28
  constant c_WAVFRM_DATA_BUS_W : integer := 16;
29
 
30
  constant c_GRID_SIZE : std_logic_vector(6 downto 0) := "1111111";
31
  constant c_GRID_BIT  : integer                      := 6;
32
 
33
  --
34
  -- horizontal timing signals (in pixels count )
35
  constant c_H_DISPLAYpx    : integer := 800;
36
  constant c_H_BACKPORCHpx  : integer := 63;  -- also 60;
37
  constant c_H_SYNCTIMEpx   : integer := 120;
38
  constant c_H_FRONTPORCHpx : integer := 56;  --also 60;
39
  constant c_H_PERIODpx     : integer := c_H_DISPLAYpx +
40
                                         c_H_BACKPORCHpx +
41
                                         c_H_SYNCTIMEpx +
42
                                         c_H_FRONTPORCHpx;
43
 
44
  --
45
  -- vertical timing signals (in lines count)
46
  constant c_V_DISPLAYln    : integer := 600;
47
  constant c_V_BACKPORCHln  : integer := 23;
48
  constant c_V_SYNCTIMEln   : integer := 6;
49
  constant c_V_FRONTPORCHln : integer := 37;
50
  constant c_V_PERIODln     : integer := c_V_DISPLAYln +
51
                                         c_V_BACKPORCHln +
52
                                         c_V_SYNCTIMEln +
53
                                         c_V_FRONTPORCHln;
54
 
55
 
56
--  constant c_CHARS_WIDTH: std_logic_vector(2 downto 0) := "111";
57
--  constant c_CHARS_HEIGHT: std_logic_vector(3 downto 0) := "1111";
58
--  constant c_CHARS_COLS: std_logic_vector(6 downto 0) := "1100011";
59
--  constant c_CHARS_ROWS: std_logic_vector(5 downto 0) := "100100";
60
 
61
  -- to manage the background and cursor colors
62
  constant c_BG_CUR_COLOR_ADDR : std_logic_vector(12 downto 0) := "0000001101100";  -- 108 BG:5..3 CUR:2..0
63
 
64
  -- to manage the cursor position  
65
  constant c_CURS_XY1 : std_logic_vector(12 downto 0) := "0000001101101";  -- 109
66
  constant c_CURS_XY2 : std_logic_vector(12 downto 0) := "0000001101110";  -- 110
67
  constant c_CURS_XY3 : std_logic_vector(12 downto 0) := "0000001101111";  -- 111
68
 
69
end yavga_pkg;
70
 
71
 
72
package body yavga_pkg is
73
 
74
end yavga_pkg;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.