2019-04-26 12:21:50 -07:00
|
|
|
# See LICENSE for licensing information.
|
|
|
|
|
#
|
2024-01-03 14:32:44 -08:00
|
|
|
# Copyright (c) 2016-2024 Regents of the University of California and The Board
|
2019-06-14 08:43:41 -07:00
|
|
|
# of Regents for the Oklahoma Agricultural and Mechanical College
|
|
|
|
|
# (acting for and on behalf of Oklahoma State University)
|
|
|
|
|
# All rights reserved.
|
2019-04-26 12:21:50 -07:00
|
|
|
#
|
2022-11-27 13:01:20 -08:00
|
|
|
from openram import debug
|
|
|
|
|
from openram.tech import cell_properties as props
|
2022-07-13 10:57:56 -07:00
|
|
|
from .bitcell_base import bitcell_base
|
2020-10-27 09:23:11 -07:00
|
|
|
|
2019-10-06 01:08:23 +00:00
|
|
|
|
2022-07-13 10:57:56 -07:00
|
|
|
class bitcell_1port(bitcell_base):
|
2016-11-08 09:57:35 -08: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 13:18:46 -08:00
|
|
|
def __init__(self, name):
|
2020-11-14 08:08:42 -08:00
|
|
|
super().__init__(name, prop=props.bitcell_1port)
|
2017-11-14 13:24:14 -08:00
|
|
|
debug.info(2, "Create bitcell")
|
2016-11-08 09:57:35 -08:00
|
|
|
|
2019-10-06 01:08:23 +00: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-17 15:05:07 -08:00
|
|
|
|