HOME       UP       PREV       NEXT (Multiplier Answer)  

Example: Sequential Long Multiplication

Behavioural algorithm:
  while (1)
     wait (Start);
     RA=A; RB=B; RC=0;
       if odd(RA) RC=RC+RB;
       RA = RA >> 1;
       RB = RB << 1;
     Ready = 1;
     Ready = 0;
This implements conventional long multiplication.

It is certainly not fully-pipelined, it goes busy for many cycles, depening on the log of the A input. The illustration shows a common design pattern consisting of a datapath and a sequencer. Booth's algorithm (see additional material) is faster, still using one adder but needing half the clock ticks. Exercise: Write out the complete design, including sequencer, for the above multiplier, or that of Booth, or a long division unit, in Verilog or SystemC.

36: (C) 2008-13, DJ Greaves, University of Cambridge, Computer Laboratory. Flash Player Upgrade Needed   PLAY/PAUSE  READY    STOP DOWNLOAD