Final answer:
To draw a 2-to-4-line decoder using NOR gates only, use two NOR gates. For a decoder using NAND gates only, use two NAND gates. In both cases, connect the enable input to both gates and the inputs to the enable input via inverters.
Step-by-step explanation:
To draw a 2-to-4-line decoder with NOR gates only, we can use two NOR gates. The enable input is connected to both NOR gates, and the inputs are connected to the enable input via inverters. To draw a 2-to-4-line decoder using NOR gates only, use two NOR gates. For a decoder using NAND gates only, use two NAND gates. In both cases, connect the enable input to both gates and the inputs to the enable input via inverters.
The outputs of the NOR gates represent the four possible combinations of the inputs. For a 2-to-4-line decoder using NAND gates only, we can use two NAND gates. Similar to the NOR gate design, the enable input is connected to both NAND gates, and the inputs are connected to the enable input via inverters. The outputs of the NAND gates are then connected to form the four possible combinations.