Jul 27, 2013 #1 T tusharkumar101 Newbie level 3 Joined Apr 28, 2013 Messages 3 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,298 design 4x4 multiplier using half adder full adder and 8 bit shift register
Jul 27, 2013 #2 T TrickyDicky Advanced Member level 7 Joined Jun 7, 2010 Messages 7,110 Helped 2,081 Reputation 4,181 Reaction score 2,048 Trophy points 1,393 Activity points 39,769 I cant be bothered
Jul 28, 2013 #3 mrflibble Advanced Member level 5 Joined Apr 19, 2010 Messages 2,720 Helped 679 Reputation 1,360 Reaction score 652 Trophy points 1,393 Activity points 19,551 @tusharkumar101: Please show your code so far. I am sure we can answer specific questions after you have done your own work first.
@tusharkumar101: Please show your code so far. I am sure we can answer specific questions after you have done your own work first.
Jul 28, 2013 #4 A aruipksni Full Member level 6 Joined May 23, 2013 Messages 345 Helped 68 Reputation 136 Reaction score 66 Trophy points 1,308 Activity points 3,004 tusharkumar101 said: design 4x4 multiplier using half adder full adder and 8 bit shift register Click to expand... A3 A2 A1 A0 * B3 B2 B1 B0 -------------------------------------------------- A3&B0 A2&B0 A1&B0 A0&B0 + A3&B1 A2&B1 A1&B1 A0&B1 + A3&B2 A2&B2 A1&B2 A0&B2 + A3&B3 A2&B3 A1&B3 A0&B3 ------------------------- C7 C6 C5 C4 C3 C2 C1 C0 so in abstract form : for i in 0 to 3 loop wait for rising_edge(clk); C <= C + (A AND {B(i),B(i),B(i),B(i)} ) sll i); --shift register is used to shift AB(i)...--adder to add c+ab. end loop;
tusharkumar101 said: design 4x4 multiplier using half adder full adder and 8 bit shift register Click to expand... A3 A2 A1 A0 * B3 B2 B1 B0 -------------------------------------------------- A3&B0 A2&B0 A1&B0 A0&B0 + A3&B1 A2&B1 A1&B1 A0&B1 + A3&B2 A2&B2 A1&B2 A0&B2 + A3&B3 A2&B3 A1&B3 A0&B3 ------------------------- C7 C6 C5 C4 C3 C2 C1 C0 so in abstract form : for i in 0 to 3 loop wait for rising_edge(clk); C <= C + (A AND {B(i),B(i),B(i),B(i)} ) sll i); --shift register is used to shift AB(i)...--adder to add c+ab. end loop;