Beruflich Dokumente
Kultur Dokumente
COA
Chapter-1(Unit-i)
BASIC TERMINOLOGIES
LOGIC GATES
Inelectronics,alogic gateisanidealizedorphysicaldevice
implementingaBooleanfunction;thatis,itperformsalogical
operationononeormorelogicalinputs,andproducesa
singlelogicaloutput.
Logic Applications : LogicOperationsallowustomanipulate
individualbitsinwaysthatwecouldnotdootherwise.These
applicationsinclude:
selectiveset
selectivecomplement
selectclear
mask
insert
clear
Logic Applications(contd..)
Selective-Set: Selective-setsetsto1thebitsinregisterA
wherethereisacorresponding1inregisterB:
1010ContentofAbefore
1100ContentofB(logicoperand)
RESULT:1110ContentofAafter
Thisisdoneusingthelogical-ORoperation.
Logic Applications(contd..)
Logic Applications(contd..)
Selective Clear: Selective-clearclearsto0thebitsin
registerAwherethereisacorresponding1inregisterB:
1010ContentofAbefore
1100ContentofB(logicoperand)
0010ContentofAafter(RESULT)
Thisisdoneusingthelogical-ANDoperationandB.
Logic Applications(contd..)
Mask: Maskclearsto0thebitsinregisterAwherethere
isacorresponding0inregisterB:
1010ContentofAbefore
1100ContentofB(logicoperand)
1000ContentofAafter(RESULT)
Thisisdoneusingthelogical-ANDoperationandB.
Logic Applications(contd..)
Insert: InsertinsertsanewvalueintoasetofbitsinregisterA.
Firstwemaskouttheupperfourbits(inour8-bitvalue):
01101010ContentofAbefore
00001111ContentofB(logicoperand)
00001010ContentofAafter(RESULT)
Inthesecondstep,weinsertthenewvalues:
00001010ContentofAbefore
10010000ContentofB(logicoperand)
10011010ContentofAafter(RESULT)
ThemaskingisdoneusinganANDandtheinsertionisdone
withanOR.
Logic Applications(contd..)
Clear: ClearcomparesAandBandproducesall0sifthe
numbersareequal.thebitsinregisterAwherethereis
acorresponding0inregisterB:
1010ContentofAbefore
1010ContentofB(logicoperand)
0000AAB(RESULT)
IfA&Bareboth1orboth0,thisproduces0.Thisisdone
usingthelogical-ANDoperationandB.
SOME DEFINITIONS
MACROasingleinstructionthatexpandsautomatically
intoasetofinstructionstoperformaparticulartask.
Pseudo Instructionsarespecialcommandstothe
assembleraboutthepositioningoftheprogram,the
addresstheprogramshouldpresumedtobeassembled
at,thenameofthemodule,datadeclarations,thetitle
andprintingoptionsfortheprogram,definingandcalling
macros,macroloopingandtest,andendofsourcecode.
Unlessamachineinstructionisissued,thesedonot
generateexecutablecode.
MICRO-OPERATIONS
Incomputercentralprocessingunits,micro-operations(also
knownasamicro-opsorops)aredetailedlow-level
instructionsusedinsomedesignstoimplementcomplex
machineinstructions.
Usually,micro-operationsperformbasicoperationsondata
storedinoneormoreregisters,includingtransferringdata
betweenregistersorbetweenregistersandexternalbusesof
thecentralprocessingunit(CPU),andperformingarithmetic
orlogicaloperationsonregisters.
MICROPROCESSOR
Amicroprocessorisacomputerprocessorwhich
incorporatesthefunctionsofacomputer's
centralprocessingunit(CPU)onasingle
integratedcircuit(IC),[1]oratmostafewintegrated
circuits.[2]Themicroprocessorisamultipurpose,clock
driven,registerbased,digital-integratedcircuitwhich
acceptsbinarydataasinput,processesitaccordingto
instructionsstoredinitsmemory,andprovidesresultsas
output.
Thank you