📄 oaverilogoptionsout.cpp
字号:
// *****************************************************************************// *****************************************************************************// oaVerilogOptionsOut.cpp//// This file contains the implementation of the OptionsOut class.//// *****************************************************************************// 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.19 $// $Date: 2005/05/14 02:51:40 $// $State: Exp $// *****************************************************************************// *****************************************************************************#include "oaVerilogOutPvt.h"BEGIN_VERILOG_NAMESPACEusing namespace oaUtil;// *****************************************************************************// Initialize static data members.// *****************************************************************************const oaString OptionsOut::printedDesignName("oaVerilogOut::PrintedDesign");const oaString OptionsOut::printedModuleName("oaVerilogOut::PrintedModule");const oaString OptionsOut::busTermPrintedName("oaVerilogOut::BusTermPrinted");const oaString OptionsOut::termPrintedName("oaVerilogOut::TermPrinted");const oaString OptionsOut::busNetPrintedName("oaVerilogOut::BusNetPrinted");const oaString OptionsOut::netPrintedName("oaVerilogOut::NetPrinted");const oaString OptionsOut::itermPrintedName("oaVerilogOut::ItermPrinted");const oaString OptionsOut::termPositionName("oaVerilogOut::TermPosition");// *****************************************************************************// OptionsOut::OptionsOut()//// This is the constructor for the OptionsOut class.// *****************************************************************************OptionsOut::OptionsOut(MsgAdapter &msgsIn): Options(msgsIn), recursive(false), produceLeaf(true), preserveInterface(true), recursiveDesign(false){}// *****************************************************************************// OptionsOut::~OptionsOut()//// This is the destructor for the OptionsOut class. // *****************************************************************************OptionsOut::~OptionsOut(){}// *****************************************************************************// OptionsOut::setFileName()//// This function sets the name of the output file.// *****************************************************************************voidOptionsOut::setFileName(const oaString &outputFileName){ fileName = outputFileName;}// *****************************************************************************// OptionsOut::getFileName()//// This function returns the name of the output file.// *****************************************************************************const oaString&OptionsOut::getFileName(){ return fileName;}// *****************************************************************************// OptionsOut::setCellName()//// This function sets the name of the cell to output.// *****************************************************************************voidOptionsOut::setCellName(const oaString &outputCellName){ cellName.init(vns, outputCellName);}// *****************************************************************************// OptionsOut::getCellName()//// This function returns the name of the cell to output.// *****************************************************************************const oaScalarName&OptionsOut::getCellName(){ return cellName;}// *****************************************************************************// OptionsOut::enableRecursive()//// This function enables (or disables) recursive output of all modules in the // top design's hierarchy.// *****************************************************************************voidOptionsOut::enableRecursive(oaBoolean value){ recursive = value;}// *****************************************************************************// OptionsOut::testRecursive()//// This function returns true if all modules in the input design's hierarchy// should be produced by the writer. Otherwise, it returns false.// *****************************************************************************oaBooleanOptionsOut::testRecursive(){ return recursive;}// *****************************************************************************// OptionsOut::enableRecursiveDesign()//// This function enables (or disables) recursive output of all modules and // designs in the top design's hierarchy.// *****************************************************************************voidOptionsOut::enableRecursiveDesign(oaBoolean value){ recursiveDesign = value;}// *****************************************************************************// OptionsOut::testRecursiveDesign()//// This function returns true if all modules and designs in the input design's // hierarchy should be produced by the writer. Otherwise, it returns false.// *****************************************************************************oaBooleanOptionsOut::testRecursiveDesign(){ return recursiveDesign;}// *****************************************************************************// OptionsOut::enableProduceLeaf()//// This function enables production of leaf modules.// *****************************************************************************voidOptionsOut::enableProduceLeaf(oaBoolean value){ produceLeaf = value;}// *****************************************************************************// OptionsOut::testProduceLeaf()//// This function returns true if leaf cells should be produced by the writer and// false otherwise.// *****************************************************************************oaBooleanOptionsOut::testProduceLeaf(){ return produceLeaf;}// *****************************************************************************// OptionsOut::setLeafFile()//// This function sets the name of the file that will contain leaf modules (if // leaf modules are being produced).// *****************************************************************************voidOptionsOut::setLeafFile(const oaString &file){ leafFile = file;}// *****************************************************************************// OptionsOut::getLeafFile()//// This function returns the name of the file that leaf cells are written to.// *****************************************************************************const oaString&OptionsOut::getLeafFile(){ return leafFile;}// *****************************************************************************// OptionsOut::getPrintedDesignName()//// This function returns the name of the appDef extension that marks designs // which have been produced by the writer.// *****************************************************************************const oaString&OptionsOut::getPrintedDesignName() const{ return printedDesignName;}// *****************************************************************************// OptionsOut::getPrinteModuleName()//// This function returns the name of the appDef extension that marks modules // which have been produced by the writer.// *****************************************************************************const oaString&OptionsOut::getPrintedModuleName() const{ return printedModuleName;}// *****************************************************************************// OptionsOut::enablePreserveInterface()//// This function sets the preserve interface option of the writer to the given// value. If the preserve interface option is set, then the writer will only// produce port declarations and port connections that refer to Terms whose// isInterface state is set.// *****************************************************************************voidOptionsOut::enablePreserveInterface(oaBoolean value){ preserveInterface = value;}// *****************************************************************************// OptionsOut::testPreserveInterface()//// This function returns true if the interfaces of modules should be preserved.// *****************************************************************************oaBooleanOptionsOut::testPreserveInterface(){ return preserveInterface;}END_VERILOG_NAMESPACE
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -