The IO data path is only 8 bit wide.
Signed-off-by: Michael Walle <[email protected]>
---
cores/softusb/rtl/softusb_timer.v | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/cores/softusb/rtl/softusb_timer.v
b/cores/softusb/rtl/softusb_timer.v
index ee8a7ea..c0cde2e 100644
--- a/cores/softusb/rtl/softusb_timer.v
+++ b/cores/softusb/rtl/softusb_timer.v
@@ -29,9 +29,9 @@ reg [31:0] counter;
always @(posedge usb_clk) begin
if(usb_rst) begin
counter <= 32'd0;
- io_do <= 32'd0;
+ io_do <= 8'd0;
end else begin
- io_do <= 32'd0;
+ io_do <= 8'd0;
case(io_a)
6'h20: io_do <= counter[7:0];
6'h21: io_do <= counter[15:8];
--
1.7.2.5
_______________________________________________
http://lists.milkymist.org/listinfo.cgi/devel-milkymist.org
IRC: #milkymist@Freenode