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

Subversion Repositories orsoc_graphics_accelerator

[/] [orsoc_graphics_accelerator/] [trunk/] [rtl/] [verilog/] [gfx/] [gfx_params.v] - Blame information for rev 6

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 6 Orka
/*
2
ORSoC GFX accelerator core
3
Copyright 2012, ORSoC, Per Lenander, Anton Fosselius.
4
 
5
Parameter file
6
 
7
 This file is part of orgfx.
8
 
9
 orgfx is free software: you can redistribute it and/or modify
10
 it under the terms of the GNU Lesser General Public License as published by
11
 the Free Software Foundation, either version 3 of the License, or
12
 (at your option) any later version.
13
 
14
 orgfx is distributed in the hope that it will be useful,
15
 but WITHOUT ANY WARRANTY; without even the implied warranty of
16
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
 GNU Lesser General Public License for more details.
18
 
19
 You should have received a copy of the GNU Lesser General Public License
20
 along with orgfx.  If not, see <http://www.gnu.org/licenses/>.
21
 
22
*/
23
 
24
  // Declarations of register addresses:
25
  parameter GFX_CONTROL        = 8'h00;
26
  parameter GFX_STATUS         = 8'h04;
27
  parameter GFX_ALPHA          = 8'h08;
28
  parameter GFX_COLORKEY       = 8'h0c;
29
 
30
  parameter GFX_TARGET_BASE    = 8'h10;
31
  parameter GFX_TARGET_SIZE_X  = 8'h14;
32
  parameter GFX_TARGET_SIZE_Y  = 8'h18;
33
 
34
  parameter GFX_TEX0_BASE      = 8'h1c;
35
  parameter GFX_TEX0_SIZE_X    = 8'h20;
36
  parameter GFX_TEX0_SIZE_Y    = 8'h24;
37
 
38
  parameter GFX_SRC_PIXEL0_X   = 8'h28;
39
  parameter GFX_SRC_PIXEL0_Y   = 8'h2c;
40
  parameter GFX_SRC_PIXEL1_X   = 8'h30;
41
  parameter GFX_SRC_PIXEL1_Y   = 8'h34;
42
 
43
  parameter GFX_DEST_PIXEL_X   = 8'h38;
44
  parameter GFX_DEST_PIXEL_Y   = 8'h3c;
45
  parameter GFX_DEST_PIXEL_Z   = 8'h40;
46
 
47
  parameter GFX_AA             = 8'h44;
48
  parameter GFX_AB             = 8'h48;
49
  parameter GFX_AC             = 8'h4c;
50
  parameter GFX_TX             = 8'h50;
51
  parameter GFX_BA             = 8'h54;
52
  parameter GFX_BB             = 8'h58;
53
  parameter GFX_BC             = 8'h5c;
54
  parameter GFX_TY             = 8'h60;
55
  parameter GFX_CA             = 8'h64;
56
  parameter GFX_CB             = 8'h68;
57
  parameter GFX_CC             = 8'h6c;
58
  parameter GFX_TZ             = 8'h70;
59
 
60
  parameter GFX_CLIP_PIXEL0_X  = 8'h74;
61
  parameter GFX_CLIP_PIXEL0_Y  = 8'h78;
62
  parameter GFX_CLIP_PIXEL1_X  = 8'h7c;
63
  parameter GFX_CLIP_PIXEL1_Y  = 8'h80;
64
 
65
  parameter GFX_COLOR0         = 8'h84;
66
  parameter GFX_COLOR1         = 8'h88;
67
  parameter GFX_COLOR2         = 8'h8c;
68
 
69
  parameter GFX_U0             = 8'h90;
70
  parameter GFX_V0             = 8'h94;
71
  parameter GFX_U1             = 8'h98;
72
  parameter GFX_V1             = 8'h9c;
73
  parameter GFX_U2             = 8'ha0;
74
  parameter GFX_V2             = 8'ha4;
75
 
76
  parameter GFX_ZBUFFER_BASE   = 8'ha8;
77
 
78
  // Declare control register bits
79
  parameter GFX_CTRL_COLOR_DEPTH = 0;
80
  parameter GFX_CTRL_TEXTURE  = 2;
81
  parameter GFX_CTRL_BLENDING = 3;
82
  parameter GFX_CTRL_COLORKEY = 4;
83
  parameter GFX_CTRL_CLIPPING = 5;
84
  parameter GFX_CTRL_ZBUFFER  = 6;
85
 
86
  parameter GFX_CTRL_RECT     = 8;
87
  parameter GFX_CTRL_LINE     = 9;
88
  parameter GFX_CTRL_TRI      = 10;
89
  parameter GFX_CTRL_CURVE    = 11;
90
  parameter GFX_CTRL_INTERP   = 12;
91
  parameter GFX_CTRL_INSIDE   = 13;
92
 
93
  parameter GFX_CTRL_ACTIVE_POINT    = 16;
94
  parameter GFX_CTRL_FORWARD_POINT   = 18;
95
  parameter GFX_CTRL_TRANSFORM_POINT = 19;
96
 
97
  // Declare status register bits
98
  parameter GFX_STAT_BUSY     = 0;
99
 

powered by: WebSVN 2.1.0

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