Forum Discussion
Altera_Forum
Honored Contributor
13 years agoNo we don't code in sleep but we get algorithms only. I won't do that for your homework but just give you some tips:
declare two 6n inputs as unsigned. declare outut as 12b then say: output <= in1*in2; even <= not output(0); -- if 0 it is even finally: done <= '1';