Hurricane VLSI Database


DiffusionLayer.h
1 // -*- C++ -*-
2 //
3 // Copyright (c) BULL S.A. 2000-2018, All Rights Reserved
4 //
5 // This file is part of Hurricane.
6 //
7 // Hurricane is free software: you can redistribute it and/or modify
8 // it under the terms of the GNU Lesser General Public License as
9 // published by the Free Software Foundation, either version 3 of the
10 // License, or (at your option) any later version.
11 //
12 // Hurricane is distributed in the hope that it will be useful, but
13 // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN-
14 // TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Lesser GNU
15 // General Public License for more details.
16 //
17 // You should have received a copy of the Lesser GNU General Public
18 // License along with Hurricane. If not, see
19 // <http://www.gnu.org/licenses/>.
20 //
21 // +-----------------------------------------------------------------+
22 // | H U R R I C A N E |
23 // | V L S I B a c k e n d D a t a - B a s e |
24 // | |
25 // | Author : Jean-Paul Chaput |
26 // | E-mail : Jean-Paul.Chaput@lip6.fr |
27 // | =============================================================== |
28 // | C++ Header : "./hurricane/DiffusionLayer.h" |
29 // +-----------------------------------------------------------------+
30 
31 
32 #ifndef HURRICANE_DIFFUSION_LAYER_H
33 #define HURRICANE_DIFFUSION_LAYER_H
34 
35 #include <vector>
36 
37 #include "hurricane/Layer.h"
38 
39 
40 namespace Hurricane {
41 
42 // -------------------------------------------------------------------
43 // Class : "Hurricane::DiffusionLayer".
44 
45  class DiffusionLayer : public Layer {
46  public:
47  typedef Layer Super;
48 
49  public:
50  // Constructor.
51  static DiffusionLayer* create ( Technology* technology
52  , const Name& name
53  , BasicLayer* activeLayer
54  , BasicLayer* diffusionLayer
55  , BasicLayer* wellLayer
56  );
57  // Accessors.
58  virtual BasicLayers getBasicLayers () const;
59  virtual DbU::Unit getExtentionCap () const;
60  virtual DbU::Unit getExtentionWidth () const;
61  virtual DbU::Unit getExtentionCap ( const BasicLayer* layer ) const;
62  virtual DbU::Unit getExtentionWidth ( const BasicLayer* layer ) const;
63  // Updators.
64  virtual void setExtentionCap ( const BasicLayer* layer, DbU::Unit cap );
65  virtual void setExtentionWidth ( const BasicLayer* layer, DbU::Unit width );
66  // Hurricane Managment.
67  virtual void _toJson ( JsonWriter* ) const;
68  virtual void _onDbuChange ( float scale );
69  virtual string _getTypeName () const;
70  virtual string _getString () const;
71  virtual Record* _getRecord () const;
72 
73  private:
74  // Internal: Attributes
75  vector<BasicLayer*> _basicLayers;
76  vector<DbU::Unit> _extentionCaps;
77  vector<DbU::Unit> _extentionWidths;
78  DbU::Unit _maximalExtentionCap;
79  DbU::Unit _maximalExtentionWidth;
80 
81  protected:
82  // Internal: Constructors & Destructors.
83  DiffusionLayer ( Technology* technology
84  , const Name& name
85  , BasicLayer* activeLayer
86  , BasicLayer* diffusionLayer
87  , BasicLayer* wellLayer
88  );
89  };
90 
91 
92 // -------------------------------------------------------------------
93 // Class : "Hurricane::JsonDiffusionLayer".
94 
95  class JsonDiffusionLayer : public JsonLayer {
96  public:
97  static void initialize ();
98  JsonDiffusionLayer ( unsigned long flags );
99  ~JsonDiffusionLayer ();
100  virtual string getTypeName () const;
101  virtual JsonDiffusionLayer* clone ( unsigned long ) const;
102  virtual void toData ( JsonStack& );
103  };
104 
105 
106 } // End of Hurricane namespace.
107 
108 
109 INSPECTOR_P_SUPPORT(Hurricane::DiffusionLayer);
110 
111 
112 #endif
BasicLayer description (API)
Definition: BasicLayer.h:44
DataBase object root class (API).
Definition: DBo.h:45
std::int64_t Unit
Definition: DbU.h:67
DiffusionLayer description (API)
Definition: DiffusionLayer.h:45
static DiffusionLayer * create(Technology *technology, const Name &name, BasicLayer *activeLayer, BasicLayer *diffusionLayer, BasicLayer *wellLayer)
JSON Parser Stack.
Definition: JsonObject.h:249
Layer description (API)
Definition: Layer.h:52
Name description (API)
Definition: Name.h:35
Technological rules description (API).
Definition: Technology.h:62
The namespace dedicated to Hurricane.
Definition: Generalities.dox:5


Generated by doxygen 1.9.1 on Thu Aug 11 2022 Return to top of page
Hurricane VLSI Database Copyright © 2000-2020 Bull S.A. All rights reserved