Changeset 125 for sandbox/MultiChannelUSB/deconv.v
- Timestamp:
- Feb 21, 2011, 6:11:40 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/MultiChannelUSB/deconv.v
r123 r125 9 9 input wire clock, frame, reset, 10 10 input wire [3*size*6-1:0] del_data, 11 input wire [3*size* 8-1:0] amp_data,11 input wire [3*size*4-1:0] amp_data, 12 12 input wire [3*size*16-1:0] tau_data, 13 13 input wire [3*size*width-1:0] inp_data, … … 43 43 wire [size*width-1:0] inp_data_wire [3:0]; 44 44 45 reg [size* 8-1:0] amp_data_reg, amp_data_next;46 wire [size* 8-1:0] amp_data_wire [2:0];45 reg [size*4-1:0] amp_data_reg, amp_data_next; 46 wire [size*4-1:0] amp_data_wire [2:0]; 47 47 48 48 reg [size*16-1:0] tau_data_reg, tau_data_next; … … 58 58 assign inp_data_wire[1][j*width+width-1:j*width] = inp_data[(3*j+1)*width+width-1:(3*j+1)*width]; 59 59 assign inp_data_wire[2][j*width+width-1:j*width] = inp_data[(3*j+2)*width+width-1:(3*j+2)*width]; 60 assign amp_data_wire[0][j* 8+8-1:j*8] = amp_data[(3*j+0)*8+8-1:(3*j+0)*8];61 assign amp_data_wire[1][j* 8+8-1:j*8] = amp_data[(3*j+1)*8+8-1:(3*j+1)*8];62 assign amp_data_wire[2][j* 8+8-1:j*8] = amp_data[(3*j+2)*8+8-1:(3*j+2)*8];60 assign amp_data_wire[0][j*4+4-1:j*4] = amp_data[(3*j+0)*4+4-1:(3*j+0)*4]; 61 assign amp_data_wire[1][j*4+4-1:j*4] = amp_data[(3*j+1)*4+4-1:(3*j+1)*4]; 62 assign amp_data_wire[2][j*4+4-1:j*4] = amp_data[(3*j+2)*4+4-1:(3*j+2)*4]; 63 63 assign tau_data_wire[0][j*16+16-1:j*16] = tau_data[(3*j+0)*16+16-1:(3*j+0)*16]; 64 64 assign tau_data_wire[1][j*16+16-1:j*16] = tau_data[(3*j+1)*16+16-1:(3*j+1)*16]; … … 127 127 .lpm_pipeline(3), 128 128 .lpm_widtha(width2), 129 .lpm_widthb( 8),129 .lpm_widthb(4), 130 130 .lpm_widthp(width3)) mult_unit_2 ( 131 131 .clock(clock), 132 132 .clken(int_wren_reg), 133 133 .dataa(acc_data_reg[0][j*width2+width2-1:j*width2]), 134 .datab(amp_data_reg[j* 8+8-1:j*8]),134 .datab(amp_data_reg[j*4+4-1:j*4]), 135 135 .result(mul_data_wire[1][j*width3+width3-1:j*width3])); 136 136 … … 213 213 del_addr_reg <= 6'd0; 214 214 int_addr_reg <= 8'd0; 215 amp_data_reg <= 8'd0;215 amp_data_reg <= 4'd0; 216 216 tau_data_reg <= 16'd0; 217 217 for(i = 0; i <= 2; i = i + 1) … … 272 272 del_addr_next = 6'd0; 273 273 int_addr_next = 8'd0; 274 amp_data_next = 8'd0;274 amp_data_next = 4'd0; 275 275 tau_data_next = 16'd0; 276 276 for(i = 0; i <= 2; i = i + 1)
Note:
See TracChangeset
for help on using the changeset viewer.