resetless -> reset_less
This commit is contained in:
parent
cc6877df9e
commit
f32f9be17a
|
@ -327,14 +327,14 @@ class ResetSignal(Value):
|
||||||
----------
|
----------
|
||||||
cd : str
|
cd : str
|
||||||
Clock domain to obtain a reset signal for. Defaults to `"sys"`.
|
Clock domain to obtain a reset signal for. Defaults to `"sys"`.
|
||||||
allow_resetless : bool
|
allow_reset_less : bool
|
||||||
If the clock domain is resetless, return 0 instead of reporting an
|
If the clock domain is resetless, return 0 instead of reporting an
|
||||||
error.
|
error.
|
||||||
"""
|
"""
|
||||||
def __init__(self, cd="sys", allow_resetless=False):
|
def __init__(self, cd="sys", allow_reset_less=False):
|
||||||
Value.__init__(self)
|
Value.__init__(self)
|
||||||
self.cd = cd
|
self.cd = cd
|
||||||
self.allow_resetless = allow_resetless
|
self.allow_reset_less = allow_reset_less
|
||||||
|
|
||||||
# statements
|
# statements
|
||||||
|
|
||||||
|
|
|
@ -193,7 +193,7 @@ class _BasicLowerer(_Lowerer):
|
||||||
def visit_ResetSignal(self, node):
|
def visit_ResetSignal(self, node):
|
||||||
rst = self.clock_domains[node.cd].rst
|
rst = self.clock_domains[node.cd].rst
|
||||||
if rst is None:
|
if rst is None:
|
||||||
if node.allow_resetless:
|
if node.allow_reset_less:
|
||||||
return 0
|
return 0
|
||||||
else:
|
else:
|
||||||
raise ValueError("Attempted to get reset signal of resetless"
|
raise ValueError("Attempted to get reset signal of resetless"
|
||||||
|
|
Loading…
Reference in New Issue