Changeset 99
- Timestamp:
- Mar 12, 2010, 11:57:35 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MultiChannelUSB/configuration.v
r91 r99 4 4 5 5 input wire bus_ssel, bus_wren, 6 input wire [ 3:0] bus_addr,6 input wire [4:0] bus_addr, 7 7 input wire [15:0] bus_mosi, 8 8 … … 10 10 output wire bus_busy, 11 11 12 output wire [ 255:0] cfg_bits12 output wire [511:0] cfg_bits 13 13 ); 14 14 15 wire [ 15:0] int_ssel_wire;15 wire [31:0] int_ssel_wire; 16 16 wire [15:0] int_miso_wire; 17 17 reg [15:0] int_miso_reg; 18 18 19 wire [15:0] int_q_wire [15:0]; 20 wire [255:0] int_bits_wire; 19 wire [511:0] int_bits_wire; 21 20 22 21 integer i; … … 24 23 25 24 generate 26 for (j = 0; j < 16; j = j + 1)25 for (j = 0; j < 32; j = j + 1) 27 26 begin : BUS_OUTPUT 28 assign int_bits_wire[j*16+15:j*16] = int_q_wire[j];29 27 lpm_ff #( 30 28 .lpm_fftype("DFF"), … … 35 33 .clock(clock), 36 34 .data(bus_mosi), 37 .q(int_ q_wire[j]),35 .q(int_bits_wire[j*16+15:j*16]), 38 36 .aclr(), 39 37 .aload(), … … 45 43 46 44 lpm_mux #( 47 .lpm_size( 16),45 .lpm_size(32), 48 46 .lpm_type("LPM_MUX"), 49 47 .lpm_width(16), 50 .lpm_widths( 4)) bus_miso_mux_unit (48 .lpm_widths(5)) bus_miso_mux_unit ( 51 49 .sel(bus_addr), 52 50 .data(int_bits_wire), … … 55 53 56 54 lpm_decode #( 57 .lpm_decodes( 16),55 .lpm_decodes(32), 58 56 .lpm_type("LPM_DECODE"), 59 .lpm_width( 4)) lpm_decode_unit (57 .lpm_width(5)) lpm_decode_unit ( 60 58 .data(bus_addr), 61 59 .eq(int_ssel_wire),
Note:
See TracChangeset
for help on using the changeset viewer.