# Hurricane VLSI Database

ViaLayer.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/ViaLayer.h" |
29 // +-----------------------------------------------------------------+
30
31
32 #ifndef HURRICANE_VIA_LAYER_H
33 #define HURRICANE_VIA_LAYER_H
34
35 #include <vector>
36
37 #include "hurricane/Layer.h"
38 #include "hurricane/ViaLayers.h"
39
40
41 namespace Hurricane {
42
43 // -------------------------------------------------------------------
44 // Class : "Hurricane::ViaLayer".
45
46 class ViaLayer : public Layer {
47 public:
48 typedef Layer Super;
49
50 public:
51 // Constructor.
52 static ViaLayer* create ( Technology* technology
53 , const Name& name
54 , BasicLayer* bottomLayer
55 , BasicLayer* cutLayer
56 , BasicLayer* topLayer
57 );
58 // Accessors.
59 virtual BasicLayers getBasicLayers () const;
60 virtual const Layer* getCut () const;
61 virtual const Layer* getTop () const;
62 virtual const Layer* getBottom () const;
63 virtual const Layer* getOpposite ( const Layer* ) const;
64 virtual DbU::Unit getEnclosure ( uint32_t flags ) const;
65 virtual DbU::Unit getEnclosure ( const BasicLayer* layer, uint32_t flags ) const;
66 virtual DbU::Unit getTopEnclosure ( uint32_t flags ) const;
67 virtual DbU::Unit getBottomEnclosure ( uint32_t flags ) const;
68 // Updators.
69 virtual void setEnclosure ( const BasicLayer* layer, DbU::Unit enclosure, uint32_t flags );
70 // Hurricane Managment.
71 virtual void _toJson ( JsonWriter* ) const;
72 virtual void _onDbuChange ( float scale );
73 virtual string _getTypeName () const;
74 virtual string _getString () const;
75 virtual Record* _getRecord () const;
76
77 private:
78 // Internal: Attributes
79 vector<BasicLayer*> _basicLayers;
80 vector< pair<DbU::Unit,DbU::Unit> > _enclosures;
81 DbU::Unit _maximalEnclosure;
82
83 protected:
84 // Internal: Constructors & Destructors.
85 ViaLayer ( Technology* technology
86 , const Name& name
87 , BasicLayer* bottomLayer
88 , BasicLayer* cutLayer
89 , BasicLayer* topLayer
90 );
91 };
92
93
94 // -------------------------------------------------------------------
95 // Class : "Hurricane::JsonViaLayer".
96
97 class JsonViaLayer : public JsonLayer {
98 public:
99 static void initialize ();
100 JsonViaLayer ( unsigned long flags );
101 ~JsonViaLayer ();
102 virtual string getTypeName () const;
103 virtual JsonViaLayer* clone ( unsigned long ) const;
104 virtual void toData ( JsonStack& );
105 };
106
107
108 } // End of Hurricane namespace.
109
110
111 INSPECTOR_P_SUPPORT(Hurricane::ViaLayer);
112
113
114 # 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::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
Hurricane::ViaLayer
ViaLayer description (API)
Definition: ViaLayer.h:46
Hurricane::ViaLayer::create
static ViaLayer * create(Technology *technology, const Name &name, BasicLayer *bottomLayer, BasicLayer *cutLayer, BasicLayer *topLayer)

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