-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflashHandler.v
More file actions
28 lines (22 loc) · 1.02 KB
/
flashHandler.v
File metadata and controls
28 lines (22 loc) · 1.02 KB
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
/*----- Module Overview ---------------------------------------*
* *
* _______________ *
* *
* | | *
* clock -------> | | *
* enable -------> | flashHandler | -------> rgbDepth *
* | | *
* _______________ *
* *
*--------------------------------------------------------------*/
module flashHandler ( clock, reset, enable, flashClk );
input reset;
input clock;
input enable;
wire flashCnt;
output reg flashClk;
flashClk i0 ( reset, clock, flashCnt );
always @ ( posedge clock )
if ( flashCnt )
flashClk <= enable && ( ~flashClk );
endmodule