File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
lambdalib/stdlib/la_csa42/rtl Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change 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
2529endmodule
You can’t perform that action at this time.
0 commit comments