Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 872 Bytes

arith1.md

File metadata and controls

19 lines (14 loc) · 872 Bytes

Digital Arithmetic #1

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).

Reading

Key Concepts

  • 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