-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSSU.v
More file actions
42 lines (26 loc) · 930 Bytes
/
Copy pathSSU.v
File metadata and controls
42 lines (26 loc) · 930 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
// file: SSU.v
// author: @ayaelakhras
/*******************************************************************
*
* Module: SSU.v
* Project: i2cMaster
* Author: Aya ElAkhras, ayaelakhras@aucegypt.edu
* Description: This module
*
* Change history: 02/11/18 – Started Working
* 10/29/17 – Did something else
*
**********************************************************************/
`timescale 1ns/1ns
module SSU ( Mclk, reset_n, busy, detect_pos, detect_neg, iSCL );
input Mclk;
input reset_n;
input busy;
///////
input detect_pos;
input detect_neg;
output iSCL;
wire temp_iSCL;
ClockDivider my_divider (.clk(Mclk), .reset_n(reset_n), .busy(busy), .iSCL(temp_iSCL) );
assign iSCL = (!busy) ? 1'b1 : temp_iSCL; // Since I assume that in reset state (idle state) iSCL is set to 1 (flattened)
endmodule