Changeset 161 for trunk/MultiChannelUSB/Paella.v
- Timestamp:
- Jan 24, 2012, 11:16:15 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MultiChannelUSB/Paella.v
r159 r161 119 119 wire [11:0] amp_data [2*N-1:0]; 120 120 121 wire [1:0] amp_mux_flag [1:0]; 122 wire [11:0] amp_mux_data [1:0]; 123 121 124 wire cnt_good [N-1:0]; 122 125 wire [15:0] cnt_bits_wire; … … 219 222 .data({int_mux_data[2], int_mux_data[1], int_mux_data[0]}), 220 223 .result(trg_mux_data)); 224 225 lpm_mux #( 226 .lpm_size(3), 227 .lpm_type("LPM_MUX"), 228 .lpm_width(14), 229 .lpm_widths(2)) amp_mux_unit_1 ( 230 .sel(cfg_bits[8][1:0]), 231 .data({ 232 {amp_flag[4], amp_data[4]}, 233 {amp_flag[2], amp_data[2]}, 234 {amp_flag[0], amp_data[0]}}), 235 .result({amp_mux_flag[0], amp_mux_data[0]})); 236 237 lpm_mux #( 238 .lpm_size(3), 239 .lpm_type("LPM_MUX"), 240 .lpm_width(14), 241 .lpm_widths(2)) amp_mux_unit_2 ( 242 .sel(cfg_bits[8][5:4]), 243 .data({ 244 {amp_flag[5], amp_data[5]}, 245 {amp_flag[3], amp_data[3]}, 246 {amp_flag[1], amp_data[1]}}), 247 .result({amp_mux_flag[1], amp_mux_data[1]})); 221 248 222 249 generate … … 302 329 .frame(sys_frame), 303 330 .reset(1'b0), 304 .cfg_data(cfg_bits[6+2*j][11:0]), 331 .cfg_data(cfg_bits[6][11:0]), 332 // .cfg_data(cfg_bits[6+2*j][11:0]), 305 333 .inp_data(clp_data[j]), 306 334 .out_flag(amp_flag[0+2*j]), … … 311 339 .frame(sys_frame), 312 340 .reset(1'b0), 313 .cfg_data(cfg_bits[7+2*j][11:0]), 341 .cfg_data(cfg_bits[7][11:0]), 342 // .cfg_data(cfg_bits[7+2*j][11:0]), 314 343 .inp_data(clp_data[j]), 315 344 .out_flag(amp_flag[1+2*j]), … … 323 352 .frame(sys_frame), 324 353 .reset(cfg_bits[0][5]), 325 .hst_good((amp_flag[0][0]) & (cnt_good[0]) & (cfg_bits[13][1])), 326 .hst_data(amp_data[0]), 327 /* 328 .hst_good((amp_flag[j]) & (cnt_good[j]) & (cfg_bits[13][1])), 329 .hst_data(amp_data[j]), 330 */ 354 .hst_good((amp_mux_flag[0][0]) & (cnt_good[0]) & (cfg_bits[13][1])), 355 .hst_data(amp_mux_data[0]), 331 356 .bus_ssel(bus_ssel[2]), 332 357 .bus_wren(bus_wren), … … 338 363 counter hst_counter_unit ( 339 364 .clock(sys_clock), 340 .frame((sys_frame) & (~amp_ flag[0][1])),365 .frame((sys_frame) & (~amp_mux_flag[0][1])), 341 366 // .frame(sys_frame), 342 367 .reset(cfg_bits[0][8]), … … 366 391 counter rmt_counter_1 ( 367 392 .clock(sys_clock), 368 .frame((sys_frame) & (~amp_ flag[1][1])),393 .frame((sys_frame) & (~amp_mux_flag[1][1])), 369 394 // .frame(sys_frame), 370 395 .reset(cfg_bits[0][12]), … … 400 425 .sclr(((sys_frame) & (cnt_good[2]) & (~cnt_good[1])) | (cfg_bits[0][11])), 401 426 .clock(sys_clock), 402 .cnt_en((sys_frame) & (amp_ flag[1][0]) & (cnt_good[1]) & (cnt_good[2]) & (cfg_bits[16][1])),427 .cnt_en((sys_frame) & (amp_mux_flag[1][0]) & (cnt_good[1]) & (cnt_good[2]) & (cfg_bits[16][1])), 403 428 .q(cnt_bits_wire)); 404 429
Note:
See TracChangeset
for help on using the changeset viewer.