2016-05-12 11:19:02 +00:00
|
|
|
|
// -*- mode: C++; c-file-style: "cc-mode" -*-
|
|
|
|
|
//*************************************************************************
|
2016-10-23 18:27:57 +00:00
|
|
|
|
// DESCRIPTION: Verilator: Emit CFunc's for class construction and configuration
|
2016-05-12 11:19:02 +00:00
|
|
|
|
//
|
|
|
|
|
// Code available from: http://www.veripool.org/verilator
|
|
|
|
|
//
|
|
|
|
|
//*************************************************************************
|
|
|
|
|
//
|
2018-01-02 23:05:06 +00:00
|
|
|
|
// Copyright 2003-2018 by Wilson Snyder. This program is free software; you can
|
2016-05-12 11:19:02 +00:00
|
|
|
|
// 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.
|
|
|
|
|
//
|
|
|
|
|
// Verilator is distributed in the hope that it will be useful,
|
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
|
//
|
|
|
|
|
//*************************************************************************
|
|
|
|
|
|
2016-10-23 18:27:57 +00:00
|
|
|
|
#ifndef _V3CCTORS_H_
|
|
|
|
|
#define _V3CCTORS_H_ 1
|
2018-10-14 17:43:24 +00:00
|
|
|
|
|
2016-05-12 11:19:02 +00:00
|
|
|
|
#include "config_build.h"
|
|
|
|
|
#include "verilatedos.h"
|
2018-10-14 17:43:24 +00:00
|
|
|
|
|
2016-05-12 11:19:02 +00:00
|
|
|
|
#include "V3Error.h"
|
|
|
|
|
#include "V3Ast.h"
|
|
|
|
|
|
|
|
|
|
//============================================================================
|
|
|
|
|
|
2016-10-23 18:27:57 +00:00
|
|
|
|
class V3CCtors {
|
2016-05-12 11:19:02 +00:00
|
|
|
|
public:
|
2016-10-23 18:27:57 +00:00
|
|
|
|
static void cctorsAll();
|
2017-11-06 02:47:55 +00:00
|
|
|
|
private:
|
|
|
|
|
static void evalAsserts();
|
2016-05-12 11:19:02 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif // Guard
|