Skip to content

Commit

Permalink
Fix config registers
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Cliche committed Nov 1, 2024
1 parent d379f7f commit 4ab72a6
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 95 deletions.
4 changes: 2 additions & 2 deletions doc/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ Graphite System
led.rst
uart.rst
sd_card.rst
keyboard.rst
mouse.rst
graphite.rst
config.rst

Expand Down
40 changes: 0 additions & 40 deletions doc/keyboard.rst

This file was deleted.

8 changes: 4 additions & 4 deletions doc/memory_map.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
================== ===============
45 changes: 0 additions & 45 deletions doc/mouse.rst

This file was deleted.

5 changes: 3 additions & 2 deletions soc/rtl/soc_top.sv
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4ab72a6

Please sign in to comment.