aboutsummaryrefslogtreecommitdiffstats
path: root/atk16_fpga/top.v
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2024-12-30 23:04:27 +0200
committerJan Tuomi <jan@jantuomi.fi>2024-12-30 23:04:27 +0200
commit56a97a389b9c192411ea43d199ad56e4753dba71 (patch)
tree17fc0deb542d24683ba3b9edc403b049e07fa1d5 /atk16_fpga/top.v
parent9b073ffbd7f9e7262bc4cb2e5991ceb6bc50cb54 (diff)
Move sram out of cu module
Diffstat (limited to 'atk16_fpga/top.v')
-rw-r--r--atk16_fpga/top.v18
1 files changed, 15 insertions, 3 deletions
diff --git a/atk16_fpga/top.v b/atk16_fpga/top.v
index 386d6e3..207d41f 100644
--- a/atk16_fpga/top.v
+++ b/atk16_fpga/top.v
@@ -3,12 +3,24 @@
module top(
input wire SYSCLK,
input wire BUT1,
- output wire LED1
-);
+ output wire LED1,
+ output SRAM_CS, // inverted
+ output SRAM_OE, // inverted
+ output SRAM_WE, // inverted
+ output [17:0] SA,
+ inout [15:0] SD
+);
cu cu_inst(
.clk(SYSCLK),
- .rst(BUT1)
+ .rst(BUT1),
+
+ .sram_cs_n(SRAM_CS),
+ .sram_rd_n(SRAM_OE),
+ .sram_wr_n(SRAM_WE),
+ .sram_addr(SA[15:0]),
+ .sram_in(SD),
+ .sram_out(SD)
);
assign LED1 = BUT1;