diff --git a/doc/config.rst b/doc/config.rst index 89e1d4f..efc2d4d 100644 --- a/doc/config.rst +++ b/doc/config.rst @@ -10,8 +10,8 @@ Registers Register Address =============== ============= CONFIG BASE_IO + 36 -FB_ADDR BASE_IO + 44 -VSYNC BASE_IO + 48 +FB_ADDR BASE_IO + 40 +VSYNC BASE_IO + 44 =============== ============= CONFIG diff --git a/doc/index.rst b/doc/index.rst index acea1ac..fca6a6f 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -16,8 +16,6 @@ Graphite System led.rst uart.rst sd_card.rst - keyboard.rst - mouse.rst graphite.rst config.rst diff --git a/doc/keyboard.rst b/doc/keyboard.rst deleted file mode 100644 index 9bb0919..0000000 --- a/doc/keyboard.rst +++ /dev/null @@ -1,40 +0,0 @@ -Keyboard -======== - -PS/2 keyboard. - -Registers ---------- - -=============== ============= -Register Address -=============== ============= -KEYBOARD_STATUS BASE_IO + 24 -KEYBOARD_DATA BASE_IO + 28 -=============== ============= - -KEYBOARD_STATUS -^^^^^^^^^^^^^^^ - -Read: - -===== ============================ -Field Description -===== ============================ -[28] Key available? -===== ============================ - -Write: - - -KEYBOARD_DATA -^^^^^^^^^^^^^ - -Read: - -====== ============================ -Field Description -====== ============================ -[7:0] Character -====== ============================ - -Write: - diff --git a/doc/memory_map.rst b/doc/memory_map.rst index e9c415c..4ede1e7 100644 --- a/doc/memory_map.rst +++ b/doc/memory_map.rst @@ -18,9 +18,9 @@ CLOCK BASE_IO + 0 LED BASE_IO + 4 UART BASE_IO + 8 SD_CARD BASE_IO + 16 -KEYBOARD BASE_IO + 24 GRAPHITE BASE_IO + 32 -CONFIG BASE_IO + 36 -MOUSE BASE_IO + 40 -CONFIG (2) BASE_IO + 44 +CONFIG (1) BASE_IO + 36 +CONFIG (2) BASE_IO + 40 +CONFIG (3) BASE_IO + 44 +USB BASE_IO + 64 ================== =============== diff --git a/doc/mouse.rst b/doc/mouse.rst deleted file mode 100644 index 18a6b97..0000000 --- a/doc/mouse.rst +++ /dev/null @@ -1,45 +0,0 @@ -Mouse -===== - -PS/2 mouse. - -Registers ---------- - -=============== ============= -Register Address -=============== ============= -MOUSE_STATUS BASE_IO + 40 -MOUSE_DATA BASE_IO + 44 -=============== ============= - -MOUSE_STATUS -^^^^^^^^^^^^ - -Read: - -===== ============================ -Field Description -===== ============================ -[28] Mouse event available? -===== ============================ - -Write: - - -MOUSE_DATA -^^^^^^^^^^ - -Read: - -======= ============================ -Field Description -======= ============================ -[7:0] Delta Z -[15:8] Delta Y -[23:16] Delta X -[24] Left button pressed? -[25] Right button pressed? -[26] Middle button pressed? -======= ============================ - -Write: - diff --git a/soc/rtl/soc_top.sv b/soc/rtl/soc_top.sv index 46578bf..8b96a39 100644 --- a/soc/rtl/soc_top.sv +++ b/soc/rtl/soc_top.sv @@ -425,7 +425,8 @@ module soc_top #( (iowadr == 7) ? {32'b0} : (iowadr == 8) ? {31'b0, graphite_cmd_axis_tready} : (iowadr == 9) ? {16'(H_RES), 16'(V_RES)} : - (iowadr == 12) ? fb_addr : + (iowadr == 10) ? fb_addr : + (iowadr == 11) ? {31'b0, vga_vsync} : (iowadr >= 16 && iowadr < 32) ? sie_di : 32'd0); assign dataTx = outbus[7:0]; @@ -471,7 +472,7 @@ module soc_top #( end else if (iowadr == 9) begin if (outbus[0]) req_flush_cache <= 1'b1; - end else if (iowadr == 12) begin + end else if (iowadr == 10) begin fb_addr <= outbus[31:0]; use_graphite_front_addr <= 1'b0; end