mirror of
https://github.com/verilator/verilator.git
synced 2025-02-01 11:14:03 +00:00
9273fafbbf
Apart from adding required AstCUse, V3CUse also used to create some standard methods for classes. This is now done in a separate pass V3Common. Note that this is not a performance issue, as V3Common just iterates through each module, which are stored in a simple linked list under the netlist, and does not need to traverse the whole netlist.
31 lines
961 B
C++
31 lines
961 B
C++
// -*- mode: C++; c-file-style: "cc-mode" -*-
|
|
//*************************************************************************
|
|
// DESCRIPTION: Verilator: Add common contents to modules
|
|
//
|
|
// Code available from: https://verilator.org
|
|
//
|
|
//*************************************************************************
|
|
//
|
|
// Copyright 2003-2021 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_V3COMMON_H_
|
|
#define VERILATOR_V3COMMON_H_
|
|
|
|
#include "config_build.h"
|
|
#include "verilatedos.h"
|
|
|
|
//============================================================================
|
|
|
|
class V3Common final {
|
|
public:
|
|
static void commonAll();
|
|
};
|
|
|
|
#endif // Guard
|