Mercury Systems Interview Question

basic C and VHDL problems