# Hurricane VLSI Database

TransistorLayer.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/TransistorLayer.h" |
29 // +-----------------------------------------------------------------+
30
31
32 #ifndef HURRICANE_TRANSISTOR_LAYER_H
33 #define HURRICANE_TRANSISTOR_LAYER_H
34
35 #include <vector>
36
37 #include "hurricane/Layer.h"
38 #include "hurricane/TransistorLayers.h"
39
40
41 namespace Hurricane {
42
43 // -------------------------------------------------------------------
44 // Class : "Hurricane::TransistorLayer".
45
46 class TransistorLayer : public Layer {
47 public:
48 typedef Layer Super;
49
50 public:
51 // Constructor.
52 static TransistorLayer* create ( Technology* technology
53 , const Name& name
54 , BasicLayer* gateLayer
55 , BasicLayer* activeLayer
56 , BasicLayer* diffusionLayer
57 , BasicLayer* wellLayer
58 );
59 // Accessors.
60 virtual BasicLayers getBasicLayers () const;
61 virtual DbU::Unit getExtentionCap () const;
62 virtual DbU::Unit getExtentionWidth () const;
63 virtual DbU::Unit getExtentionCap ( const BasicLayer* layer ) const;
64 virtual DbU::Unit getExtentionWidth ( const BasicLayer* layer ) const;
65 // Updators.
66 virtual void setExtentionCap ( const BasicLayer* layer, DbU::Unit cap );
67 virtual void setExtentionWidth ( const BasicLayer* layer, DbU::Unit width );
68 // Hurricane Managment.
69 virtual void _toJson ( JsonWriter* ) const;
70 virtual void _onDbuChange ( float scale );
71 virtual string _getTypeName () const;
72 virtual string _getString () const;
73 virtual Record* _getRecord () const;
74
75 private:
76 // Internal: Attributes
77 vector<BasicLayer*> _basicLayers;
78 vector<DbU::Unit> _extentionCaps;
79 vector<DbU::Unit> _extentionWidths;
80 DbU::Unit _maximalExtentionCap;
81 DbU::Unit _maximalExtentionWidth;
82
83 protected:
84 // Internal: Constructors & Destructors.
85 TransistorLayer ( Technology* technology
86 , const Name& name
87 , BasicLayer* gateLayer
88 , BasicLayer* activeLayer
89 , BasicLayer* diffusionLayer
90 , BasicLayer* wellLayer
91 );
92 };
93
94
95 // -------------------------------------------------------------------
96 // Class : "Hurricane::JsonTransistorLayer".
97
98 class JsonTransistorLayer : public JsonLayer {
99 public:
100 static void initialize ();
101 JsonTransistorLayer ( unsigned long flags );
102 ~JsonTransistorLayer ();
103 virtual string getTypeName () const;
104 virtual JsonTransistorLayer* clone ( unsigned long ) const;
105 virtual void toData ( JsonStack& );
106 };
107
108
109 } // End of Hurricane namespace.
110
111
112 INSPECTOR_P_SUPPORT(Hurricane::TransistorLayer);
113
114
115 # endif
Hurricane::BasicLayer
BasicLayer description (API)
Definition: BasicLayer.h:44
Hurricane::Name
Name description (API)
Definition: Name.h:36
Hurricane::DbU::Unit
std::int64_t Unit
Definition: DbU.h:70
Hurricane::DBo
DataBase object root class (API).
Definition: DBo.h:47
Hurricane::TransistorLayer
TransistorLayer description (API)
Definition: TransistorLayer.h:46
Hurricane::JsonStack
JSON Parser Stack.
Definition: JsonObject.h:249
Hurricane::TransistorLayer::create
static TransistorLayer * create(Technology *technology, const Name &name, BasicLayer *gateLayer, BasicLayer *activeLayer, BasicLayer *diffusionLayer, BasicLayer *wellLayer)
Hurricane::Layer
Layer description (API)
Definition: Layer.h:52
Hurricane
The namespace dedicated to Hurricane.
Definition: Generalities.dox:5
Hurricane::Technology
Technological rules description (API).
Definition: Technology.h:66

Generated by doxygen 1.8.14 on Sun Mar 8 2020 | Return to top of page

Hurricane VLSI Database | Copyright © 2000-2016 Bull S.A. All rights reserved