aboutsummaryrefslogtreecommitdiff
path: root/src/top.v
blob: e5a638130a58c898c0ac16c3b0994de633418a12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
module top (
	input clk,
	input key
);

wire rstn, clk_cpu;
assign rstn = key;

clock_divider #(.N(1024 * 1024)) clkdiv (
    .clk(clk),
    .reset(!rstn),
    .clk_out(clk_cpu)
);

cpu cpu (
  .clk(clk_cpu),
  .rstn(rstn)
);

endmodule