Codiode
All tracks
Circuit Lab · Advanced

Arithmetic and ALU Design

Build the computational core of a processor. Design ALU slices, carry chains, barrel shifters and multiplier circuits.

What you will learn

Arithmetic circuits are at the heart of every CPU and DSP chip. This track covers:

  • 4-bit ALU slice design and carry propagation
  • Overflow detection in two's complement arithmetic
  • BCD arithmetic circuits and barrel shifter
  • Combinational multiplier circuit
  • Fixed-point representation and arithmetic
  • IEEE 754 floating-point addition
32 problems in 7 sections
32 problems in 7 sections
Section 1

Signed Arithmetic and Overflow

4
01Two's Complement InverterBuild10 GE02Adder Subtractor Mode ControlBuild15 GE03Signed Overflow DetectionBuild15 GE04Sign Extension ArrayBuild10 GE
Section 2

Advanced Addition and Carry Logic

4
05Generate and Propagate LogicBuild15 GE064-bit Carry Lookahead BlockBuild25 GE07Carry Select Adder Multiplexer StageBuild15 GE08Ripple Carry Critical Path AnalysisAnalyze15 GE
Section 3

Arithmetic Logic Unit Building Blocks

5
091-Bit ALU SliceBuild15 GE10ALU Zero Flag LogicBuild10 GE11ALU Less Than Flag LogicBuild25 GE12ALU Flag Evaluation Branch LogicBuild25 GE13Composite ALU DatapathBuild25 GE
Section 4

Binary Coded Decimal Arithmetic

3
14Invalid BCD DetectorBuild10 GE15BCD Adder Correction BlockBuild15 GE16BCD Ten's ComplementerBuild25 GE
Section 5

Shifting and Scaling

3
17Logarithmic Barrel Shifter LeftBuild15 GE18Arithmetic Right ShifterBuild10 GE19Bidirectional Barrel Shifter ControlBuild25 GE
Section 6

Combinational Multiplication

3
20Multiplier Partial Product GeneratorBuild15 GE21Multiplier Accumulation ArrayBuild25 GE22Multiplier Critical Path AnalysisAnalyze25 GE
Section 7

Fixed Point and Floating Point Datapaths

10
23Fixed Point Format AlignmentBuild15 GE24Fixed Point Saturation LogicBuild15 GE25Fixed Point Rounding LogicBuild25 GE26IEEE 754 Exponent SubtractorBuild15 GE27IEEE 754 Mantissa Alignment ShifterBuild25 GE28IEEE 754 Leading Zero CounterBuild25 GE29IEEE 754 Normalization ShifterBuild25 GE30Floating Point Exception FlagsBuild15 GE31Floating Point Loss of Precision AnalysisAnalyze15 GE32ALU Borrow LogicDebug15 GE