-
Notifications
You must be signed in to change notification settings - Fork 893
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4332 from YosysHQ/krys/help_docs
Add docs generation from cells help output
- Loading branch information
Showing
69 changed files
with
3,783 additions
and
2,446 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
.. role:: verilog(code) | ||
:language: Verilog | ||
|
||
Combinatorial cells (combined) | ||
------------------------------ | ||
|
||
These cells combine two or more combinatorial cells (simple) into a single cell. | ||
|
||
.. table:: Cell types for gate level combinatorial cells (combined) | ||
|
||
======================================= ============= | ||
Verilog Cell Type | ||
======================================= ============= | ||
:verilog:`Y = A & ~B` `$_ANDNOT_` | ||
:verilog:`Y = A | ~B` `$_ORNOT_` | ||
:verilog:`Y = ~((A & B) | C)` `$_AOI3_` | ||
:verilog:`Y = ~((A | B) & C)` `$_OAI3_` | ||
:verilog:`Y = ~((A & B) | (C & D))` `$_AOI4_` | ||
:verilog:`Y = ~((A | B) & (C | D))` `$_OAI4_` | ||
:verilog:`Y = ~(S ? B : A)` `$_NMUX_` | ||
(see below) `$_MUX4_` | ||
(see below) `$_MUX8_` | ||
(see below) `$_MUX16_` | ||
======================================= ============= | ||
|
||
The `$_MUX4_`, `$_MUX8_` and `$_MUX16_` cells are used to model wide muxes, and | ||
correspond to the following Verilog code: | ||
|
||
.. code-block:: verilog | ||
:force: | ||
// $_MUX4_ | ||
assign Y = T ? (S ? D : C) : | ||
(S ? B : A); | ||
// $_MUX8_ | ||
assign Y = U ? T ? (S ? H : G) : | ||
(S ? F : E) : | ||
T ? (S ? D : C) : | ||
(S ? B : A); | ||
// $_MUX16_ | ||
assign Y = V ? U ? T ? (S ? P : O) : | ||
(S ? N : M) : | ||
T ? (S ? L : K) : | ||
(S ? J : I) : | ||
U ? T ? (S ? H : G) : | ||
(S ? F : E) : | ||
T ? (S ? D : C) : | ||
(S ? B : A); | ||
.. autocellgroup:: comb_combined | ||
:members: | ||
:source: | ||
:linenos: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
.. role:: verilog(code) | ||
:language: Verilog | ||
|
||
Combinatorial cells (simple) | ||
---------------------------- | ||
|
||
.. table:: Cell types for gate level combinatorial cells (simple) | ||
|
||
======================================= ============= | ||
Verilog Cell Type | ||
======================================= ============= | ||
:verilog:`Y = A` `$_BUF_` | ||
:verilog:`Y = ~A` `$_NOT_` | ||
:verilog:`Y = A & B` `$_AND_` | ||
:verilog:`Y = ~(A & B)` `$_NAND_` | ||
:verilog:`Y = A | B` `$_OR_` | ||
:verilog:`Y = ~(A | B)` `$_NOR_` | ||
:verilog:`Y = A ^ B` `$_XOR_` | ||
:verilog:`Y = ~(A ^ B)` `$_XNOR_` | ||
:verilog:`Y = S ? B : A` `$_MUX_` | ||
======================================= ============= | ||
|
||
.. autocellgroup:: comb_simple | ||
:members: | ||
:source: | ||
:linenos: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Other gate-level cells | ||
---------------------- | ||
|
||
.. autocellgroup:: gate_other | ||
:caption: Other gate-level cells | ||
:members: | ||
:source: | ||
:linenos: |
Oops, something went wrong.