Professional Documents
Culture Documents
Simple processor composed of a datapath unit (DP) and control unit (CU)
Function select:
Add
Storage select:
Read A, Read B, Write A
Data Routing:
Select p-t, Select u-w,
select v,x.
The processor composed of a datapath unit (DP) and control unit (CU)
configured to implement the add operation A:=A+B.
ADD AL, BL
ADDC AH, BH
(a) (b)
Fig. General Structure of (a) a hardwired and (b) a microprogrammed control unit.
Conditions Actions
XR := 20;YR :=12;
XR>0: XR > YR: XR := XR – YR =8;
XR>0: XR ≤ YR: YR :=8; XR :=12; XR := XR – YR =4;
XR>0: XR ≤ YR: YR :=4; XR :=8; XR := XR – YR =4;
XR>0: XR ≤ YR: YR :=4; XR :=4; XR := XR – YR =0;
XR≤ 0: Z :=4;
A Moore-type state table defining the control unit of the gcd processor
Fig. A excitation table for the control unit of the gcd processor
15 Computer Architecture II (CT-404)
GCD processor
Classical method : S0 = 00, S1 = 01, S2 = 10 and S3 = 11
Fig. All-NAND classical design for the control unit of the gcd processor
A Moore-type state table defining the control unit of the gcd processor
Fig. All-NAND one-hot design for the control unit of the gcd processor
20 Computer Architecture II (CT-404)
Eg. Design of A DMA Controller
Inputs: IOREQ Any of four data-transfer request signals
CONT Continue (indicates pending, unprocessed
requests)
MACK Memory transfer acknowledgment
PBGNT Processor bus grant (indicates availability of
data transfer bus)
Outputs: CE Count Enable (bookkeeping function)
CMREQ Channel memory request
CNTLD Counter load (bookkeeping function)
RLD Register load (bookkeeping function)
PBREQ Processor bus request for control of data-
transfer bus
0 d d d S0 S0 0 0 0 0 0
1 d d d S0 S1 0 0 0 0 0
d d d 0 S1 S1 1 0 0 0 0
d d d 1 S1 S2 1 0 0 0 0
d d 0 d S2 S2 0 1 1 0 0
d d 1 d S2 S3 0 1 1 0 0
d d d d S3 S4 0 0 0 0 1
d 0 d d S4 S0 0 0 0 1 0
d 1 d d S4 S5 0 0 0 1 0
d d 0 d S5 S5 0 0 1 0 0
d d 1 d S5 S3 0 0 1 0 0
Figure. Condensed state table of DMA controller
23 Computer Architecture II (CT-404)
Eg. Design of A DMA Controller
Six state-transition equations
The output equations