OpenRAM/compiler/custom/s8_col_end.py

38 lines
1.2 KiB
Python
Raw Normal View History

2020-09-15 03:11:38 +02:00
# See LICENSE for licensing information.
#
# 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.
#
import debug
import design
import utils
2020-10-08 23:22:09 +02:00
from tech import layer, GDS
2020-09-15 03:11:38 +02:00
2020-10-08 23:22:09 +02:00
class s8_col_end(design.design):
2020-09-15 03:11:38 +02:00
def __init__(self, version, name=""):
super().__init__(name)
if version == "colend":
2020-10-08 12:34:16 +02:00
self.name = "s8sram16x16_colend"
2020-09-15 03:11:38 +02:00
elif version == "colend_p_cent":
self.name = "s8sram16x16_colend_p_cent"
elif version == "colenda":
self.name = "s8sram16x16_colenda"
elif version == "colenda_p_cent":
self.name = "s8sram16x16_colenda_p_cent"
else:
debug.error("Invalid type for col_end", -1)
design.design.__init__(self, name=self.name)
(self.width, self.height) = utils.get_libcell_size(self.name,
2020-10-08 23:22:09 +02:00
GDS["unit"],
layer["mem"])
# pin_map = utils.get_libcell_pins(pin_names, self.name, GDS["unit"])
2020-09-15 03:11:38 +02:00