ACT Library
Loading...
Searching...
No Matches
extmacro.h
Go to the documentation of this file.
1/*************************************************************************
2 *
3 * Copyright (c) 2022 Rajit Manohar
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19 *
20 **************************************************************************
21 */
22#ifndef __ACT_EXTMACRO_H__
23#define __ACT_EXTMACRO_H__
24
25#include <act/act.h>
26
63 public:
71
76 bool isValid() { return (_lef == nullptr ? false : true); }
77
81 const char *getLEFFile() { return _lef; }
82
89 void getBBox (long *bllx, long *blly,
90 long *burx, long *bury) {
91 *bllx = llx;
92 *blly = lly;
93 *burx = urx;
94 *bury = ury;
95 }
96
100 const char *getSPICEFile() { return _spice; }
101
105 const char *getVerilogFile() { return _verilog; }
106
110 const char *getName() { return _name; }
111
112 private:
114 char *_name;
115 const char *_lef;
116 const char *_spice;
117 const char *_verilog;
118
119 long llx, lly, urx, ury;
120};
121
122
123#endif /* __ACT_EXTMACRO_H__ */
This is used to record information about a macro from an ACT configuration file.
Definition: extmacro.h:62
const char * getLEFFile()
Definition: extmacro.h:81
Process * _p
the process
Definition: extmacro.h:113
char * _name
name of macro
Definition: extmacro.h:114
long ury
bounding box
Definition: extmacro.h:119
const char * _verilog
verilog path
Definition: extmacro.h:117
const char * _lef
lef path
Definition: extmacro.h:115
long urx
Definition: extmacro.h:119
const char * _spice
spice path
Definition: extmacro.h:116
const char * getSPICEFile()
Definition: extmacro.h:100
void getBBox(long *bllx, long *blly, long *burx, long *bury)
Definition: extmacro.h:89
const char * getName()
Definition: extmacro.h:110
bool isValid()
Definition: extmacro.h:76
const char * getVerilogFile()
Definition: extmacro.h:105
ExternMacro(Process *p)
long llx
Definition: extmacro.h:119
long lly
Definition: extmacro.h:119
User-defined processes.
Definition: types.h:750