📄 oaverilogintest.h
字号:
// *****************************************************************************// *****************************************************************************// oaVerilogInTest.h//// This file contains the definition of the oaVerilogInTest test driver class.// This is the base class that simply reads a Verilog file and dumps the// database.//// *****************************************************************************// Except as specified in the OpenAccess terms of use of Cadence or Silicon// Integration Initiative, this material may not be copied, modified,// re-published, uploaded, executed, or istributed in any way, in any medium,// in whole or in part, without prior written permission from Cadence.//// Copyright 2003-2005 Cadence Design Systems, Inc.// All Rights Reserved.//// $Author: sailajad $// $Revision: 1.35 $// $Date: 2005/08/05 21:58:13 $// $State: Exp $// *****************************************************************************// *****************************************************************************#ifndef oaVerilogInTest_P#define oaVerilogInTest_P#include "oaVerilog.h"#include "oaTest.h"#include "oaVerilogTest.h"// *****************************************************************************// Forward Class Declarations// *****************************************************************************class oaVerilogInTest;// *****************************************************************************// DumpObserver// *****************************************************************************class DumpObserver : public oaObserver<oaDesign> { public: DumpObserver(const oaString &testName, oaTestOutput &toutIn); void onPostSave(oaDesign *cv, oaBoolean succeeded); void onPostSaveAs(oaDesign *design, const oaScalarName &libName, const oaScalarName &cellName, const oaScalarName &viewName, oaBoolean succeeded); private: void dump(oaDesign *design, const oaScalarName &libName, const oaScalarName &cellName, const oaScalarName &viewName); const oaString name; oaTestOutput &tout; oaUInt4 shift;};// *****************************************************************************// oaVerilogInTest// *****************************************************************************class oaVerilogInTest : public oaVerilogTest { public: oaVerilogInTest(const oaString &name, oaBoolean noEMH = true, oaBoolean EMH = true, oaBoolean trace = false, oaBoolean refLib = false); virtual oaBoolean test(); void enableNoEMH(oaBoolean value = true); void enableEMH(oaBoolean value = true); void enableCallbacks(oaBoolean value = true); void enableFullErrorMessages(oaBoolean value = true); protected: virtual void buildRefLib(const oaString &refLibName); virtual void testReader(VerilogIn &reader, const oaString &testcase); oaBoolean doNoEMH; oaBoolean doEMH; oaBoolean fullErrorMessages; oaBoolean traceEnabled; oaBoolean usesRefLib; DumpObserver dumpObserver; DesignObserver debugDesign; ModuleObserver debugModule; NetObserver debugNet; BusNetDefObserver debugBusNetDef; InstTermObserver debugInstTerm; InstObserver debugInst; TermObserver debugTerm; BusTermDefObserver debugBusTermDef;};#include "oaVerilogInErrorsTest.h"#include "oaVerilogInExistingTest.h"#include "oaVerilogInLeafTest.h"#include "oaVerilogInMultiFileTest.h"#include "oaVerilogInOptionsTest.h"#include "oaVerilogInStubTest.h"#include "oaVerilogInSampleTest.h"#include "oaVerilogInVliTest.h"#include "oaVerilogAnnotateTest.h"#include "oaVerilogInFileSysTest.h"#include "oaVerilogInTest.inl"#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -