An adder for 2-out-of-5-coded-decimal digits (see Table 1-2) is to be designed using a ROM. The
adder should add two 2-out-of-5-coded digits and give the 2-out-of-5-coded sum and a carry.
For example, 10100+10001=01010 with a carry of 1 (8+6=14).
Draw a block diagram showing the required ROM inputs and outputs. What size ROM is
required? Indicate how the truth table for the ROM would be specified by giving some typical
rows(i.e. partial truth table that includes 5 random rows).