36 lines
1.2 KiB
C
36 lines
1.2 KiB
C
|
|
// -*- 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-2023 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:
|
||
|
|
// Create tasks out of begin blocks that can outlive processes in which they were forked.
|
||
|
|
// Return value: number of tasks created
|
||
|
|
static int makeTasks(AstNetlist* nodep);
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif // Guard
|