Question

A digital system has three registers AR, BR, PR. Three flipflops
provide the control variables for the system: S is a flipflop that
is set by an external Start signal to start theoperation, and F and
R are two flip flops used in sequencing themicro-operations when
the system is in operation. A fourth flipflop D is set by the when
the operation is completed. The operationof the digital system is
described by the following registertransfer statements:

S:
PRß0,Sß0,Fß1,Dß0

F:Fß0,
if (AR<BR) thenDß1
elseRß1

R:
PRßPR+1,ARß
AR-BR,Rß0,Fß1

(a)What
is the function that the system performs?
(b) Draw a
blockdiagram of the hardware implementation. Include a
Startinput to set flip flop S and Done output signal from
flip flop D