Changeset 91 for trunk/MultiChannelUSB/control.v
- Timestamp:
- Feb 28, 2010, 11:35:16 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MultiChannelUSB/control.v
r90 r91 183 183 buffer[1] <= 8'd0; 184 184 int_bus_cntr <= 32'd0; 185 state <= 5'd7;186 185 end 187 186 else 188 187 begin 189 buffer[0] <= 8'd 2;188 buffer[0] <= 8'd0; 190 189 buffer[1] <= 8'd0; 191 state <= 5'd6;192 end190 end 191 state <= 5'd7; 193 192 end 194 193 … … 197 196 buffer[0] <= bus_miso[7:0]; 198 197 buffer[1] <= bus_miso[15:8]; 198 int_bus_addr <= int_bus_addr + 32'd1; 199 int_bus_cntr <= int_bus_cntr - 32'd1; 199 200 state <= 5'd6; 200 201 end … … 202 203 6: 203 204 begin 204 int_bus_addr <= int_bus_addr + 32'd1;205 205 state <= 5'd7; 206 206 end … … 208 208 7: 209 209 begin 210 int_data <= buffer[0]; 211 int_wrreq <= 1'b1; 212 state <= 5'd8; 213 end 214 215 8: 216 begin 210 217 if (~tx_full) 211 218 begin 212 int_data <= buffer[0]; 213 int_wrreq <= 1'b1; 214 state <= 5'd8; 215 end 216 end 217 218 8: 219 begin 220 int_data <= buffer[1]; 221 state <= 5'd9; 219 int_data <= buffer[1]; 220 state <= 5'd9; 221 end 222 222 end 223 223 … … 227 227 begin 228 228 int_wrreq <= 1'b0; 229 if (|int_bus_cntr) 230 begin 231 state <= 5'd5; 232 int_bus_cntr <= int_bus_cntr - 32'd1; 233 end 234 else 235 begin 236 state <= 5'd0; 237 end 229 state <= 5'd10; 230 end 231 end 232 233 10: 234 begin 235 if (|int_bus_cntr) 236 begin 237 state <= 5'd5; 238 end 239 else 240 begin 241 state <= 5'd0; 238 242 end 239 243 end
Note:
See TracChangeset
for help on using the changeset viewer.