4. Combinational building blocks

What you will be able to do. By the end of this chapter you will know the standard building blocks that designers reach for every day: the multiplexer, the demultiplexer, the decoder, the encoder and the comparator. For each one you will know what it does, how it is made from gates, and how to write it in Verilog. Along the way you will put the binary numbers of the previous chapter to work, and learn to describe a group of wires in Verilog.

Blocks bigger than a gate

In the chapter on Boolean algebra you turned truth tables into gates and made the result smaller. You could design every circuit that way, gate by gate. Nobody does, for the same reason nobody builds a house from loose grains of sand: a handful of gate combinations turn up again and again, so they have names, symbols and well-known Verilog forms. Engineers think in these blocks and leave the gates inside them to the software.

🔒 Log in or create a free account to read the rest of this chapter

This course is free. An account also lets you run the simulations, try the circuits and keep your place.

Create a free account Log in Back to the course