The decoder module should convert a 4-bit binary number input into the corresponding segment control signals (CA, CB, ..., CG) required to illuminate the appropriate segments on a 7-segment display. For binary values ranging from 0000 to 1111, the decoder should generate the correct segment patterns.
Refer to the datasheet of the 7447 IC for its truth table, or you can generate the truth table yourself.
(source)