projects
/
nmigen.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
hdl.ast: simplify Mux implementation.
[nmigen.git]
/
nmigen
/
hdl
/
ast.py
diff --git
a/nmigen/hdl/ast.py
b/nmigen/hdl/ast.py
index 685924ac2f9481e12cb2d9424db4e619ec71d14a..5ed3a77dd3cdbb9934dfb57054908c2b11b6a8a0 100644
(file)
--- a/
nmigen/hdl/ast.py
+++ b/
nmigen/hdl/ast.py
@@
-735,9
+735,6
@@
def Mux(sel, val1, val0):
Value, out
Output ``Value``. If ``sel`` is asserted, the Mux returns ``val1``, else ``val0``.
"""
- sel = Value.cast(sel)
- if len(sel) != 1:
- sel = sel.bool()
return Operator("m", [sel, val1, val0])