2021-08-18 20:21:52 +02:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
# See LICENSE for licensing information.
|
|
|
|
|
#
|
2023-01-29 07:56:27 +01:00
|
|
|
# Copyright (c) 2016-2023 Regents of the University of California
|
2021-08-18 20:21:52 +02:00
|
|
|
# All rights reserved.
|
|
|
|
|
#
|
|
|
|
|
|
2022-11-27 22:01:20 +01:00
|
|
|
from openram import debug
|
|
|
|
|
from openram.base import design
|
2023-08-27 03:54:07 +02:00
|
|
|
from openram.tech import cell_properties as props
|
2021-08-18 20:21:52 +02:00
|
|
|
|
|
|
|
|
|
2022-07-13 19:57:56 +02:00
|
|
|
class sky130_corner(design):
|
2021-08-18 20:21:52 +02:00
|
|
|
|
|
|
|
|
def __init__(self, location, name=""):
|
|
|
|
|
if location == "ul":
|
2023-08-27 03:54:07 +02:00
|
|
|
cell_name = "sky130_fd_bd_sram__sram_sp_corner"
|
2021-08-18 20:21:52 +02:00
|
|
|
elif location == "ur":
|
2023-08-27 03:54:07 +02:00
|
|
|
cell_name = "sky130_fd_bd_sram__sram_sp_cornerb"
|
2021-08-18 20:21:52 +02:00
|
|
|
elif location == "ll":
|
2023-08-27 03:54:07 +02:00
|
|
|
cell_name = "sky130_fd_bd_sram__sram_sp_cornera"
|
2021-08-18 20:21:52 +02:00
|
|
|
elif location == "lr":
|
2023-08-27 03:54:07 +02:00
|
|
|
cell_name = "sky130_fd_bd_sram__sram_sp_cornera"
|
2021-08-18 20:21:52 +02:00
|
|
|
else:
|
|
|
|
|
debug.error("Invalid sky130_corner location", -1)
|
2023-08-27 03:54:07 +02:00
|
|
|
super().__init__(name=name, cell_name=cell_name, prop=props.col_cap_1port_strap_power)
|
2025-02-25 08:26:28 +01:00
|
|
|
self.no_instances = True
|
|
|
|
|
|