From: Sebastien Bourdeauducq Date: Mon, 27 Jul 2015 03:46:11 +0000 (+0800) Subject: resetless -> reset_less X-Git-Tag: 24jan2021_ls180~2099^2~32 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f32f9be17afdb4834738dd078c80ce7ad727f22d;p=litex.git resetless -> reset_less --- diff --git a/migen/fhdl/structure.py b/migen/fhdl/structure.py index b474e856..5547d74c 100644 --- a/migen/fhdl/structure.py +++ b/migen/fhdl/structure.py @@ -327,14 +327,14 @@ class ResetSignal(Value): ---------- cd : str 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 error. """ - def __init__(self, cd="sys", allow_resetless=False): + def __init__(self, cd="sys", allow_reset_less=False): Value.__init__(self) self.cd = cd - self.allow_resetless = allow_resetless + self.allow_reset_less = allow_reset_less # statements diff --git a/migen/fhdl/tools.py b/migen/fhdl/tools.py index f9f62f78..8be41e47 100644 --- a/migen/fhdl/tools.py +++ b/migen/fhdl/tools.py @@ -193,7 +193,7 @@ class _BasicLowerer(_Lowerer): def visit_ResetSignal(self, node): rst = self.clock_domains[node.cd].rst if rst is None: - if node.allow_resetless: + if node.allow_reset_less: return 0 else: raise ValueError("Attempted to get reset signal of resetless"