2019-04-26 21:21:50 +02:00
|
|
|
# See LICENSE for licensing information.
|
|
|
|
|
#
|
2019-06-14 17:43:41 +02:00
|
|
|
# Copyright (c) 2016-2019 Regents of the University of California and The Board
|
|
|
|
|
# of Regents for the Oklahoma Agricultural and Mechanical College
|
|
|
|
|
# (acting for and on behalf of Oklahoma State University)
|
|
|
|
|
# All rights reserved.
|
2019-04-26 21:21:50 +02:00
|
|
|
#
|
2016-11-08 18:57:35 +01:00
|
|
|
import debug
|
2020-02-12 14:48:58 +01:00
|
|
|
from tech import cell_properties as props
|
2019-10-06 03:08:23 +02:00
|
|
|
import bitcell_base
|
2020-10-27 17:23:11 +01:00
|
|
|
|
2019-10-06 03:08:23 +02:00
|
|
|
|
2020-11-13 17:09:21 +01:00
|
|
|
class bitcell_1port(bitcell_base.bitcell_base):
|
2016-11-08 18:57:35 +01:00
|
|
|
"""
|
|
|
|
|
A single bit cell (6T, 8T, etc.) This module implements the
|
|
|
|
|
single memory cell used in the design. It is a hand-made cell, so
|
|
|
|
|
the layout and netlist should be available in the technology
|
|
|
|
|
library.
|
|
|
|
|
"""
|
|
|
|
|
|
2020-11-03 22:18:46 +01:00
|
|
|
def __init__(self, name):
|
2020-11-14 17:08:42 +01:00
|
|
|
super().__init__(name, prop=props.bitcell_1port)
|
2017-11-14 22:24:14 +01:00
|
|
|
debug.info(2, "Create bitcell")
|
2016-11-08 18:57:35 +01:00
|
|
|
|
2019-10-06 03:08:23 +02:00
|
|
|
def build_graph(self, graph, inst_name, port_nets):
|
|
|
|
|
"""
|
|
|
|
|
Adds edges based on inputs/outputs.
|
|
|
|
|
Overrides base class function.
|
|
|
|
|
"""
|
|
|
|
|
self.add_graph_edges(graph, port_nets)
|
2020-11-18 00:05:07 +01:00
|
|
|
|
|
|
|
|
def is_non_inverting(self):
|
|
|
|
|
"""Return input to output polarity for module"""
|
|
|
|
|
|
2020-11-22 17:24:47 +01:00
|
|
|
return False
|