verilator/docs/guide
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
..
figures Verilator_gantt now shows the predicted mtask times, eval times, and additional statistics. 2021-09-23 22:59:36 -04:00
changes.rst Copyright year update. 2025-01-01 08:30:25 -05:00
conf.py Commentary 2025-03-30 11:02:21 -04:00
connecting.rst Commentary 2025-03-30 11:02:21 -04:00
contributing.rst Commentary: Fix bugpoint link (#5883) 2025-03-26 07:05:18 -04:00
contributors.rst Commentary: Fix broken links 2025-06-15 14:51:56 -04:00
copyright.rst Copyright year update. 2025-01-01 08:30:25 -05:00
deprecations.rst Copyright year update. 2025-01-01 08:30:25 -05:00
environment.rst Copyright year update. 2025-01-01 08:30:25 -05:00
example_binary.rst Copyright year update. 2025-01-01 08:30:25 -05:00
example_cc.rst Copyright year update. 2025-01-01 08:30:25 -05:00
example_common_install.rst Copyright year update. 2025-01-01 08:30:25 -05:00
example_dist.rst Copyright year update. 2025-01-01 08:30:25 -05:00
example_sc.rst Copyright year update. 2025-01-01 08:30:25 -05:00
examples.rst Copyright year update. 2025-01-01 08:30:25 -05:00
exe_sim.rst Cleanup documentated option sort order, and enforce with test 2025-04-26 17:14:49 -04:00
exe_verilator.rst Optimize complex combinational logic in DFG (#6298) 2025-08-19 15:06:38 +01:00
exe_verilator_coverage.rst Add filtering type option in verilator_coverage (#6030) 2025-05-22 02:42:09 -07:00
exe_verilator_gantt.rst Cleanup documentated option sort order, and enforce with test 2025-04-26 17:14:49 -04:00
exe_verilator_profcfunc.rst Cleanup documentated option sort order, and enforce with test 2025-04-26 17:14:49 -04:00
executables.rst Copyright year update. 2025-01-01 08:30:25 -05:00
extensions.rst Rename Verilator Config Files to Verilator Control Files. 2025-06-27 20:38:01 -04:00
faq.rst Important: Change `--assert` to be the default; use `--no-assert` for legacy behavior and faster runtimes. 2025-07-03 19:36:28 -04:00
files.rst Support SARIF JSON diagnostic output with `--diagnostics-sarif`. (#6017) 2025-05-17 15:46:15 -04:00
index.rst Copyright year update. 2025-01-01 08:30:25 -05:00
install-cmake.rst Copyright year update. 2025-01-01 08:30:25 -05:00
install.rst Commentary 2025-07-27 15:55:59 -04:00
languages.rst Important: Change `--assert` to be the default; use `--no-assert` for legacy behavior and faster runtimes. 2025-07-03 19:36:28 -04:00
overview.rst Copyright year update. 2025-01-01 08:30:25 -05:00
simulating.rst Important: Change `--assert` to be the default; use `--no-assert` for legacy behavior and faster runtimes. 2025-07-03 19:36:28 -04:00
verilating.rst Commentary (#6246) 2025-07-31 18:09:43 -04:00
warnings.rst Add ALWNEVER warning, for `always @*` that never execute (#6291) (#6303) 2025-08-18 12:00:53 -04:00