rdpcmd.vh
3.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/**************************************************************************
* *
* Copyright (C) 1994, Silicon Graphics, Inc. *
* *
* These coded instructions, statements, and computer programs contain *
* unpublished proprietary information of Silicon Graphics, Inc., and *
* are protected by Federal copyright law. They may not be disclosed *
* to third parties or copied or duplicated in any form, in whole or *
* in part, without the prior written consent of Silicon Graphics, Inc. *
* *
*************************************************************************/
/////////////////////////////////////////////////////////////////////////
//
// Project Reality
//
// module: rdpcmd.vh a include file
// description: defines the opccode for each rdp command
//
//
// designer: Mike M. Cai 7/13/94
//
/////////////////////////////////////////////////////////////////////////
parameter
noop = 6'b000000, // 0 6'h0 set noop
setcimg = 6'b111111, // -1 6'h3f set color image
setmimg = 6'b111110, // -2 6'h3e set Z image
settimg = 6'b111101, // -3 6'h3d set texture image
setcombine = 6'b111100, // -4 6'h3c set combine mode
setenvcolor = 6'b111011, // -5 6'h3b set Environment color
setprimcolor = 6'b111010, // -6 6'h3a set Primitive color
setblendcolor = 6'b111001, // -7 6'h39 set Blend color
setfogcolor = 6'b111000, // -8 6'h38 set fog color
setfillcolor = 6'b110111, // -9 6'h37 set fill color
fillrect = 6'b110110, // -10 6'h36 fill rectangle
settile = 6'b110101, // -11 6'h35 set tile
loadtile = 6'b110100, // -12 6'h34 load tile
loadblock = 6'b110011, // -13 6'h33 load block
settilesize = 6'b110010, // -14 6'h32 set tile size
// loadclut = 6'b110001, // -15 6'h31 load CLIT *not defined in Robs' doc
loadtlut = 6'b110000, // -16 6'h30 load TLUT
setrdpother = 6'b101111, // -17 6'h2f set other mode
setprimdepth = 6'b101110, // -18 6'h2e set primitive depth
setscissor = 6'b101101, // -19 6'h2d set scissor
setconvert = 6'b101100, // -20 6'h2c set convert
setkeyr = 6'b101011, // -21 6'h2b set key R
setkeygb = 6'b101010, // -22 6'h2a set key GB
// rdpsync = 6'b101001, // -23 6'h29 set MDP sync
fullsync = 6'b101001, // -23 6'h29 RDP full sync
tilesync = 6'b101000, // -24 6'h28 RDP tile sync
pipesync = 6'b100111, // -25 6'h27 RDP pipe sync
loadsync = 6'b100110, // -26 6'h26 RDP load sync
texrectflip = 6'b100101, // -27 6'h25 texture rectangle y = s, x = t
texrect = 6'b100100, // -28 6'h24 texture rectangle x = s, y = t
trifill = 6'b001000, // -56 6'h8 fill triangle
trishade = 6'b001100, // -52 6'hc shade triangle
tritxtr = 6'b001010, // -54 6'ha texture triangle
trishadetxtr = 6'b001110, // -50 6'he shade, texture triangle
trifillzbuff = 6'b001001, // -55 6'h9 fill, zbuffer triangle
trishadezbuff = 6'b001101, // -51 6'hd shader, zbuffer triangle
tritxtrzbuff = 6'b001011, // -53 6'hb texture, zbuffer triangle
trishadetxtrzbuff = 6'b001111;// -49 6'hf shade, texture, zbuffer triangle