PageRenderTime 26ms CodeModel.GetById 17ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

/drm/trunk/debug/subblocks/multi_test_unit_rtl/top_rs_rtl.v

http://github.com/zaqwes8811/decoder-reed-solomon
V | 122 lines | 93 code | 0 blank | 29 comment | 0 complexity | df768405feb9818f3a34ab26d6869ae7 MD5 | raw file
  1/**
  2  File: top_rs_rtl.v
  3  
  4  Abstract: ??????? ?????????? ??? ????????????.
  5    ? ??? ??????? ? ???????? ??????. 
  6  
  7  Connect:
  8    top_rs_rtl 
  9      label_rs_full(
 10        .clk(clk), .rst(rst), .clk_ena(clk_ena),
 11        // control //
 12        .rs_master(rs_master),  // ?????? ?????????? ?????? ???? ???. ??????
 13        // out
 14        .rs_slave(rs_slave),  // ?????? ???. ????. ???? ??. ? ??????? ??????
 15        // stream //
 16        // out 
 17        // tester - ????? ????????? ??????+??????
 18        .iword(iword),
 19        .ipointer(ipointer),
 20        // decoder - ?????? ?????? ????????
 21        .oword(oword),  // ???????? ??????
 22        .mask(mask),  // ????? ? ?????????? ??????
 23        .opointer(opointer)  // ????????? ?????? ????? ? ??????
 24      );
 25  
 26  Depends:
 27
 28*/
 29`include "vconst.v"
 30module top_rs_rtl(
 31  clk, rst, clk_ena,
 32  // control //
 33  rs_master,  // ?????? ?????????? ?????? ???? ???. ??????
 34  kes_master,
 35  // out
 36  rs_slave,  // ?????? ???. ????. ???? ??. ? ??????? ??????
 37  
 38  // stream //
 39  // out 
 40  // tester - ????? ????????? ??????+??????
 41  iword,
 42  ipointer,
 43  // decoder - ?????? ?????? ????????
 44  degree,  // ???????
 45  oword,  // ???????? ??????
 46  mask,  // ????? ? ?????????? ??????
 47  opointer  // ????????? ?????? ????? ? ??????
 48);
 49  input clk, rst, clk_ena;
 50
 51  // rs_decoder
 52  output rs_master; 
 53  output [`WIDTH-1:0] oword;
 54  output [`WIDTH-1:0] mask;
 55  output [`WIDTH-1:0] opointer;
 56  output [`DEGREE-1:0] degree;  // ???????
 57  
 58  // tester
 59  output [`WIDTH-1:0] iword;
 60    wire [`WIDTH-1:0] iword_w;
 61      assign iword = iword_w;
 62  output rs_slave;
 63    wire rs_slave_w;  
 64      assign rs_slave = rs_slave_w;
 65  output kes_master;
 66    wire kes_master_w;
 67	  assign kes_master = kes_master_w;
 68  output [`WIDTH-1:0] ipointer;
 69    wire [`WIDTH-1:0] ipointer_w;
 70      assign ipointer = ipointer_w;
 71
 72  // local //
 73  // SC //
 74  wire cs_master;
 75  wire [2*`ST-1:0] psindroms;
 76  wire [`WIDTH-1:0] p1sindroms;
 77  wire [`WIDTH-1:0] rsout_sind_test;
 78  // KES // // FIFO //
 79  wire [`WIDTH-1:0] fifo_out;
 80  // CSEE //
 81  wire [`WIDTH-1:0] lam_value;
 82  wire [`WIDTH-1:0] xderx_value;
 83  wire [`WIDTH-1:0] ome_value;
 84  wire [`WIDTH-1:0] pow_add_value; 
 85  
 86  // Connect //
 87  rs_tb_rtl 
 88    rs_rs_rs(
 89      .clk(clk), .rst(rst), .clk_ena(clk_ena),
 90      // control ///
 91      // out
 92      .st_in(rs_slave),  // ?????? ?????? ??????
 93      .addr(ipointer_w),
 94      // stream ///
 95      .iword(iword_w)  // ???????? ?????
 96    );
 97  /// *
 98  rs_decoder_rtl 
 99    label_rs(
100      .clk(clk), .rst(rst), .clk_ena(clk_ena),
101      // control ///
102      .rs_slave(rs_slave),
103      .rs_master(rs_master),  // ?????? ??????
104      // dataflow ////
105      .iword(iword_w),
106      .oword(oword),  // ???????? ????? ??????
107      // test out ///
108      // sc //
109      .psindroms(p1sindroms),
110      .sc_master(sc_master),
111      // kes //
112      .kes_master(kes_master_w),
113      // csee //
114      .lam_value(mask), .xderx_value(xderx_value),
115      .ome_value(ome_value), .pow_add_value(pow_add_value),
116	  .degree(degree),
117      // fifo //
118      .fifo_out(fifo_out),
119      .opointer(opointer)
120    );
121  //* /
122endmodule