forked from github/verilator
54 lines
1.6 KiB
C++
54 lines
1.6 KiB
C++
// -*- C++ -*-
|
||
//*************************************************************************
|
||
// DESCRIPTION: Verilator: Reading of Verilog files
|
||
//
|
||
// Code available from: http://www.veripool.org/verilator
|
||
//
|
||
// AUTHORS: Wilson Snyder with Paul Wasson, Duane Gabli
|
||
//
|
||
//*************************************************************************
|
||
//
|
||
// Copyright 2003-2010 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.
|
||
//
|
||
// 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 _V3PARSE_H_
|
||
#define _V3PARSE_H_ 1
|
||
#include "config_build.h"
|
||
#include "verilatedos.h"
|
||
#include "V3Error.h"
|
||
#include "V3Global.h"
|
||
|
||
class AstNetlist;
|
||
class V3ParseImp;
|
||
|
||
//============================================================================
|
||
|
||
class V3Parse {
|
||
private:
|
||
V3ParseImp* m_impp;
|
||
|
||
public:
|
||
// CONSTRUCTORS
|
||
// We must allow reading multiple files into one parser
|
||
V3Parse(AstNetlist* rootp);
|
||
~V3Parse();
|
||
|
||
// METHODS
|
||
// Preprocess and read the Verilog file specified into the netlist database
|
||
void parseFile(FileLine* fileline, const string& modname, bool inLibrary);
|
||
|
||
// Push preprocessed text to the lexer
|
||
static void ppPushText(V3ParseImp* impp, const string& text);
|
||
};
|
||
|
||
#endif // Guard
|