aboutsummaryrefslogtreecommitdiffstats
path: root/atk16_fpga/top.v
diff options
context:
space:
mode:
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;