What single function can I use in chisel to represent a multiplexer with more than two inputs (choices)?
MuxLookup()?
What single function can I use in chisel to represent a multiplexer with more than two inputs (choices)?
MuxLookup()?
Copyright © 2021 Jogjafile Inc.
You can cascade 2-input
Mux
es, describe the behavior through a hierarchy ofwhen
/elsewhen
/otherwise
statements, or useMuxCase
to describe an n-way MuxMuxLookup
implies comparators (in addition to the multiplexers) to match the value of a signal to a number of values.A good description of different chisel Mux constructs is available here: https://www.chisel-lang.org/chisel3/docs/explanations/muxes-and-input-selection.html