cc_test.v
4.7 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
// Verilog model created from schematic cc_test.sch
// 2002/06/04 7:14:12 PM
// vericode v2.1
// Schematic 'cc_test.sch'
module cc_test;
wire [7:0] SHADE_A;
wire [7:0] PIXEL_R;
wire [7:0] PIXEL_G;
wire [7:0] PIXEL_B;
wire [8:0] PIXEL_A;
wire [3:0] PIXEL_CVG;
wire [3:0] CVG;
wire [8:0] NOISE;
wire [8:0] K5;
wire [8:0] K4;
wire [11:0] WB;
wire [11:0] WG;
wire [11:0] WR;
wire [7:0] SB;
wire [7:0] SG;
wire [7:0] SR;
wire [7:0] CB;
wire [7:0] CG;
wire [7:0] CR;
wire [7:0] EA;
wire [7:0] EB;
wire [7:0] EG;
wire [7:0] ER;
wire [7:0] PA;
wire [7:0] PB;
wire [7:0] PG;
wire [7:0] PR;
wire [8:0] P_LODF;
wire [8:0] LOD_F;
wire [8:0] TF_A;
wire [8:0] TF_B;
wire [8:0] TF_G;
wire [8:0] TF_R;
wire [7:0] ST_A;
wire [7:0] ST_B;
wire [7:0] ST_G;
wire [7:0] ST_R;
wire [2:0] C_SEL_1A;
wire [2:0] A_SEL_1A;
wire [2:0] Y_SEL_1A;
wire [2:0] X_SEL_1A;
wire [2:0] C_SEL_1R;
wire [4:0] A_SEL_1R;
wire [3:0] Y_SEL_1R;
wire [3:0] X_SEL_1R;
wire [2:0] C_SEL_0A;
wire [2:0] A_SEL_0A;
wire [2:0] Y_SEL_0A;
wire [2:0] X_SEL_0A;
wire [2:0] C_SEL_0R;
wire [4:0] A_SEL_0R;
wire [3:0] Y_SEL_0R;
wire [3:0] X_SEL_0R;
wire DITHER_EN;
wire CLK;
wire ST_SPAN;
wire NCYC;
wire KEY_EN;
wire TEX_EDGE;
wire TF_LGE1;
wire ALPHA_CVG_SEL;
wire CVG_X_A;
cc CC (.ALPHA_CVG_SELECT(ALPHA_CVG_SEL), .ALPHA_DITHER(A_SEL_0A[2:0]),
.ALPHA_DITHER_SEL(A_SEL_0R[4:3]), .CC_A_SEL_0_A(A_SEL_1A[2:0]),
.CC_A_SEL_0_R(A_SEL_1R[4:0]), .CC_A_SEL_1_A(C_SEL_0A[2:0]),
.CC_A_SEL_1_R({ C_SEL_0R[2:0], C_SEL_0R[2:1] }), .CC_C_SEL_0_A(C_SEL_1A[2:0]),
.CC_C_SEL_0_R(C_SEL_1R[2:0]), .CC_C_SEL_1_A(X_SEL_0A[2:0]),
.CC_C_SEL_1_R(X_SEL_0R[3:1]), .CC_X_SEL_0_A(X_SEL_1A[2:0]),
.CC_X_SEL_0_R(X_SEL_1R[3:0]), .CC_X_SEL_1_A(Y_SEL_0A[2:0]),
.CC_X_SEL_1_R(Y_SEL_0R[3:0]), .CC_Y_SEL_0_A(Y_SEL_1A[2:0]),
.CC_Y_SEL_0_R(Y_SEL_1R[3:0]), .CC_Y_SEL_1_A(CB[7:5]),
.CC_Y_SEL_1_R(CG[7:4]), .CENTER_B(CR[7:0]), .CENTER_G({ CVG[3:0],
CVG[3:0] }), .CENTER_R({ CVG_X_A, }), .CVG({ DITHER_EN, }), .CVG_TIMES_ALPHA(EA[7]),
.ENV_A(EB[7:0]), .ENV_B(EG[7:0]), .ENV_G(ER[7:0]), .ENV_R({ CLK,
}), .GCLK(K4[8]), .K4_COEFF(K5[8:0]), .K5_COEFF({ KEY_EN,
}), .KEY_EN(NCYC), .NCYC(NOISE[8]), .NOISE({ PA[7:0], PA[7] }),
.PIXEL_A(WR[11:3]), .PIXEL_B(PIXEL_A[8:1]), .PIXEL_CVG(PIXEL_B[7:4]),
.PIXEL_G({ P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:0]), .CVG_TIMES_ALPHA(CVG_X_A),
.DITHER_EN(DITHER_EN), .ENV_A(EA[7:0]), .ENV_B(EB[7:0]),
.ENV_G(EG[7:0]), .ENV_R(ER[7:0]), .GCLK(CLK), .K4_COEFF(K4[8:0]),
.K5_COEFF(K5[8:0]), .KEY_EN(KEY_EN), .NCYC(NCYC), .NOISE(NOISE[8:0]),
.PRIM_A(PA[7:0]), .PRIM_B(PB[7:0]), .PRIM_G(PG[7:0]), .PRIM_LOD_FRAC(P_LODF[8:0]),
.PRIM_R(PR[7:0]), .SCALE_B(SB[7:0]), .SCALE_G(SG[7:0]),
.SCALE_R(SR[7:0]), .ST_A(ST_A[7:0]), .ST_B(ST_B[7:0]),
.ST_G(ST_G[7:0]), .ST_R(ST_R[7:0]), .ST_SPAN(ST_SPAN),
.TEXTURE_EDGE_MODE(TEX_EDGE), .TF_A(TF_A[8:0]), .TF_B(TF_B[8:0]),
.TF_G(TF_G[8:0]), .TF_LGE1(TF_LGE1), .TF_LOD_FRAC(LOD_F[8:0]),
.TF_R(TF_R[8:0]), .WIDTH_B(WB[11:0]), .WIDTH_G(WG[11:0]),
.WIDTH_R(WR[11:0]));
endmodule