📄 oaverilogoptions.h
字号:
// *****************************************************************************// *****************************************************************************// oaVerilogOptions.h//// This file contains the definition for the Options class. The Options class// is the base class that implements a repository for options that control the// behaviors of the Verilog reader and writer. This class does not enforce or// implement the option: it is the responsibility of the applicaton to query// the option object and then to act accordingly.//// *****************************************************************************// 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 2003-2005 Cadence Design Systems, Inc.// All Rights Reserved.//// $Author: shaun $// $Revision: 1.26 $// $Date: 2005/07/08 01:27:45 $// $State: Exp $// *****************************************************************************// *****************************************************************************#ifndef oaVerilogOption_P#define oaVerilogOption_PBEGIN_VERILOG_NAMESPACEusing namespace oaUtil;// *****************************************************************************// Options// *****************************************************************************class OA_VERILOG_DLL_API Options { public: Options(MsgAdapter &msgsIn); ~Options(); void enableFileAndLine(oaBoolean value = true); oaBoolean testFileAndLine() const; const oaString &getGlobalModuleName() const; void setGlobalModuleName(const oaString &value); const oaScalarName &getLibName() const; void setLibName(const oaString &value); const LibMgrOptions &getLibOptions() const; void setLibOptions(const LibMgrOptions &opts); const oaString &getTopModuleName() const; void setTopModuleName(const oaString &value); void getTieHighNet(oaSimpleName &netName) const; void getTieHighNetBase(oaSimpleName &netName) const; void setTieHighNet(const oaScalarName &tieHighName); void getTieLowNet(oaSimpleName &netName) const; void getTieLowNetBase(oaSimpleName &netName) const; void setTieLowNet(const oaScalarName &tieLowName); const oaScalarName &getViewName() const; void setViewName(const oaString &value); MsgAdapter *getMsgAdapter() const; void setMsgAdapter(MsgAdapter *msgsIn); static void stripGeneratedPrefix(oaString &nameStr); void enableWarnings(oaBoolean value = true); oaBoolean testWarningsEnabled() const; static void makeUniqueNetName(const oaModule *module, const oaName &nameIn, oaName &nameOut, oaUInt4 seed = 0); static void makeUniqueNetName(const oaModule *module, const oaUInt4 numBits, oaName &nameOut, oaUInt4 seed = 0); static void makeUniqueTermName(const oaModule *module, const oaName &nameIn, oaName &nameOut, oaUInt4 seed = 0); static void oaNameToString(const oaName &name, oaString &str); static oaBoolean oaStringToName(const oaString &str, oaName &name); static const oaString libOptionDefault; static const oaString globalsOptionDefault; static const oaString tieHighOptionDefault; static const oaString tieLowOptionDefault; static const oaString viewOptionDefault; protected: const oaNativeNS nativeNS; const oaVerilogNS vns; LibMgrOptions libOptions; oaBoolean fileAndLine; MsgAdapter *msgs; oaBoolean warningsEnabled; oaString topModuleName; oaString globalModName; oaScalarName tieHigh; oaScalarName tieLow; oaScalarName libName; oaScalarName viewName; static const oaChar sep; static const oaString uniqueNamePrefix; static const oaString uniqueNameFmt; static const oaString unconnectedNameFmt; static const oaString anonymousBusName; static const oaString anonymousScalarName;friend class CallbacksIn;friend class CallbacksOut;friend class LeafMgr;friend class CmpTermNames;};END_VERILOG_NAMESPACE#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -