Professional Documents
Culture Documents
Assignment 1
Assignment 1
MCQ:
1. Whichofthefollowingisanexampleofanembeddedsystem?
A. GlobalPositioningSystem(GPS)
B. DigitalCamera
C. Fitnesstracker
D. Alloftheabove
Solution:OptionD.Alloftheabove.
Explanation: GPS system has multiple sensors embedded on a chip connected to navigation
satellites. Digital Camera has embedded sensors to
capture and process a photograph. Fitness
trackerhasembeddedsystemstotrackheartrate,bodytemperature,etc.
2.
While designing a 2-bit
adder, which gives the sum as
output and discards the carry,
which of
the following is
represented by the
behavioural dimension of
the Gajski’s Y chart for
the adder ?
(aandbaretheinputbits.)
A. a+b
B. a^b(‘^’representsXOR)
C. a-b
D. Noneofthese
Solution:OptionB.a^b(‘^’representsXOR)
Explanation: The behavioural dimension of the Gajski’s Y chart deals with the mathematical
aspect of
the
hardware design to
be
built,
which for the
case of a 2-bit adder, will
bear the
output
asthexoroftheinputbits.
3.
Suppose we build an
embedded system with a bus design so as
to
facilitate parallel access
ofinstructionanddata.Whicharchitecturewillbesuitableforthedesign?
A. Princetonarchitecture
B. VonNeumannarchitecture
C. Harvardarchitecture
D. Noneofthese
Solution:OptionC.Harvardarchitecture
Explanation: The core principle of Harvard architecture is to provide two different sets of
memory for instructions and data along with different sets of buses to
access the
instructions
anddatasimultaneouslyandincreaseperformanceofthedesign.
4. Statement 1 : ASIC is hardwired and hence does not have the flexibility of being
programmed.
Statement2:GPPcanbeusedforseveralapplicationsandhenceisprogrammable.
A. Bothstatementsaretrue.
B. Statement1istruebutStatement2isfalse.
C. Statement1isfalsebutStatement2istrue.
D. Bothstatementsarefalse.
Solution:OptionA.Bothstatementsaretrue.
Explanation:DefinitionofASICandGPPisthesameasthestatements.
5.Selectthefalsestatement:
A. ProgrammableLogicDevices(PLD)haveaverylowNREcost.
B. VeryLargeScaleIntegration(VLSI)deviceshaveaverylowNREcost.
C. GeneralPurposeProcessors(GPP)haveahigherNREcostthanPLDs.
D. Alloftheabove.
Solution:OptionB.VeryLargeScaleIntegration(VLSI)deviceshaveaverylowNREcost.
Explanation: In a full-custom IC technology(VLSI design), we optimize all layers for our
particular embedded system’s digital implementation, hence the high NRE cost and long
turnaroundtimes.
6.WhichofthefollowingstatementsaboutDSP(DigitalSignalProcessors)arefalse?
A. DSPs are optimized in signal processing tasks like signal filtering, transformation or
combination.
B. DSPsuseaPrincetonarchitecture.
C. DSPshavespecialhardwaretofetchlargeandsequentialdatamemorylocations.
D. DSPs have special purpose datapath components like multiply-accumulate unit which
helptoperformoperationslikeFFT.
Solution:OptionB.DSPsuseaPrincetonarchitecture.
Explanation:DSPsuseaHarvardarchitecture.RestarepropertiesofDSPs.
7.Findthecorrectmatch:
1. ASIC i.FPGA
2. ASIP ii.ICofDVDplayer
3. GPP iii.DSP
4. PLD iv.Desktopcomputer
A. 1-iv;2-iii;3-ii;4-i
B. 1-ii;2iii;3-iv;4-i
C. 1-i;2-ii;3-iii;4-iv
D. 1-iii;2-iv;3-i;4-ii
Solution:OptionB.1-ii;2iii;3-iv;4-i
Explanation:1.ICofaDVDplayerisveryspecificinitsfunction,henceASIC
2.DSPperformsalotofdifferentmathematicaloperationsonsignals,henceisslightly
programmableandhenceASIP3.GPPpowersmostmoderndesktopcomputers4.FPGAisan
exampleofacomplexPLD.
8.SupposeIwanttobuildaprocessortoperformmultiplicationofunsigned64-bitintegers.To
increasespeedoftheprocessor,Iwillprefer:(assumethatIhavesufficientfundstosatisfythe
NREcost)
A. Softwareimplementationofthemultiplier.
B. Hardwareimplementationofthemultiplier.
C. Bothsoftwareandhardwareimplementation(separatenotaco-design)
D. Noneofthese
Solution:OptionB.Hardwareimplementationofthemultiplier.
Explanation:Hardwareimplementationofmathematicalcircuitsincreasesthespeedofthe
processorwhilehavinganoticeableoverheadinspaceandpriceoftheprocessor(Nrecostis
satisfied,hencehardwareisthecorrectalternative).Theco-designofbothhardwareand
softwareisstilladebatedtopic.
9.Whichkindofoperatingsystemcanbeusedinembeddedsystems?
A. Real-timeOperatingSystems
B. NetworkOperatingSystems
C. BatchOperatingSystems
D. Noneofthese
Solution:OptionA.Real-timeOperatingSystems
Explanation:Real-timeOperatingSystemshaveasmallresponsetimeandalmostnovirtual
memoryandhencecanbeusedfortaskspecificprocessors(embeddedsystems).NetworkOS
isnotviableduetothelargesizeoftheirserversandcostlymaintenance.BatchOSisusedfor
multipletasksatonce,henceahigherresponsetimeandalsotheyarecostlytoimplementand
hardertodebug.
10.Thecontrolunitofaprocessorcanbe
A. Hardwired
B. Microprogramcontrolled
C. BothAandB
D. Noneofthese
Solution:OptionC.BothAandB
Explanation:THecontrolunitofaprocessorcanbedesignedcompletelybyhardwiringthe
circuitsorbyusingamicroprogrammedsetupwherethecontrolvaluesaresavedtoand
accesseddirectlyfromthememory.Thehardwarecontrolunitismuchfasterthanthe
microprogrammedcontrolunit.
Short-Answertype(Alphanumericanswersonly):
11.TheNREcosttodesignaprocessorisRs.5,00,000andtheunitcostofproductionisRs.
2,000.Calculatethetotalcosttoproduce100suchprocessors.
Solution:7,00,000
Explanation:
Totalcost=NREcost+(unitcost*noofunits)=5,00,000+2,000*100=7,00,000.
12.Ametrostationgateiscontrolledbyanembeddedsystem.Thegateopenswhentwotickets
aredelivered.DeterminetheleastnumberofstatesintheFSMDoftheembeddedsystem.
Solution:4
Explanation: