mirror of
https://github.com/YosysHQ/yosys
synced 2025-09-04 09:07:42 +00:00
Initial carry chain handling pass
This commit is contained in:
parent
474ed28aee
commit
da6a62f3a0
5 changed files with 213 additions and 37 deletions
|
@ -184,4 +184,16 @@ module NX_IOB_O(I, C, T, IO);
|
|||
assign IO = C ? I : 1'bz;
|
||||
endmodule
|
||||
|
||||
(* abc9_box, lib_whitebox *)
|
||||
module NX_CY_1BIT(CI, A, B, S, CO);
|
||||
(* abc9_carry *)
|
||||
input CI;
|
||||
input A;
|
||||
input B;
|
||||
output S;
|
||||
(* abc9_carry *)
|
||||
output CO;
|
||||
parameter first = 1'b0;
|
||||
|
||||
assign {CO, S} = A + B + CI;
|
||||
endmodule
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue