Skip to content

Commit

Permalink
Fix mux ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardt committed Nov 8, 2018
1 parent 13a25cc commit aec89be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/operators.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Language](https://ieeexplore.ieee.org/document/8299595) (page 256, Table 11-1
| Verilog Operator | Magma Operator | Types | Context | Comments |
|------------------|----------------| ----- | ------- | -------- |
| `?:` | `<true_exp> if <cond> else <false_exp>` | `true_exp : T`, `cond_exp : Bit`, `false_exp : T` | `m.circuit.combinational` | Currently only supported inside the `m.circuit.combinational` syntax because it requires inspection of the AST and rewriting it into a `Mux`. The true expression and the false expression should have the same type, the condition expression should have a Bit type. |
| `?:` | `mantle.mux([<true_exp>, <false_exp>], <cond>)` | `true_exp : T`, `cond_exp : Bit`, `false_exp : T` | All | |
| `?:` | `mantle.mux([<false_exp>, <true_exp>], <cond>)` | `true_exp : T`, `cond_exp : Bit`, `false_exp : T` | All | |

#### Unary Logical Operators
| Verilog Operator | Magma Operator | Types | Context | Comments |
Expand Down

0 comments on commit aec89be

Please sign in to comment.