You are on page 1of 17

3URJUDPPDEOHORJLFDUUD\V 3/$

q 3UHIDEULFDWHGEXLOGLQJEORFNRIPDQ\$1'25JDWHV
DFWXDOO\125RU1$1'
SHUVRQDOL]HGE\PDNLQJRUEUHDNLQJFRQQHFWLRQVDPRQJWKHJDWHV
SURJUDPPDEOHDUUD\EORFNGLDJUDPIRUVXPRISURGXFWVIRUP

LQSXWV

$1'
DUUD\

SURGXFW
WHUPV

25
DUUD\

RXWSXWV


CSE 370 - Fall 1999 - Introduction - 1

0XOWLSOH[RU/RJLF
q ) DEF  D) EF D) EF
/HW* EF  ) EF 
/HW+ EF  ) EF

a
G(b,c) = bc
H(b,c) = b+c

0
1

2:1

Carry

([DPSOH)XOO$GGHU&DUU\ DEDFEF
* EF + EFEF EF
q ) DEF  DE) F DE) F DE) F DE) F
) DEF  DE)DE)DE)RUDE)
)
)
)
)


F
F


CSE 370 - Fall 1999 - Introduction - 2

0
1
2
3

ab

4:1

Carry

3URJUDPPDEOH/RJLF'HYLFHV
q 6KDUHGSURGXFWWHUPVDPRQJRXWSXWV
)
)
)
)

H[DPSOH

$%
&

$&
$%
%
&
$%
%
&$

LQSXWVLGH
 XQFRPSOHPHQWHG LQWHUP
 FRPSOHPHQWHGLQWHUP
GRHVQRWSDUWLFLSDWH

SHUVRQDOLW\PDWUL[
SURGXFW
WHUP
$%
%
&
$&

%
&

LQSXWV
$
%









&





and rows

RXWSXWV
) )




)





)

RXWSXWVLGH
 WHUPFRQQHFWHGWRRXWSXW
QRFRQQHFWLRQWRRXWSXW

or columns
(note common
subexpression re-use)

CSE 370 - Fall 1999 - Introduction - 3

%HIRUHSURJUDPPLQJ
q $OOSRVVLEOHFRQQHFWLRQVDUHDYDLODEOHEHIRUHSURJUDPPLQJ
LQUHDOLW\DOO$1'DQG25JDWHVDUH 1$1'V

fuses

CSE 370 - Fall 1999 - Introduction - 4

$IWHUSURJUDPPLQJ
q 8QZDQWHGFRQQHFWLRQVDUHEORZQ
IXVH QRUPDOO\FRQQHFWHGEUHDNXQZDQWHGRQHV
DQWLIXVH QRUPDOO\GLVFRQQHFWHGPDNHZDQWHGFRQQHFWLRQV
$

)
)
)
)

&

$%

$%
&

$&
$%
%
&
$%
%
&$

%
&
$&

%
&

)

)

)

CSE 370 - Fall 1999 - Introduction - 5

)

$OWHUQDWHUHSUHVHQWDWLRQIRUKLJKIDQLQVWUXFWXUHV
q 6KRUWKDQGQRWDWLRQVRZHGRQ
WKDYHWRGUDZDOOWKHZLUHV
VLJQLILHVDFRQQHFWLRQLVSUHVHQWDQGSHUSHQGLFXODU
VLJQDOLVDQLQSXWWRJDWH

QRWDWLRQIRULPSOHPHQWLQJ
) $%$
%

) &'
&
'
$ % & '
$%
$
%

&'

&
'

$%$
%

&'
&
'
CSE 370 - Fall 1999 - Introduction - 6

3/$DV520
q 0XOWLSOHIXQFWLRQVRI$%&
) $%&
) $%&
) $
%
&

) $
%
&

) $ [RU % [RU &

$GGUHVV
$ % &

ELWVVWRUHGLQPHPRU\
$
%
&

$
%
&
$
%&

$
%&

$









%









&









)









)









)









)









$%
&

)









$%
&
$%&

$%&

) ) ) ) )
CSE 370 - Fall 1999 - Introduction - 7

&RPPRQ6XE([SUHVVLRQ([WUDFWLRQDQG8VH
,PSOHPHPHQW
) P 
* P 

F
12

13

F
15

14

F
$ % & '

11

F
10

F
0

G
12

13

G
8

CSE 370 - Fall 1999 - Introduction - 8

15

G
14

G
11

10

3$/V DQG 3/$VDQRWKHUGHVLJQH[DPSOH


q 0DJQLWXGHFRPSDUDWRU

$ %

& 

'


& 


.PDSIRU(4

.PDSIRU1(

$%&'

'

$%
&'

$&

$
&
%
'
%'


& 

$
%&
'







$
%
&
'




& '

$
%
'


'


& 





.PDSIRU/7

.PDSIRU*7

%
&'

'

CSE 370 - Fall 1999 - Introduction - 9

$%&
%&
'

(4 1( /7 *7

3$/V DQG 3/$V


q 3URJUDPPDEOHORJLFDUUD\ 3/$
ZKDWZH
YHVHHQVRIDU
XQFRQVWUDLQHGIXOO\JHQHUDO
$1'DQG25DUUD\V

If not using a row, then


make zero

abc

q 3URJUDPPDEOHDUUD\ORJLF 3$/
)L[HG25DUUD\
IDVWHUDQGVPDOOHU25SODQH
1RWHUPVKDULQJ
DJLYHQFROXPQRIWKH25DUUD\
KDVDFFHVVWRRQO\DVXEVHWRI
WKHSRVVLEOHSURGXFWWHUPV

ab
CSE 370 - Fall 1999 - Introduction - 10

Sum

5HDGRQO\PHPRULHV
Like complete,
preprogrammed
(N)AND-plane of PLA

q 7ZRGLPHQVLRQDODUUD\RIVDQGV
HQWU\ URZ LVFDOOHGDZRUG
ZLGWKRIURZ ZRUGVL]H
LQGH[LVFDOOHGDQDGGUHVV
DGGUHVVLVLQSXW
VHOHFWHGZRUGLVRXWSXW

ZRUGOLQHV RQO\RQH
LVDFWLYH GHFRGHULV
MXVWULJKWIRUWKLV

Q


GHFRGHU

ZRUG>L@ 

ZRUG>M@ 


LQWHUQDORUJDQL]DWLRQ

Q
$GGUHVV

ELWOLQHV QRUPDOO\SXOOHGWRWKURXJK
UHVLVWRU VHOHFWLYHO\FRQQHFWHGWR
E\ZRUGOLQHFRQWUROOHGVZLWFKHV

CSE 370 - Fall 1999 - Introduction - 11

520VDQGFRPELQDWLRQDOORJLF
q &RPELQDWLRQDOORJLFLPSOHPHQWDWLRQ WZROHYHOFDQRQLFDOIRUP XVLQJD520
q 3XWHQWLUHWUXWKWDEOHLQWRPHPRU\
) $
%
&$%
&
$%
&
) $
%
&$
%&
$%&
) $
%
&
$
%
&$%
&

) $
%&$%
&
$%&

$









%









&









)









)









)









)









520
ZRUGV[ELWVZRUG

$ % &
))))
DGGUHVV RXWSXWV

WUXWKWDEOH

EORFNGLDJUDP
CSE 370 - Fall 1999 - Introduction - 12

520VWUXFWXUH
q 6LPLODUWRD3/$VWUXFWXUHEXWZLWKDIXOO\GHFRGHG$1'DUUD\
FRPSOHWHO\IOH[LEOH25DUUD\ XQOLNH3$/

QDGGUHVVOLQHV

LQSXWV

GHFRGHU

Q ZRUG
OLQHV

memory
array
(2n words
by m bits)
RXWSXWV

PGDWDOLQHV

CSE 370 - Fall 1999 - Introduction - 13

520YV3/$
q 520DSSURDFKDGYDQWDJHRXVZKHQ
GHVLJQWLPHLVVKRUW QRQHHGWRPLQLPL]HRXWSXWIXQFWLRQV
PRVWLQSXWFRPELQDWLRQVDUHQHHGHG HJFRGHFRQYHUWHUV
OLWWOHVKDULQJRISURGXFWWHUPVDPRQJRXWSXWIXQFWLRQV
q 520SUREOHPV
VL]HGRXEOHVIRUHDFKDGGLWLRQDOLQSXW [IRU&DOHQGDUH[DPSOH
FDQ
WH[SORLWGRQ
WFDUHV
q 3/$DSSURDFKDGYDQWDJHRXVZKHQ
GHVLJQWRROVDUHDYDLODEOHIRUPXOWLRXWSXWPLQLPL]DWLRQ
WKHUHDUHUHODWLYHO\IHZXQLTXH PLQWHUP FRPELQDWLRQV
PDQ\ PLQWHUPV DUHVKDUHGDPRQJWKHRXWSXWIXQFWLRQV
6XSSRUWVPXOWLOHYHOLPSOHPHQWDWLRQXVLQJIHHGEDFN
q 3$/SUREOHPV
FRQVWUDLQHGIDQLQVRQ25SODQH
'LIILFXOW\RIFRPPRQWHUPUHXVH""

CSE 370 - Fall 1999 - Introduction - 14

5HJXODUORJLFVWUXFWXUHVIRUWZROHYHOORJLF
q 520 IXOO$1'SODQHJHQHUDO25SODQH
FKHDS KLJKYROXPHFRPSRQHQW
FDQLPSOHPHQWDQ\IXQFWLRQRIQLQSXWV
PHGLXPVSHHG
q 3$/ SURJUDPPDEOH$1'SODQHIL[HG25SODQH
LQWHUPHGLDWHFRVW
FDQLPSOHPHQWIXQFWLRQVOLPLWHGE\QXPEHURIWHUPV
KLJKVSHHG RQO\RQHSURJUDPPDEOHSODQHWKDWLVPXFKVPDOOHUWKDQ
520
VGHFRGHU
q 3/$ SURJUDPPDEOH$1'DQG25SODQHV
PRVWH[SHQVLYH PRVWFRPSOH[LQGHVLJQQHHGPRUHVRSKLVWLFDWHGWRROV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