⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 oaverilogrange.h

📁 openaccess与verilog互相转化时所用的源代码
💻 H
字号:
// *****************************************************************************// *****************************************************************************// oaVerilogRange.h//// This file contains the definition for the parser range class and its public// supporting classes.  The parser range class implements a simple container of// values that may be manipulated by Verilog ranges. Ranges are a pair of// values where one value is a start value and the other value is a stop // value.//// This file also contains the RangeList class.  The RangeList class implements// an ordered list of ranges.  Ranges that are added to the list are owned by// the list. When the list is deleted, the ranges in the list are also deleted.//// This file also contains the RangeListIter class.  The RangeListIter class is// an STL list iterator over a RangeList object.//// *****************************************************************************// 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: sailajad $//  $Revision: 1.16 $//  $Date: 2005/08/05 21:48:55 $//  $State: Exp $// *****************************************************************************// *****************************************************************************#ifndef	oaVerilogRange_P#define	oaVerilogRange_PBEGIN_VERILOG_NAMESPACE// *****************************************************************************// Range// *****************************************************************************class OA_VERILOG_DLL_API Range {  public:			    Range();			    Range(oaInt4    init);			    Range(oaInt4    start, 				  oaInt4    stop);			    Range(const Value	&init);			    Range(const Value	&start,					  const Value	&stop);    void		    init(const Value	&startIn, 				 const Value	&stopIn);    void		    setStartVal(const Value &value);    void		    setStopVal(const Value  &value);    oaUInt4		    getStartInt() const;    oaUInt4		    getStopInt() const;    Value		    &getStartVal();    Value		    &getStopVal();  private:    Value		    startVal;    Value		    stopVal;};// *****************************************************************************// RangeList// *****************************************************************************class OA_VERILOG_DLL_API RangeList 		         : public std::list<Range*> {  public:			    RangeList();			    ~RangeList();};// *****************************************************************************// RangeListIter// *****************************************************************************typedef	RangeList::const_iterator  RangeListIter;END_VERILOG_NAMESPACE#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -