From f32f9be17afdb4834738dd078c80ce7ad727f22d Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 27 Jul 2015 11:46:11 +0800 Subject: [PATCH] resetless -> reset_less --- migen/fhdl/structure.py | 6 +++--- migen/fhdl/tools.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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" -- 2.30.2