Skip to content

Commit

Permalink
Changed Array to Seq in MuxLookup explantation (#3547) (#3549)
Browse files Browse the repository at this point in the history
(cherry picked from commit 1ae807a)

Co-authored-by: Mads Rumle Nordstrøm <[email protected]>
  • Loading branch information
mergify[bot] and madsrumlenordstrom authored Sep 25, 2023
1 parent dd30a13 commit afb75de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/explanations/muxes-and-input-selection.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ array [ condition -> selected_input_port ].
Chisel also provides `MuxLookup` which is an n-way indexed multiplexer:

```scala
MuxLookup(idx, default)(Array(0.U -> a, 1.U -> b, ...))
MuxLookup(idx, default)(Seq(0.U -> a, 1.U -> b, ...))
```

This is the same as a `MuxCase`, where the conditions are all index based selection:
Expand Down

0 comments on commit afb75de

Please sign in to comment.