tctm.v 5.39 KB
// Verilog model created from schematic tctm.sch
// 2002/06/04 7:15:28 PM
// vericode v2.1


     // Schematic 'tctm.sch'
module tctm;
  wire [15:0]  T;
  wire [15:0]  W;
  wire [4:0]  MIN_LEVEL;
  wire [2:0]  MAX_LEVEL;
  wire [2:0]  PRIM_TILE;
  wire [8:0]  RA;
  wire [8:0]  GA;
  wire [8:0]  BA;
  wire [8:0]  AA;
  wire [8:0]  RB;
  wire [8:0]  GB;
  wire [8:0]  BB;
  wire [8:0]  AB;
  wire [8:0]  RC;
  wire [8:0]  GC;
  wire [8:0]  BC;
  wire [8:0]  AC;
  wire [8:0]  RD;
  wire [8:0]  GD;
  wire [8:0]  BD;
  wire [8:0]  AD;
  wire [2:0]  TILE_ADRS;
  wire [47:0]  TILE_DATA;
  wire [7:0]  CIA;
  wire [7:0]  CIB;
  wire [7:0]  CIC;
  wire [7:0]  CID;
  wire [7:0]  B0L;
  wire [7:0]  B1L;
  wire [7:0]  B2L;
  wire [7:0]  B3L;
  wire [7:0]  B0H;
  wire [7:0]  B1H;
  wire [7:0]  B2H;
  wire [7:0]  B3H;
  wire [4:0]  A;
  wire [4:0]  BB_BA;
  wire [4:0]  C;
  wire [4:0]  D_BA;
  wire [4:0]  BB_RG;
  wire [4:0]  D_RG;
  wire [2:0]  TTYPE;
  wire [1:0]  TSIZE;
  wire [3:0]  PAL;
  wire [15:0]  SS;
  wire [9:0]  Y;
  wire [9:0]  X;
  wire [63:0]  COPY_LOAD;
  wire [7:0]  T_FRAC_BA;
  wire [7:0]  S_FRAC_BA;
  wire [7:0]  T_FRAC_RG;
  wire [7:0]  S_FRAC_RG;
  wire [8:0]  L_FRAC;
  wire  A_TWELVE;
  wire  DV;
  wire  EXIT1;
  wire  EXIT;
  wire  TLUT_EN;
  wire  A_THREE;
  wire  ODD_T;
  wire  LOAD_DV;
  wire  SWAP_BA;
  wire  SWAP_RG;
  wire  WE_TILE_ATTR;
  wire  WE_TILE_SIZE;
  wire  SHIFT_COORD;
  wire  COPY;
  wire  NCYC;
  wire  ST_SPAN;
  wire  LOAD;
  wire  TLUT_TYPE;
  wire  SAMP_TYPE;
  wire  PERSP_EN;
  wire  LOD_EN;
  wire  SHARP_EN;
  wire  DETAIL_EN;
  wire  CLK;

display DISPLAY (.AA(AA[8:0]), .AB(AB[8:0]), .AC(AC[8:0]), .AD(AD[8:0]),
           .BA(BA[8:0]), .BB(BB[8:0]), .BC(BC[8:0]), .BD(BD[8:0]),
           .DV(DV), .EXIT(EXIT), .EXIT1(EXIT1), .GA(GA[8:0]), .GB(GB[8:0]),
           .GC(GC[8:0]), .GCLK(CLK), .GD(GD[8:0]), .RA(RA[8:0]), .RB(RB[8:0]),
           .RC(RC[8:0]), .RD(RD[8:0]), .X(X[9:0]), .Y(Y[9:0]));
driver DRIVE (.COPY(COPY), .COPY_LOAD(COPY_LOAD[63:0]), .COPY_LOAD_E(LOAD_DV),
           .DETAIL_EN(DETAIL_EN), .DV(DV), .EXIT1(EXIT1), .GCLK(CLK),
           .LOAD(LOAD), .LOAD_DV(LOAD_DV), .LOD_EN(LOD_EN), .MAX_LEVEL(MAX_LEVEL[2:0]),
           .MIN_LEVEL(MIN_LEVEL[4:0]), .NCYC(NCYC), .PERSP_EN(PERSP_EN),
           .PRIM_TILE(PRIM_TILE[2:0]), .S(SS[15:0]), .SAMP_TYPE(SAMP_TYPE),
           .SHARP_EN(SHARP_EN), .SHIFT_COORD(SHIFT_COORD), .ST_SPAN(ST_SPAN),
           .T(T[15:0]), .TILE_ADRS(TILE_ADRS[2:0]), .TILE_DATA(TILE_DATA[47:0]),
           .TLUT_EN(TLUT_EN), .TLUT_TYPE(TLUT_TYPE), .W(W[15:0]),
           .WE_TILE_ATTR(WE_TILE_ATTR), .WE_TILE_SIZE(WE_TILE_SIZE),
           .X(X[9:0]), .Y(Y[9:0]));
tm TM (.A_THREE(A_THREE), .A_TWELVE(A_TWELVE), .ADRS_A(A[4:0]), .ADRS_B_BA(BB_BA[4:0]),
           .ADRS_B_RG(BB_RG[4:0]), .ADRS_BNK0H(B0H[7:0]), .ADRS_BNK0L(B0L[7:0]),
           .ADRS_BNK1H(B1H[7:0]), .ADRS_BNK1L(B1L[7:0]), .ADRS_BNK2H(B2H[7:0]),
           .ADRS_BNK2L(B2L[7:0]), .ADRS_BNK3H(B3H[7:0]), .ADRS_BNK3L(B3L[7:0]),
           .ADRS_C(C[4:0]), .ADRS_D_BA(D_BA[4:0]), .ADRS_D_RG(D_RG[4:0]),
           .ALPHA_A(AA[8:0]), .ALPHA_B(AB[8:0]), .ALPHA_C(AC[8:0]),
           .ALPHA_D(AD[8:0]), .BLUE_A(BA[8:0]), .BLUE_B(BB[8:0]),
           .BLUE_C(BC[8:0]), .BLUE_D(BD[8:0]), .CLR_IND_A(CIA[7:0]),
           .CLR_IND_B(CIB[7:0]), .CLR_IND_C(CIC[7:0]), .CLR_IND_D(CID[7:0]),
           .COPY_LOAD(COPY_LOAD[63:0]), .GCLK(CLK), .GREEN_A(GA[8:0]),
           .GREEN_B(GB[8:0]), .GREEN_C(GC[8:0]), .GREEN_D(GD[8:0]),
           .LOAD_DV(LOAD_DV), .ODD_T(ODD_T), .PALETTE(PAL[3:0]), .RED_A(RA[8:0]),
           .RED_B(RB[8:0]), .RED_C(RC[8:0]), .RED_D(RD[8:0]), .SWAP_BA(SWAP_BA),
           .SWAP_RG(SWAP_RG), .TILE_TEX_SIZE(TSIZE[1:0]), .TILE_TEX_TYPE(TTYPE[2:0]),
           .TLUT_EN(TLUT_EN), .TLUT_TYPE(TLUT_TYPE));
tc TC (.A_THREE(SWAP_RG), .A_TWELVE(S_FRAC_BA[7]), .ADRS_A(B2L[7:3]),
           .ADRS_B_BA({ A_TWELVE,  }), .ADRS_B_RG(L_FRAC[8:4]), .ADRS_BNK0H(B3H[7:0]),
           .ADRS_BNK0L(B3L[7:0]), .ADRS_BNK1H({ BB_BA[4:0], BB_BA[4:2] }),
           .ADRS_BNK1L({ BB_RG[4:0], BB_RG[4:2] }), .ADRS_BNK2H({ C[4:0], 
           C[4:2] }), .ADRS_BNK2L({ D_BA[4:0], D_BA[4:2] }), .ADRS_BNK3H({ D_RG[4:0], 
           D_RG[4:2] }), .ADRS_BNK3L({ A_THREE,  }), .ADRS_C({ ODD_T,  }), .ADRS_D_BA({ PAL[3:0], 
           PAL[3] }), .ADRS_D_RG({ SWAP_BA,  }), .CLR_IND_A(CIA[7:0]), .CLR_IND_B(CIB[7:0]),
           .CLR_IND_C(CIC[7:0]), .CLR_IND_D(CID[7:0]), .COPY(COPY),
           .DETAIL_EN(DETAIL_EN), .GCLK(CLK), .L_FRAC({ S_FRAC_RG[7:0], 
           S_FRAC_RG[7] }), .LOAD(LOAD), .LOD_EN(LOD_EN), .MAX_LEVEL(MAX_LEVEL[2:0]),
           .MIN_LEVEL(MIN_LEVEL[4:0]), .NCYC(NCYC), .ODD_T(TSIZE[1]),
           .PALETTE({ TTYPE[2:0], TTYPE[2] }), .PERSP_EN(PERSP_EN), .PRIM_TILE(PRIM_TILE[2:0]),
           .S({ TLUT_EN,  }), .S_DY(T[15:0]), .SAMP_TYPE(SAMP_TYPE), .SEL_S_DY(SHARP_EN),
           .SEL_T_DY(SHIFT_COORD), .SEL_W_DY(ST_SPAN), .SHARP_EN(SS[15]),
           .SHIFT_COORD(TILE_ADRS[2]), .ST_SPAN(TILE_DATA[47]), .SWAP_BA(T_FRAC_BA[7]),
           .SWAP_RG(T_FRAC_RG[7]), .T({ A[4:0], A[4:0], A[4:0], A[4] }),
           .T_DY({ B0H[7:0], B0H[7:0] }), .TILE_ADRS({ WE_TILE_ATTR, 
            }), .TILE_DATA({ WE_TILE_SIZE,  }), .TLUT_EN(W[15]), .W({ B1L[7:0], 
           B1L[7:0] }), .W_DY({ B2H[7:0], B2H[7:0] }), .WE_TILE_ATTR(B0L[7]),
           .WE_TILE_SIZE(B1H[7]));

endmodule