Question: Please answer these two problems : 1) Draw the processing section showing all control points for the program given below: Declare register A[4],M[4],L[3],Q[4]; Declare Inbus[4],

Please answer these two problems :

1) Draw the processing section showing all control points for the program given below:

Declare register A[4],M[4],L[3],Q[4];

Declare Inbus[4], Outbus [4];

START: A0, MInbus, L4;

QInbus;

LOOP: if Q[0]=1 then go to ADD

Goto LSFT

ADD: AA+M;

LSFT: LSR(AQ), LL-1;

If L>0 then Go to LOOP;

Outbus=A;

Outbus=Q;

HALT: Go to HALT;

2)

Draw the State Diagram for the following Register Transfer Description:

Declare Registers A[8],B[8],C[8],D[8],T[1];

Declare Buses: Inbus1[7], Inbus2[7], Outbus[7];

Start: A[6:0]Inbus1, B[6:0]Inbus2, A[7]0,B[7]0, D0,T0;

C[6:0]Inbus1, C[7]0;

DA-B;

T[0]D[7];

If T[0]=0 then DA;

If T[0]=1 then DB;

DD-C;

T[0]D[7];

If T[0] =1 then Outbus=C[6:0];

If T[0]=0 then Outbus=D[6:0];

Halt: Goto Halt

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!