1
0
mirror of https://github.com/aolofsson/oh.git synced 2025-02-07 06:44:09 +08:00

Fixing typo bug in csa32

This commit is contained in:
aolofsson 2021-07-28 18:27:21 -04:00
parent aeb391a186
commit 3cb916f4b5

View File

@ -4,14 +4,16 @@
//# License: MIT (see LICENSE file in OH repository) # //# License: MIT (see LICENSE file in OH repository) #
//############################################################################# //#############################################################################
module asic_csa32 #(parameter PROP = "DEFAULT") ( input a, module asic_csa32 #(parameter PROP = "DEFAULT")
input b, (
input c, input a,
output sum, input b,
output carry input c,
); output sum,
output carry
);
assign s = a ^ b ^ c; assign sum = a ^ b ^ c;
assign c = (a & b) | (b & c) | (c & a); assign carry = (a & b) | (b & c) | (c & a);
endmodule endmodule