mirror of
https://github.com/VLSIDA/OpenRAM.git
synced 2026-08-31 10:15:46 +02:00
merge custom cell and module properties
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
#
|
||||
import design
|
||||
from tech import GDS, layer, spice, parameter
|
||||
from tech import module_properties
|
||||
from tech import cell_properties as props
|
||||
import utils
|
||||
|
||||
|
||||
@@ -15,14 +15,14 @@ class dff(design.design):
|
||||
"""
|
||||
Memory address flip-flop
|
||||
"""
|
||||
if not module_properties.dff.use_custom_ports:
|
||||
if not props.dff.use_custom_ports:
|
||||
pin_names = ["D", "Q", "clk", "vdd", "gnd"]
|
||||
type_list = ["INPUT", "OUTPUT", "INPUT", "POWER", "GROUND"]
|
||||
clk_pin = "clk"
|
||||
else:
|
||||
pin_names = module_properties.dff.custom_port_list
|
||||
type_list = module_properties.dff.custom_type_list
|
||||
clk_pin = module_properties.dff.clk_pin
|
||||
pin_names = props.dff.custom_port_list
|
||||
type_list = props.dff.custom_type_list
|
||||
clk_pin = props.dff.clk_pin
|
||||
|
||||
(width, height) = utils.get_libcell_size("dff",
|
||||
GDS["unit"],
|
||||
|
||||
Reference in New Issue
Block a user