-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathnand2.py
41 lines (31 loc) · 1.46 KB
/
nand2.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301, USA. (See LICENSE for licensing information)
import design
import debug
import utils
from tech import GDS,layer
class nand2(design.design):
"""
A single nand2 cell. This module implements the
single 2 input nand cell used in the design. It is a hand-made cell, so
the layout and netlist should be available in the technology library.
"""
pin_names = ["A", "B", "Z", "vdd", "gnd"]
(width,height) = utils.get_libcell_size("nand2", GDS["unit"], layer["boundary"])
pin_map = utils.get_libcell_pins(pin_names, "nand2", GDS["unit"])
def __init__(self):
design.design.__init__(self, "nand2")
debug.info(2, "Create nand2")
self.width = nand2.width
self.height = nand2.height
self.pin_map = nand2.pin_map