-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfinal_proj_osc.v.bak
46 lines (38 loc) · 1.23 KB
/
final_proj_osc.v.bak
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
module final_proj_osc(CLOCK_50,
SWTCH,
VGA_CLK,
VGA_VS,
VGA_HS,
VGA_BLANK_n,
VGA_B,
VGA_G,
VGA_R);
input CLOCK_50;
input SWTCH;
output VGA_CLK;
output VGA_VS;
output VGA_HS;
output VGA_BLANK_n;
output wire [7:0]VGA_B ;
output wire [7:0]VGA_G ;
output wire [7:0]VGA_R ;
wire VGA_BLANK_n,VGA_HS,VGA_VS, VGA_CLK;
////////////////////////////////////////////
//wire to hold the signal
wire [15:0]ValSignal;
///////////////////////////////////////////
// signal_generator instance
signal_generator sg_ins(.CLOCK_50(CLOCK_50),
.signal(ValSignal));
/////////////////////////////////////////////
//oscilloscope instance
oscilloscope osc_ins( .CLOCK_50(CLOCK_50) , .SWTCH(SWTCH),
.signal(ValSignal),
.oVGA_CLK(VGA_CLK) ,
.oVS(VGA_VS) ,
.oHS(VGA_HS),
.oBLANK_n(VGA_BLANK_n),
.b_data(VGA_B) ,
.g_data(VGA_G),
.r_data(VGA_R));
endmodule