Horizontal programming:
I)No of control signal =46 so we need 46 bits.// each signal need of one bit.
II)No of flags=8 we need of log8 bits=3 bits.
III)Control program of size=80*8words=640 words .need of 10 bits.
Hence total size of control word=46+3+10=59 bits.
Vertical programming:
Only difference in control signals.it requires less no of control signals compared to horizontal.
It need of log46 bits=6 bits only for control signals.
Hence total of 6+3+10=19 bits.