File tree Expand file tree Collapse file tree 2 files changed +7
-19
lines changed Expand file tree Collapse file tree 2 files changed +7
-19
lines changed Original file line number Diff line number Diff line change 6
6
7
7
module la_idiff
8
8
#(
9
- parameter PROP = "DEFAULT" ,
10
- parameter DIFF = 0 // differential buffer if value > 0
9
+ parameter PROP = "DEFAULT"
11
10
)
12
11
(
13
12
input in, // positive input
14
13
input inb, // negative input
15
14
output z // output
16
15
);
17
16
18
- if (DIFF)
19
- assign z = (in & ~ inb) | // for proper diff inputs
20
- (~ in & ~ inb); // fail on non diff input
21
- else
22
- assign z = in;
17
+ assign z = (in & ~ inb) | // for proper diff inputs
18
+ (~ in & ~ inb); // fail on non diff input
23
19
24
20
endmodule
Original file line number Diff line number Diff line change 6
6
7
7
module la_odiff
8
8
#(
9
- parameter PROP = "DEFAULT" ,
10
- parameter DIFF = 0 // differential buffer if value > 0
9
+ parameter PROP = "DEFAULT"
11
10
)
12
11
(
13
12
input in, // input
14
13
output z , // non inverting output
15
14
output zb // inverted output
16
15
);
17
16
18
- if (DIFF)
19
- begin
20
- assign z = in;
21
- assign zb = ~ in;
22
- end
23
- else
24
- begin
25
- assign z = in;
26
- assign zb = 1'b0 ;
27
- end
17
+ assign z = in;
18
+ assign zb = ~ in;
19
+
28
20
endmodule
You can’t perform that action at this time.
0 commit comments