Qucs-GUI
0.0.19
|
00001 /*************************************************************************** 00002 verilogfile.h 00003 ------------- 00004 begin : Sat Mar 31 2007 00005 copyright : (C) 2007 by Stefan Jahn 00006 email : stefa@lkcc.org 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef VERILOGFILE_H 00019 #define VERILOGFILE_H 00020 00021 #include "component.h" 00022 00023 class QTextStream; 00024 class QString; 00025 00026 00027 class Verilog_File : public MultiViewComponent { 00028 public: 00029 Verilog_File(); 00030 ~Verilog_File() {}; 00031 Component* newOne(); 00032 static Element* info(QString&, char* &, bool getNewOne=false); 00033 00034 bool createSubNetlist(QTextStream *); 00035 QString getErrorText() { return ErrText; } 00036 QString getSubcircuitFile(); 00037 00038 protected: 00039 QString verilogCode(int); 00040 void createSymbol(); 00041 QString loadFile(); 00042 00043 QString ModuleName; 00044 QString ErrText; 00045 }; 00046 00047 class Verilog_File_Info { 00048 public: 00049 Verilog_File_Info(); 00050 Verilog_File_Info(QString, bool isfile = false); 00051 ~Verilog_File_Info() {}; 00052 QString parsePorts(QString, int); 00053 00054 public: 00055 QString ModuleName; 00056 QString PortNames; 00057 }; 00058 00059 #endif