Boolean algebra, Flip-flops, K-Maps, Verilog

Minimum cost circuits