Codiode
All tracks
Circuit Lab · Intermediate

Combinational Building Blocks

Build adders, multiplexers, encoders and decoders from scratch. The core combinational blocks used in every digital system.

PrerequisitesGate-Level Logic
What you will learn

Combinational blocks are reused throughout every design. This track covers:

  • Adders: half, full, ripple-carry, carry-lookahead, BCD
  • Magnitude comparators
  • Multiplexers 2:1 to 8:1 and demultiplexers 1:2 to 1:4
  • Encoders, priority encoders (4:2 and 8:3), decoders (2:4 and 3:8)
  • 7-segment display decoder
  • Implementing Boolean functions using only MUX or only decoder plus gates
42 problems in 12 sections
42 problems in 12 sections
Section 1

Half Adder and Full Adder

5
01Build a Half Adder from GatesBuild10 GE02Full Adder from Half AddersBuild10 GE03Carry-Out of a 1-bit Full Adder (Gate-Level)Build15 GE04NAND-only Full AdderBuild25 GE05Debug a Full Adder Where Sum and Carry Outputs Are Swapped at the Output PinsDebug15 GE
Section 2

Half Subtractor and Full Subtractor

3
06Build a Half SubtractorBuild10 GE07Full Subtractor from Half SubtractorsBuild15 GE08Debug a Full Subtractor with Wrong Borrow ExpressionDebug15 GE
Section 3

Adder/Subtractor Circuit and Overflow Detection

3
094-Bit 2's Complement Adder/SubtractorBuild25 GE10Debug 2-Bit Adder/SubtractorDebug25 GE11Signed Overflow Detection in Two's Complement AdditionAnalyze15 GE
Section 4

Ripple Carry Adder

1
124-Bit Ripple Carry AdderBuild15 GE
Section 5

Carry Lookahead Adder

1
134-bit Carry Lookahead BlockBuild25 GE
Section 6

BCD Adder

1
14BCD Adder with Dual Correction ConditionsBuild25 GE
Section 7

Magnitude Comparator

3
15Build a 4-Bit Magnitude Comparator Using Cascaded 1-Bit StagesBuild15 GE164-Bit Equality ComparatorBuild15 GE178-Bit Magnitude ComparatorBuild25 GE
Section 8

Multiplexers

7
18Build a 4:1 MUX from Three 2:1 MUXesBuild10 GE19Build an 8:1 MUX from Seven 2:1 MUXes in a 3-Level TreeBuild15 GE20Debug 4:1 MultiplexerDebug15 GE213-Variable Function via 8:1 MUXBuild15 GE22Implement XOR Using a Single 4:1 MUXBuild10 GE23Implement a Full Adder Sum and Carry Using Two 4:1 MUXesBuild25 GE244-Bit Carry-Select AdderBuild25 GE
Section 9

Demultiplexers

1
25Build a 1:2 DEMUX from GatesBuild10 GE
Section 10

Encoders

5
264:2 EncoderBuild10 GE274:2 Priority Encoder with Valid OutputBuild15 GE28Debug a Priority Encoder with Reversed Priority DirectionDebug15 GE298:3 Priority Encoder from 4:2 EncodersBuild25 GE302-to-4 Line Decoder with Active-High EnableBuild5 GE
Section 11

Decoders

5
31Debug 2:4 Decoder Enable PolarityDebug15 GE323:8 Decoder from 2:4 DecodersBuild15 GE333-Variable Function via DecoderBuild15 GE34Implement a Full Adder Using a 3:8 Decoder and OR GatesBuild25 GE354:16 Decoder from 2:4 DecodersBuild25 GE
Section 12

7-Segment Display Decoder

7
36BCD to 7-Segment DecoderBuild15 GE37Hexadecimal to 7-Segment DecoderBuild25 GE38Debug a 7-Segment DecoderDebug15 GE39Integer versus RegAnalyze15 GE40Modulo ArithmeticAnalyze15 GE41SystemVerilog Priority CaseAnalyze15 GE42Out of Bounds Array IndexingDebug15 GE