mirror of https://github.com/YosysHQ/yosys.git
Reformat so it shows up/looks nice when "help $alu" and "help $alu+"
This commit is contained in:
parent
acfb672d34
commit
041defc5a6
|
@ -532,13 +532,17 @@ endmodule
|
|||
|
||||
// --------------------------------------------------------
|
||||
|
||||
// Lookahead carry unit
|
||||
// A building block dedicated to fast computation of carry-bits
|
||||
// used in binary arithmetic operations. By replacing the ripple
|
||||
// carry structure used in full-adder blocks, the more significant
|
||||
// bits of the sum can be expected to be computed more quickly.
|
||||
// Typically created during `techmap` of $alu cells
|
||||
// (see the "_90_alu" rule in +/techmap.v)
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
//-
|
||||
//- $lcu (P, G, CI, CO)
|
||||
//-
|
||||
//- Lookahead carry unit
|
||||
//- A building block dedicated to fast computation of carry-bits used in binary
|
||||
//- arithmetic operations. By replacing the ripple carry structure used in full-adder
|
||||
//- blocks, the more significant bits of the sum can be expected to be computed more
|
||||
//- quickly.
|
||||
//- Typically created during `techmap` of $alu cells (see the "_90_alu" rule in
|
||||
//- +/techmap.v).
|
||||
module \$lcu (P, G, CI, CO);
|
||||
|
||||
parameter WIDTH = 1;
|
||||
|
@ -563,12 +567,17 @@ endmodule
|
|||
|
||||
// --------------------------------------------------------
|
||||
|
||||
// Arithmetic logic unit
|
||||
// A building block supporting both binary addition/subtraction
|
||||
// operations, and indirectly, comparison operations.
|
||||
// Typically created by the `alumacc` pass, which transforms
|
||||
// $add, $sub, $lt, $le, $ge, $gt, $eq, $eqx, $ne, $nex
|
||||
// cells into this $alu cell.
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
//-
|
||||
//- $alu (A, B, CI, BI, X, Y, CO)
|
||||
//-
|
||||
//- Arithmetic logic unit.
|
||||
//- A building block supporting both binary addition/subtraction operations, and
|
||||
//- indirectly, comparison operations.
|
||||
//- Typically created by the `alumacc` pass, which transforms:
|
||||
//- $add, $sub, $lt, $le, $ge, $gt, $eq, $eqx, $ne, $nex
|
||||
//- cells into this $alu cell.
|
||||
//-
|
||||
module \$alu (A, B, CI, BI, X, Y, CO);
|
||||
|
||||
parameter A_SIGNED = 0;
|
||||
|
|
Loading…
Reference in New Issue