Binary arithmetic is an essential component of almost every digital system. Performing binary arithmetic in HDL involves a number of subtleties that must be addressed to operate correctly. This lecture summarizes the basics of creating proper digital arithmetic HDL using Verilog 2001 (and thus SystemVerilog).
- Binary representations: ones complement, unsigned, twos-complement
- Addition/Subtraction with unsigned and twos complement (overflow and overflow detection)
- Hardware implementations of addition/subtraction
- Mathematics and hardware implementation of binary Multiplication
- unsigned/unsigned
- signed/unsigned and signed/unsigned
- signed/signed