📄 oaverilogwritercallback.h
字号:
// *****************************************************************************// *****************************************************************************// oaVerilogWriterCallback.h//// This file contains the definition of the WriterCallback. The WriterCallback// implements a skeleton for a netlist writer. Classes derived from this class// implement specific languages such as Verilog.//// *****************************************************************************// 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 distributed in any way, in any medium,// in whole or in part, without prior written permission from Cadence.//// Copyright 2002-2005 Cadence Design Systems, Inc.// (c) Copyright 2003 Hewlett-Packard Development Company, LP// All Rights Reserved.//// $Author: shaun $// $Revision: 1.6 $// $Date: 2005/01/13 16:34:26 $// $State: Exp $// *****************************************************************************// *****************************************************************************#ifndef oaVerilogWriterCallback_P#define oaVerilogWriterCallback_PBEGIN_VERILOG_NAMESPACE// *****************************************************************************// WriterCallback// *****************************************************************************class OA_VERILOG_DLL_API WriterCallback { public: WriterCallback(const oaString &fileName, const oaNameSpace &nameSpace, const oaString &name, const oaString &version, const oaString &commentPfx, const oaString &commentSfx); virtual ~WriterCallback(); virtual void openOutput(); virtual void openOutput(const oaString &fileName); virtual void closeOutput(); const char *getLanguageName() const; const char *getLanguageVersion() const; const char *getCommentPrefix() const; const char *getCommentSuffix() const; virtual void writeCell(oaModule &cell) = 0; virtual void writeHeader(oaModule &cell); virtual void writeFooter(oaModule &cell); void incIndent(); void decIndent(); void setIndentShift(oaUInt4 shift); protected: virtual void writeModule(oaModule &cell) = 0; virtual void writeInterface(oaModule &cell) = 0; virtual void writeWire(oaModule &cell) = 0; virtual void writeBody(oaModule &cell) = 0; virtual void writeEndModule(oaModule &cell) = 0; void setLanguageVersion(const oaChar *newValue); void write(const char *fmt, ...) const; void writeIndent(const char *fmt, ...) const; oaUInt4 indentLevel; oaUInt4 indentShift; oaChar indent[128]; oaString languageName; oaString languageVersion; oaString commentPrefix; oaString commentSuffix; oaString outFileName; FILE *outFile; const oaNameSpace &nameSpace;};END_VERILOG_NAMESPACE#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -