// -*- mode: C++; c-file-style: "cc-mode" -*- //************************************************************************* // DESCRIPTION: Verilator: Create separate tasks for forked processes that // can outlive their parents // // Code available from: https://verilator.org // //************************************************************************* // // Copyright 2003-2025 by Wilson Snyder. This program is free software; you // can redistribute it and/or modify it under the terms of either the GNU // Lesser General Public License Version 3 or the Perl Artistic License // Version 2.0. // SPDX-License-Identifier: LGPL-3.0-only OR Artistic-2.0 // //************************************************************************* #ifndef VERILATOR_V3FORK_H_ #define VERILATOR_V3FORK_H_ #include "config_build.h" #include "verilatedos.h" class AstNetlist; //============================================================================ class V3Fork final { public: // Move/copy variables to "anonymous" objects if their lifetime might exceed the scope of a // procedure that declared them. Update the references appropriately. static void makeDynamicScopes(AstNetlist* nodep) VL_MT_DISABLED; // Create tasks out of blocks/statments that can outlive processes in which they were forked. // Return value: number of tasks created static void makeTasks(AstNetlist* nodep) VL_MT_DISABLED; }; #endif // Guard