# Hurricane VLSI Database

ContactLayer.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/ContactLayer.h" |
29 // +-----------------------------------------------------------------+
30
31
32 #ifndef HURRICANE_CONTACT_LAYER_H
33 #define HURRICANE_CONTACT_LAYER_H
34
35 #include <vector>
36
37 #include "hurricane/Layer.h"
38
39
40 namespace Hurricane {
41
42
43 // -------------------------------------------------------------------
44 // Class : "Hurricane::ContactLayer".
45
46 class ContactLayer : public Layer {
47 public:
48 typedef Layer Super;
49
50 public:
51 // Constructor.
52 static ContactLayer* create ( Technology* technology
53 , const Name& name
54 , BasicLayer* metalLayer
55 , BasicLayer* cutLayer
56 , BasicLayer* activeLayer
57 , BasicLayer* diffusionLayer
58 , BasicLayer* wellLayer
59 );
60 // Accessors.
61 virtual BasicLayers getBasicLayers () const;
62 virtual DbU::Unit getEnclosure ( uint32_t flags ) const;
63 virtual DbU::Unit getEnclosure ( const BasicLayer* layer, uint32_t flags ) const;
64 // Updators.
65 virtual void setEnclosure ( const BasicLayer* layer, DbU::Unit enclosure, uint32_t flags );
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< pair<DbU::Unit,DbU::Unit> > _enclosures;
77 DbU::Unit _maximalEnclosure;
78
79 protected:
80 ContactLayer ( Technology* technology
81 , const Name& name
82 , BasicLayer* metalLayer
83 , BasicLayer* cutLayer
84 , BasicLayer* activeLayer
85 , BasicLayer* diffusionLayer
86 , BasicLayer* wellLayer
87 );
88 };
89
90
91 // -------------------------------------------------------------------
92 // Class : "Hurricane::JsonContactLayer".
93
94 class JsonContactLayer : public JsonLayer {
95 public:
96 static void initialize ();
97 JsonContactLayer ( unsigned long flags );
98 ~JsonContactLayer ();
99 virtual string getTypeName () const;
100 virtual JsonContactLayer* clone ( unsigned long ) const;
101 virtual void toData ( JsonStack& );
102 };
103
104
105 } // End of Hurricane namespace.
106
107
108 INSPECTOR_P_SUPPORT(Hurricane::ContactLayer);
109
110
111 # endif
Hurricane::BasicLayer
BasicLayer description (API)
Definition: BasicLayer.h:44
Hurricane::ContactLayer::create
static ContactLayer * create(Technology *technology, const Name &name, BasicLayer *metalLayer, BasicLayer *cutLayer, BasicLayer *activeLayer, BasicLayer *diffusionLayer, BasicLayer *wellLayer)
Hurricane::Name
Name description (API)
Definition: Name.h:36
Hurricane::DbU::Unit
std::int64_t Unit
Definition: DbU.h:70
Hurricane::ContactLayer
ContactLayer description (API)
Definition: ContactLayer.h:46
Hurricane::DBo
DataBase object root class (API).
Definition: DBo.h:47
Hurricane::JsonStack
JSON Parser Stack.
Definition: JsonObject.h:249
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