write_driver/array: Remove hardcoded pin names

all pin names should be wrapped into a function/property. This ensures
that there is exactly one place to change the name.

Signed-off-by: Bastian Koppelmann <[email protected]>
This commit is contained in:
Bastian Koppelmann
2020-02-17 14:23:26 +01:00
parent 656fdd1008
commit c06cb2bfc2
2 changed files with 44 additions and 25 deletions
+8
View File
@@ -43,6 +43,14 @@ class write_driver(design.design):
def get_br_names(self):
return "br"
@property
def din_name(self):
return "din"
@property
def en_name(self):
return "en"
def get_w_en_cin(self):
"""Get the relative capacitance of a single input"""
# This is approximated from SCMOS. It has roughly 5 3x transistor gates.