-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHX8357_top.sv
58 lines (49 loc) · 926 Bytes
/
HX8357_top.sv
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
46
47
48
49
50
51
52
53
54
55
56
57
58
module HX8357_top(
// inputs
input clk_sys,
input nres,
// outputs
output CSx,
output RESx,
output DCx,
output WRx,
output RDx,
output [15:0] DATAx
);
// internal clk
wire clk;
wire transmission_cmpl;
wire cmd, data;
wire[15:0] data_lines;
// clock divider instantiation
clock_divider #(2) clk_div (
.clk_in (clk_sys),
.nres (nres),
.clk_out (clk)
);
// FSM instantiation
HX8357_FSM_new FSM (
.clk (clk),
.nres (nres),
.transmission_cmpl (transmission_cmpl),
.data_lines (data_lines),
.cmd (cmd),
.data (data)
);
// Control instantiation
HX8357_cont Control(
.clk (clk),
.nres (nres),
.data_in (data_lines),
.cmd (cmd),
.data (data),
.transmission_cmpl(transmission_cmpl),
// display
.CSx (CSx),
.RESx (RESx),
.DCx (DCx),
.WRx (WRx),
.RDx (RDx),
.DATAx (DATAx)
);
endmodule