Skip to content

Commit 96c2918

Browse files
authored
Merge pull request #98 from siliconcompiler/ddr
Removing DIFF parameter in la_odiff/la_idiff
2 parents dddb7fd + 0798293 commit 96c2918

File tree

2 files changed

+7
-19
lines changed

2 files changed

+7
-19
lines changed

lambdalib/auxlib/rtl/la_idiff.v

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,15 @@
66

77
module la_idiff
88
#(
9-
parameter PROP = "DEFAULT",
10-
parameter DIFF = 0 // differential buffer if value > 0
9+
parameter PROP = "DEFAULT"
1110
)
1211
(
1312
input in, // positive input
1413
input inb, // negative input
1514
output z // output
1615
);
1716

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
2319

2420
endmodule

lambdalib/auxlib/rtl/la_odiff.v

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,15 @@
66

77
module la_odiff
88
#(
9-
parameter PROP = "DEFAULT",
10-
parameter DIFF = 0 // differential buffer if value > 0
9+
parameter PROP = "DEFAULT"
1110
)
1211
(
1312
input in, // input
1413
output z, // non inverting output
1514
output zb // inverted output
1615
);
1716

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+
2820
endmodule

0 commit comments

Comments
 (0)