From: Florent Kermarrec Date: Fri, 16 Jan 2015 22:50:33 +0000 (+0100) Subject: drivers: fix mask generation when using cond X-Git-Tag: 24jan2021_ls180~2575^2~47 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fadac0cf83a41c6ff41d97881e4b029cb9a74aa4;p=litex.git drivers: fix mask generation when using cond --- diff --git a/miscope/host/drivers.py b/miscope/host/drivers.py index a3d65633..44084646 100644 --- a/miscope/host/drivers.py +++ b/miscope/host/drivers.py @@ -71,7 +71,7 @@ class MiLaDriver(): if cond is not None: for k, v in cond.items(): trigger |= getattr(self, k+"_o")*v - mask |= getattr(self, k+"_m")*v + mask |= getattr(self, k+"_m") t = getattr(self, "mila_trigger_port{d}_trig".format(d=int(port))) m = getattr(self, "mila_trigger_port{d}_mask".format(d=int(port))) t.write(trigger)