Mercury Systems interview question

basic C and VHDL problems