mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
drivers: fix mask generation when using cond
This commit is contained in:
parent
8f14f67ea6
commit
fadac0cf83
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue