Solve the following problem:
Table shows six different codes of the first 10 nonnegative numbers. Realize the following code converters by ROM
1 BCD into the Gray code,
2 BCD into 6, 3, 1, -1,
3 BCD into XS3,
4 BCD into 2421,
5 BCD into 2 of 5
Try realizations by ROM with different number of rows and columns.