Verilog Coding Exercise · Combinational II
2:4 Decoder
Turn a 2-bit code into a one-hot 4-bit output.
Activates exactly one of four output lines based on a 2-bit input code, gated by an enable signal — decoders like this are what turn an address into a single selected memory row or device.