-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinary_vga_controller_0.v
96 lines (87 loc) · 3.02 KB
/
binary_vga_controller_0.v
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
//Legal Notice: (C)2013 Altera Corporation. All rights reserved. Your
//use of Altera Corporation's design tools, logic functions and other
//software and tools, and its AMPP partner logic functions, and any
//output files any of the foregoing (including device programming or
//simulation files), and any associated documentation or information are
//expressly subject to the terms and conditions of the Altera Program
//License Subscription Agreement or other applicable license agreement,
//including, without limitation, that your use is for the sole purpose
//of programming logic devices manufactured by Altera and sold by Altera
//or its authorized distributors. Please refer to the applicable
//agreement for further details.
// synthesis translate_off
`timescale 1ns / 1ps
// synthesis translate_on
// turn off superfluous verilog processor warnings
// altera message_level Level1
// altera message_off 10034 10035 10036 10037 10230 10240 10030
module binary_vga_controller_0 (
// inputs:
iADDR,
iCLK,
iCLK_25,
iCS,
iDATA,
iRD,
iRST_N,
iWR,
// outputs:
VGA_B,
VGA_BLANK,
VGA_CLK,
VGA_G,
VGA_HS,
VGA_R,
VGA_SYNC,
VGA_VS,
oDATA
)
;
output [ 9: 0] VGA_B;
output VGA_BLANK;
output VGA_CLK;
output [ 9: 0] VGA_G;
output VGA_HS;
output [ 9: 0] VGA_R;
output VGA_SYNC;
output VGA_VS;
output [ 15: 0] oDATA;
input [ 18: 0] iADDR;
input iCLK;
input iCLK_25;
input iCS;
input [ 15: 0] iDATA;
input iRD;
input iRST_N;
input iWR;
wire [ 9: 0] VGA_B;
wire VGA_BLANK;
wire VGA_CLK;
wire [ 9: 0] VGA_G;
wire VGA_HS;
wire [ 9: 0] VGA_R;
wire VGA_SYNC;
wire VGA_VS;
wire [ 15: 0] oDATA;
VGA_NIOS_CTRL the_VGA_NIOS_CTRL
(
.VGA_B (VGA_B),
.VGA_BLANK (VGA_BLANK),
.VGA_CLK (VGA_CLK),
.VGA_G (VGA_G),
.VGA_HS (VGA_HS),
.VGA_R (VGA_R),
.VGA_SYNC (VGA_SYNC),
.VGA_VS (VGA_VS),
.iADDR (iADDR),
.iCLK (iCLK),
.iCLK_25 (iCLK_25),
.iCS (iCS),
.iDATA (iDATA),
.iRD (iRD),
.iRST_N (iRST_N),
.iWR (iWR),
.oDATA (oDATA)
);
defparam the_VGA_NIOS_CTRL.RAM_SIZE = 19'b1001011000000000000;
endmodule