Index: trunk/MultiChannelUSB/configuration.v
===================================================================
--- trunk/MultiChannelUSB/configuration.v	(revision 98)
+++ trunk/MultiChannelUSB/configuration.v	(revision 99)
@@ -4,5 +4,5 @@
 
 		input	wire			bus_ssel, bus_wren,
-		input	wire	[3:0]	bus_addr,
+		input	wire	[4:0]	bus_addr,
 		input	wire	[15:0]	bus_mosi,
 
@@ -10,13 +10,12 @@
 		output	wire			bus_busy,
 		
-		output  wire	[255:0]	cfg_bits
+		output  wire	[511:0]	cfg_bits
 	);
 
-	wire 	[15:0]	int_ssel_wire;
+	wire 	[31:0]	int_ssel_wire;
 	wire	[15:0]	int_miso_wire;
 	reg		[15:0]	int_miso_reg;
 
-	wire	[15:0]	int_q_wire [15:0];
-	wire 	[255:0]	int_bits_wire;
+	wire 	[511:0]	int_bits_wire;
 
 	integer i;
@@ -24,7 +23,6 @@
 
 	generate
-		for (j = 0; j < 16; j = j + 1)
+		for (j = 0; j < 32; j = j + 1)
 		begin : BUS_OUTPUT
-			assign int_bits_wire[j*16+15:j*16] = int_q_wire[j];
 			lpm_ff #(
 				.lpm_fftype("DFF"),
@@ -35,5 +33,5 @@
 				.clock(clock),
 				.data(bus_mosi),
-				.q(int_q_wire[j]),
+				.q(int_bits_wire[j*16+15:j*16]),
 				.aclr(),
 				.aload(),
@@ -45,8 +43,8 @@
 
 	lpm_mux #(
-		.lpm_size(16),
+		.lpm_size(32),
 		.lpm_type("LPM_MUX"),
 		.lpm_width(16),
-		.lpm_widths(4)) bus_miso_mux_unit (
+		.lpm_widths(5)) bus_miso_mux_unit (
 		.sel(bus_addr),
 		.data(int_bits_wire),
@@ -55,7 +53,7 @@
 
 	lpm_decode #(
-		.lpm_decodes(16),
+		.lpm_decodes(32),
 		.lpm_type("LPM_DECODE"),
-		.lpm_width(4)) lpm_decode_unit (
+		.lpm_width(5)) lpm_decode_unit (
 		.data(bus_addr),
 		.eq(int_ssel_wire),
