Skip to content

Commit d79814c

Browse files
committed
Adding missing wire
1 parent 92c1ed9 commit d79814c

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

lambdalib/stdlib/la_csa42/rtl/la_csa42.v

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
//# License: MIT (see LICENSE file in Lambda repository) #
55
//#############################################################################
66

7-
module la_csa42 #(
7+
module la_csa42
8+
#(
89
parameter PROP = "DEFAULT"
9-
) (
10+
)
11+
(
1012
input a,
1113
input b,
1214
input c,
@@ -15,11 +17,13 @@ module la_csa42 #(
1517
output sum,
1618
output carry,
1719
output cout
18-
);
20+
);
1921

20-
assign cout = (a & b) | (b & c) | (a & c);
21-
assign sumint = a ^ b ^ c;
22-
assign sum = cin ^ d ^ sumint;
23-
assign carry = (cin & d) | (cin & sumint) | (d & sumint);
22+
wire sumint;
23+
24+
assign cout = (a & b) | (b & c) | (a & c);
25+
assign sumint = a ^ b ^ c;
26+
assign sum = cin ^ d ^ sumint;
27+
assign carry = (cin & d) | (cin & sumint) | (d & sumint);
2428

2529
endmodule

0 commit comments

Comments
 (0)