2012-04-13 03:08:20 +02:00
|
|
|
|
// -*- mode: C++; c-file-style: "cc-mode" -*-
|
2006-08-26 13:35:28 +02:00
|
|
|
|
//*************************************************************************
|
|
|
|
|
|
// DESCRIPTION: Verilator: Inlining of modules
|
|
|
|
|
|
//
|
2008-04-25 14:14:27 +02:00
|
|
|
|
// Code available from: http://www.veripool.org/verilator
|
2006-08-26 13:35:28 +02:00
|
|
|
|
//
|
|
|
|
|
|
//*************************************************************************
|
|
|
|
|
|
//
|
2019-01-04 01:17:22 +01:00
|
|
|
|
// Copyright 2003-2019 by Wilson Snyder. This program is free software; you can
|
2006-08-26 13:35:28 +02:00
|
|
|
|
// redistribute it and/or modify it under the terms of either the GNU
|
2009-05-04 23:07:57 +02:00
|
|
|
|
// Lesser General Public License Version 3 or the Perl Artistic License
|
|
|
|
|
|
// Version 2.0.
|
2006-08-26 13:35:28 +02:00
|
|
|
|
//
|
|
|
|
|
|
// 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.
|
|
|
|
|
|
//
|
|
|
|
|
|
//*************************************************************************
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef _V3TASK_H_
|
|
|
|
|
|
#define _V3TASK_H_ 1
|
2018-10-14 19:43:24 +02:00
|
|
|
|
|
2006-12-18 20:20:45 +01:00
|
|
|
|
#include "config_build.h"
|
|
|
|
|
|
#include "verilatedos.h"
|
2018-10-14 19:43:24 +02:00
|
|
|
|
|
2006-08-26 13:35:28 +02:00
|
|
|
|
#include "V3Error.h"
|
|
|
|
|
|
#include "V3Ast.h"
|
2018-10-14 19:43:24 +02:00
|
|
|
|
|
2009-12-01 00:36:31 +01:00
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
|
|
|
|
//============================================================================
|
|
|
|
|
|
|
2018-02-02 03:24:41 +01:00
|
|
|
|
typedef std::pair<AstVar*,AstArg*> V3TaskConnect; // [port, pin-connects-to]
|
|
|
|
|
|
typedef std::vector<V3TaskConnect> V3TaskConnects; // [ [port, pin-connects-to] ... ]
|
2006-08-26 13:35:28 +02:00
|
|
|
|
|
|
|
|
|
|
//============================================================================
|
|
|
|
|
|
|
|
|
|
|
|
class V3Task {
|
|
|
|
|
|
public:
|
|
|
|
|
|
static void taskAll(AstNetlist* nodep);
|
2018-03-10 22:32:04 +01:00
|
|
|
|
/// Return vector of [port, pin-connects-to] (SLOW)
|
|
|
|
|
|
static V3TaskConnects taskConnects(AstNodeFTaskRef* nodep, AstNode* taskStmtsp);
|
2006-08-26 13:35:28 +02:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // Guard
|