Skip to content

Commit ba5dc39

Browse files
Adjust priorities
1 parent c260e09 commit ba5dc39

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

hwcomponents_library/library/aladdin.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ class AladdinAdder(LibraryEstimatorClassBase):
3939
The width of the adder in bits. This is the number of bits of the input values.
4040
"""
4141
component_name = ["Adder", "AladdinAdder", "IntAdder"]
42+
priority = 0.1
4243

4344
def __init__(self, tech_node: float, width: int = 32):
4445
super().__init__(leak_power=2.40e-6, area=278.0e-12)
@@ -94,6 +95,7 @@ class AladdinRegister(LibraryEstimatorClassBase):
9495
The width of the register in bits.
9596
"""
9697
component_name = ["Register", "AladdinRegister"]
98+
priority = 0.1
9799

98100
def __init__(
99101
self,
@@ -169,6 +171,7 @@ class AladdinComparator(LibraryEstimatorClassBase):
169171
The width of the comparator in bits.
170172
"""
171173
component_name = ["Comparator", "AladdinComparator"]
174+
priority = 0.1
172175

173176
def __init__(self, tech_node: float, width: int = 32):
174177
super().__init__(leak_power=2.51e-8, area=71.0e-12)
@@ -229,6 +232,7 @@ class AladdinMultiplier(LibraryEstimatorClassBase):
229232
The width of the second input value in bits.
230233
"""
231234
component_name = ["Multiplier", "AladdinMultiplier", "IntMultiplier"]
235+
priority = 0.1
232236

233237
def __init__(
234238
self,
@@ -306,6 +310,7 @@ class AladdinCounter(LibraryEstimatorClassBase):
306310
The width of the counter in bits.
307311
"""
308312
component_name = ["Counter", "AladdinCounter"]
313+
priority = 0.1
309314

310315
def __init__(self, tech_node: float, width: int = 32):
311316
super().__init__(leak_power=3.21e-7, area=495.5e-12)
@@ -359,6 +364,7 @@ class AladdinIntMAC(LibraryEstimatorClassBase):
359364
The width of the multiplier in bits.
360365
"""
361366
component_name = ["IntMAC", "AladdinIntMAC"]
367+
priority = 0.1
362368

363369
def __init__(
364370
self, tech_node: float, adder_width: int = 16, multiplier_width: int = 8

hwcomponents_library/library/misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class SmartBufferSRAM(LibraryEstimatorClassBase):
126126
"""
127127

128128
component_name = ["smart_buffer_sram", "smartbuffer_sram", "smartbuffersram"]
129-
priority = 0.5
129+
priority = 0.3
130130

131131
def __init__(
132132
self,

0 commit comments

Comments
 (0)