That way we have more registers addresses left for the SIE module.

Signed-off-by: Michael Walle <[email protected]>
---
 cores/softusb/rtl/softusb_timer.v |   10 +++++-----
 softusb-input/timer.h             |    8 ++++----
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/cores/softusb/rtl/softusb_timer.v 
b/cores/softusb/rtl/softusb_timer.v
index f17e640..ee8a7ea 100644
--- a/cores/softusb/rtl/softusb_timer.v
+++ b/cores/softusb/rtl/softusb_timer.v
@@ -33,12 +33,12 @@ always @(posedge usb_clk) begin
        end else begin
                io_do <= 32'd0;
                case(io_a)
-                       6'h11: io_do <= counter[7:0];
-                       6'h12: io_do <= counter[15:8];
-                       6'h13: io_do <= counter[23:16];
-                       6'h14: io_do <= counter[31:24];
+                       6'h20: io_do <= counter[7:0];
+                       6'h21: io_do <= counter[15:8];
+                       6'h22: io_do <= counter[23:16];
+                       6'h23: io_do <= counter[31:24];
                endcase
-               if(io_we & ((io_a == 6'h11)|(io_a == 6'h12)|(io_a == 
6'h13)|(io_a == 6'h14)))
+               if(io_we & ((io_a == 6'h20)|(io_a == 6'h21)|(io_a == 
6'h22)|(io_a == 6'h23)))
                        counter <= 32'd0;
                else
                        counter <= counter + 32'd1;
diff --git a/softusb-input/timer.h b/softusb-input/timer.h
index 3b315fb..39fa008 100644
--- a/softusb-input/timer.h
+++ b/softusb-input/timer.h
@@ -18,9 +18,9 @@
 #ifndef __TIMER_H
 #define __TIMER_H
 
-#define TIMER0                 0x11
-#define TIMER1                 0x12
-#define TIMER2                 0x13
-#define TIMER3                 0x14
+#define TIMER0                 0x20
+#define TIMER1                 0x21
+#define TIMER2                 0x22
+#define TIMER3                 0x23
 
 #endif /* __TIMER_H */
-- 
1.7.2.5

_______________________________________________
http://lists.milkymist.org/listinfo.cgi/devel-milkymist.org
IRC: #milkymist@Freenode

Reply via email to