-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmimasv2.v
More file actions
45 lines (40 loc) · 929 Bytes
/
mimasv2.v
File metadata and controls
45 lines (40 loc) · 929 Bytes
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
34
35
36
37
38
39
40
41
42
43
44
45
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 19:01:05 09/24/2018
// Design Name:
// Module Name: mimasv2
// Project Name:
// Target Devices:
// Tool versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////
module mimasv2 (
input wire i_clk,
input wire i_rst,
input wire [7:0] DPSwitch,
output wire [7:0] LED
);
// the clock input for the cpu itself
// already after the divider
wire cpu_clk;
clk_divider clk_div (
.i_clk(i_clk),
.i_rst(i_rst),
.i_divider({ 14'b0, ~DPSwitch, 10'b100000 }),
.o_clk(cpu_clk)
);
cpu cpu (
.i_clk(cpu_clk),
.i_rst(i_rst),
.o_out(LED)
);
endmodule