Skip to content

Commit

Permalink
Add eq, neq to operations table. (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaloney-sf authored Mar 28, 2024
1 parent ff633ed commit 0e15e53
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -3656,8 +3656,18 @@ Together with the divide operator, the modulus operator satisfies the relationsh

| Name | Arguments | Parameters | Arg Types | Result Type | Result Width |
|--------|-----------|------------|-------------|-------------|--------------|
| lt,leq | | | (UInt,UInt) | UInt | 1 |
| gt,geq | (e1,e2) | () | (SInt,SInt) | UInt | 1 |
| eq,neq | (e1,e2) | () | (UInt,UInt) | UInt | 1 |
| | | | (SInt,SInt) | UInt | 1 |

| Name | Arguments | Parameters | Arg Types | Result Type | Result Width |
|--------|-----------|------------|-------------|-------------|--------------|
| lt,leq | (e1,e2) | () | (UInt,UInt) | UInt | 1 |
| | | | (SInt,SInt) | UInt | 1 |

| Name | Arguments | Parameters | Arg Types | Result Type | Result Width |
|--------|-----------|------------|-------------|-------------|--------------|
| gt,geq | (e1,e2) | () | (UInt,UInt) | UInt | 1 |
| | | | (SInt,SInt) | UInt | 1 |

The comparison operations return an unsigned 1 bit signal with value one if e1 is less than (lt), less than or equal to (leq), greater than (gt), greater than or equal to (geq), equal to (eq), or not equal to (neq) e2.
The operation returns a value of zero otherwise.
Expand Down

0 comments on commit 0e15e53

Please sign in to comment.