verilator/docs/gen
Geza Lore 636a6b8cd2
Optimize complex combinational logic in DFG (#6298)
This patch adds DfgLogic, which is a vertex that represents a whole,
arbitrarily complex combinational AstAlways or AstAssignW in the
DfgGraph.

Implementing this requires computing the variables live at entry to the
AstAlways (variables read by the block), so there is a new
ControlFlowGraph data structure and a classical data-flow analysis based
live variable analysis to do that at the variable level (as opposed to
bit/element level).

The actual CFG construction and live variable analysis is best effort,
and might fail for currently unhandled constructs or data types. This
can be extended later.

V3DfgAstToDfg is changed to convert the Ast into an initial DfgGraph
containing only DfgLogic, DfgVertexSplice and DfgVertexVar vertices.

The DfgLogic are then subsequently synthesized into primitive operations
by the new V3DfgSynthesize pass, which is a combination of the old
V3DfgAstToDfg conversion and new code to handle AstAlways blocks with
complex flow control.

V3DfgSynthesize by default will synthesize roughly the same constructs
as V3DfgAstToDfg used to handle before, plus any logic that is part of a
combinational cycle within the DfgGraph. This enables breaking up these
cycles, for which there are extensions to V3DfgBreakCycles in this patch
as well. V3DfgSynthesize will then delete all non synthesized or non
synthesizable DfgLogic vertices and the rest of the Dfg pipeline is
identical, with minor changes to adjust for the changed representation.

Because with this change we can now eliminate many more UNOPTFLAT, DFG
has been disabled in all the tests that specifically target testing the
scheduling and reporting of circular combinational logic.
2025-08-19 15:06:38 +01:00
..
ex_ALWNEVER_faulty.rst Add ALWNEVER warning, for `always @*` that never execute (#6291) (#6303) 2025-08-18 12:00:53 -04:00
ex_ALWNEVER_msg.rst Add ALWNEVER warning, for `always @*` that never execute (#6291) (#6303) 2025-08-18 12:00:53 -04:00
ex_BADVLTPRAGMA_faulty.rst
ex_BADVLTPRAGMA_msg.rst
ex_DIDNOTCONVERGE_faulty.rst
ex_DIDNOTCONVERGE_msg.rst Optimize complex combinational logic in DFG (#6298) 2025-08-19 15:06:38 +01:00
ex_DIDNOTCONVERGE_nodbg_msg.rst
ex_MULTIDRIVEN_faulty.rst
ex_MULTIDRIVEN_msg.rst
ex_PARAMNODEFAULT_faulty.rst Add PARAMNODEFAULT error, for parameters without defaults. 2025-08-03 15:27:37 -04:00
ex_PARAMNODEFAULT_msg.rst Add PARAMNODEFAULT error, for parameters without defaults. 2025-08-03 15:27:37 -04:00
ex_PINMISSING_faulty.rst
ex_PINMISSING_msg.rst Change cell messages to instance to match IEEE 2025-05-03 04:00:47 -04:00
ex_PROCASSINIT_faulty.rst Add PROCINITASSIGN on initial assignments to process variables (#2481). 2025-04-30 22:00:06 -04:00
ex_PROCASSINIT_fixed.rst Add PROCINITASSIGN on initial assignments to process variables (#2481). 2025-04-30 22:00:06 -04:00
ex_PROCASSINIT_msg.rst Add PROCINITASSIGN on initial assignments to process variables (#2481). 2025-04-30 22:00:06 -04:00
ex_STMTDLY_faulty.rst
ex_STMTDLY_msg.rst
ex_USERERROR_faulty.rst
ex_USERERROR_msg.rst
ex_USERFATAL_faulty.rst
ex_USERFATAL_msg.rst
ex_USERINFO_faulty.rst
ex_USERINFO_msg.rst
ex_USERWARN_faulty.rst
ex_USERWARN_msg.rst
ex_VARHIDDEN_faulty.rst
ex_VARHIDDEN_msg.rst
ex_WIDTHEXPAND_1_faulty.rst Add wire data type checking per IEEE. 2025-07-20 07:21:30 -04:00
ex_WIDTHEXPAND_1_fixed.rst Add wire data type checking per IEEE. 2025-07-20 07:21:30 -04:00
ex_WIDTHEXPAND_1_msg.rst Add wire data type checking per IEEE. 2025-07-20 07:21:30 -04:00