1
0
mirror of https://github.com/aolofsson/oh.git synced 2025-01-30 02:32:53 +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) #
//#############################################################################
module asic_csa32 #(parameter PROP = "DEFAULT") ( input a,
input b,
input c,
output sum,
output carry
);
module asic_csa32 #(parameter PROP = "DEFAULT")
(
input a,
input b,
input c,
output sum,
output carry
);
assign s = a ^ b ^ c;
assign c = (a & b) | (b & c) | (c & a);
assign sum = a ^ b ^ c;
assign carry = (a & b) | (b & c) | (c & a);
endmodule