projects
/
nmutil.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e24498b
)
whitspace
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Wed, 6 Oct 2021 12:36:29 +0000
(13:36 +0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Mon, 1 Nov 2021 18:44:39 +0000
(18:44 +0000)
src/nmutil/mask.py
patch
|
blob
|
history
diff --git
a/src/nmutil/mask.py
b/src/nmutil/mask.py
index e98ca3b7db40e135bbf3ecf75f3bb5a2d0f8fbbe..4a04862afe99dd7c1dcaf225dfd1c89df5935ff3 100644
(file)
--- a/
src/nmutil/mask.py
+++ b/
src/nmutil/mask.py
@@
-9,6
+9,7
@@
from nmigen import Module, Signal, Elaboratable
from nmigen.utils import log2_int
+
def masked(m_out, m_in, mask):
return (m_out & ~mask) | (m_in & mask)
@@
-27,4
+28,3
@@
class Mask(Elaboratable):
m.d.comb += self.mask[i].eq(1)
return m
-