Changeset 188 for trunk/3DEES/classifier.v
- Timestamp:
- Mar 25, 2014, 12:44:12 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/3DEES/classifier.v
r186 r188 13 13 14 14 reg out_flag_reg [2:0], out_flag_next [2:0]; 15 reg [ 7:0] out_data_reg [2:0], out_data_next [2:0];15 reg [10:0] out_data_reg [2:0], out_data_next [2:0]; 16 16 reg [5:0] inp_flag_reg, inp_flag_next; 17 17 reg [width-1:0] inp_data_reg [5:0], inp_data_next [5:0]; … … 69 69 for (i = 0; i < 3; i = i + 1) 70 70 begin 71 out_data_reg[i] <= {( 7){1'b0}};71 out_data_reg[i] <= {(11){1'b0}}; 72 72 out_flag_reg[i] <= 1'b0; 73 73 end … … 153 153 for (i = 0; i < 3; i = i + 1) 154 154 begin 155 out_data_next[i] = {( 7){1'b0}};155 out_data_next[i] = {(11){1'b0}}; 156 156 out_flag_next[i] = 1'b0; 157 157 end … … 165 165 else 166 166 begin 167 out_data_next[0] = {( 7){1'b0}};167 out_data_next[0] = {(11){1'b0}}; 168 168 out_data_next[1] = out_data_reg[0]; 169 out_data_next[2] = out_data_reg[1];169 out_data_next[2] = {3'd0, out_data_reg[1][10:5], 2'd0} + {6'd0, out_data_reg[1][4:0]}; 170 170 171 171 out_flag_next[0] = 1'b1; … … 211 211 case (int_temp_reg[1][3:0]) 212 212 // S1_F, electron 213 4'b0001: out_data_next[0][ 7:5] = 3'b100;213 4'b0001: out_data_next[0][10:5] = 6'b100000; 214 214 215 215 // S1_F, proton 216 4'b0010: out_data_next[0][ 7:5] = 3'b101;216 4'b0010: out_data_next[0][10:5] = 6'b100101; 217 217 218 218 // S1_S, electron 219 4'b0100: out_data_next[0][ 7:5] = 3'b110;219 4'b0100: out_data_next[0][10:5] = 6'b101010; 220 220 221 221 // S1_S, proton 222 4'b1000: out_data_next[0][ 7:5] = 3'b111;222 4'b1000: out_data_next[0][10:5] = 6'b101111; 223 223 224 224 default: out_flag_next[0] = 1'b0; … … 231 231 // assign out_data = {1'd0, int_comp_wire[0], int_temp_reg[1][3:0]}; 232 232 // assign out_data = {1'd0, int_temp_reg[0][4:0]}; 233 assign out_data = out_data_reg[2] ;233 assign out_data = out_data_reg[2][7:0]; 234 234 assign out_flag = out_flag_reg[2]; 235 235
Note:
See TracChangeset
for help on using the changeset viewer.