aboutsummaryrefslogtreecommitdiffstats
path: root/atk16_fpga/top.v
blob: 975a7f553f3733740448509864e315a3f88a5c1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
`default_nettype none

module top(
    input wire SYSCLK,
    input wire BUT1,
    output wire LED1,

    output SRAM_CS, // inverted
    output SRAM_OE, // inverted
    output SRAM_WE, // inverted
    output [17:0] SA,
    inout  [15:0] SD,

    input  [3:0] INT
);
    cu cu_inst(
        .clk(SYSCLK),
        .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),

        .int_lines(INT)
    );

    assign SA[17:16] = 2'b0;
    assign LED1 = BUT1;

endmodule