From 1bd0710a6e72003e30ee920cebc0dd11cd2a9cad Mon Sep 17 00:00:00 2001 From: Jean THOMAS Date: Mon, 20 Jul 2020 15:50:19 +0200 Subject: [PATCH] Simplify parameters code for DQSPattern --- gram/common.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gram/common.py b/gram/common.py index f9dc486..abe181d 100644 --- a/gram/common.py +++ b/gram/common.py @@ -60,9 +60,9 @@ def get_sys_phases(nphases, sys_latency, cas_latency): return cmd_phase, dat_phase class DQSPattern(Elaboratable): - def __init__(self, preamble=None, postamble=None, wlevel_en=0, wlevel_strobe=0, register=False): - self.preamble = Signal() if preamble is None else preamble - self.postamble = Signal() if postamble is None else postamble + def __init__(self, preamble=Signal(), postamble=Signal(), wlevel_en=0, wlevel_strobe=0, register=False): + self.preamble = preamble + self.postamble = postamble self.o = Signal(8) self._wlevel_en = wlevel_en self._wlevel_strobe = wlevel_strobe -- 2.30.2