Skip to content

Latest commit

 

History

History
31 lines (27 loc) · 586 Bytes

File metadata and controls

31 lines (27 loc) · 586 Bytes

ALU

Contents

Inputs

Name Bits wide
alu_mode 8-bits
a 32-bits
b 32-bits

Outputs

Name Bits wide
alu_out 32-bits

Functionality

  • alu_mode
    • 0x00: Addition
    • 0x01: Logical Left Shift
    • 0x02; Signed Set on Less Than
    • 0x03: Unsigned Set on Less Than
    • 0x04: Bitwise XOR
    • 0x05: Logical Right Shift
    • 0x06: Bitwise OR
    • 0x07: Bitwise AND
    • 0x20: Subtraction
    • 0x25: Arithmetic Right Shift