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:
parent
aeb391a186
commit
3cb916f4b5
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user