Embedded BCT3.2
Embedded BCT3.2
1t 1
_*_--.-.!
1l
ti rirffi
__--_r_*_+___*-_ 1
f
1
L
6. a) Irxplain how RTIIS differ tiom GPOS'I f)ifferentiate hetr.veen thread and process, [3l-3i
b) Four processes r.vith process IDs Pi, P2. P3 and P4 lvith priorities 0.2,4,,5 ancl
estin':ated completion tiine 5, 4. 6 and 4 ms respectiveh,' enter the read.v queue togetiter"
'fwo new piocesses F-5 and P5 with priorities 1, 3 and estinialed completiott time 2 and 3
rns respectivel.v enters the ready queue as: ['5 entcrs 1 ms of slart of execution rvhile F6
enters leady queue after 3 ms cf starl of execution of P4. Calculate WT. TAT, AWT.
ATAT assuming that there is no IiO r,r,aiting {br the process using pre-emptive priorit;*
based aird SJF/SRl'aigodthm. 16l
1" Compare and cr-rnirast betr,l'een operr loop and closed ioop controi s1'stem. Expiain PII)
control system with block diagram and equations. l4+4)
8. What are Full Cusiom IC techn,llogl'ancl Semi-Clustom iC technoiogy'? Explain the steps
inrrolved iir iC r"nanufacturing. [4-r"41
10. Explain different architecture model of VHDL. Write a VHDL code to design a traffic
light contrt>ller unit u,ith necessar,v assumptions using state machiue. t2+61
,i. * {<
TRIBHUVAN LINIVERSITY M Reqular
INSTITUTE OF ENGINEERING Level Full Marks 80
Examination Control Division Pass Marks 32
2078 Chaitra Year/Part III/[ Time 3hrs.
1. Define design metric and explain various design metrics of embedded system. t4]
Z. Design a singie purposed processor that gives the I-,CM of two digit 8-bit numbers. Start
with the algorithm, translate it into state diagram and state transition table. Also clraw the
required data-path. tSl
3. What do you mean b1, pipeline? Explain 5 stage pipelining. Describe features of DSP. [1+3+4]
4. Explain the operation of storing data in one Time Programmable ROM. Compose a
rlremory of size 2k*i*2n using 2k"n sized memory. [3+5]
5" Explain controi methods used for communication in interfacing. Describe Daisy-Chain
arbitration with the help of a block diagram and steps. [3-r-5]
6. Briefly explain the difTerent states of task. Consider three processes with process IDs Pl,
P2, P3 aod P4 with estimated completion time 53,17,68,24 ms respectively, enters the
ready queue together in order P1, P2, P3, P4. Calculate u,aiting time andturn around time
for each process and average waiting times and average turn around time in Round Robin
algorithm with tirne slice 4 ms. Assume there is no IiO waiting for the process. List
Coffman Condition for deadlock. L4+6+21
v. Differentiate betu,een open - loop and close - loop control system. Design control system
tor an automobile cruise control in open - ioop control system using P control. 12+61
8. Discuss the advantages and disadvantages of full-custonr IC technology. Explain the basic
steps of photo lithography process. i8l
9. I{ow are microcontrollers diffbrent from microprocessors? Write the ftatures of 8051
microcontroller. Assume that XTAI = I 1.0592 MHz, write a program to generate a
square wave of I kTIz &equency on pin P1.5 of 8051 microcontroller using timer. l2+2+41
10. Drawlhe state diagram for a sequence detector for the sequence 1011 and then develop a
VHDL code based on the state diagram. [3+5]
*r(Cr
TRIBHUVAN LINIVERSITY
INSTITUTE OF ENGINEERING
Examination Control Division
2077 Chultra
_* su!jes!!::3,$j*{!nrru
to their answers in their own words as far *
t/ Attempt
lTj:3t::,T:::1:ir:d
Al!questions.
give
n.**il--
,, Thefigures in the margin indicate Full Marks.
{ Assume suitable data if necessary.
l. Defirie design metic. Explain all important desigu metrics of a%ysem. 14)
2. Design a single purpose processor to determine &e sum of digits of an integer. Start the
design from thE function computing the desired resulL FSMD, datapath and controller. t8l
J. a) Explain with diagram about pipelining? t4I
b) Briefly explain suitabie criteria for selecting Microprocessor in Embedded system. t4I
4K x 16 ROM lK x 8 ROMs. Determine which cache is better: [5+3]
Which VO fuort based or bus based) is used in 8051 Microcontroller, describe in briefl
Explain structure, operation, advantages and disadvantages of daisy chain arbitration
method' [2+6]
a) Define kernel and explain its types. Explain file system handling of kernel. [3+3]
b) Tkee processes with process IDs PI, P2, P3 with estimated completion time 7, 8, 5
ms and priorities A, 3,2 (0-highest, 3-iowot) respectively, enters the ready queue
together in order Pl, P2, P3 (assume only Pl is present in the ready qrieue when the
scheduler picks it up and P2 andP3 enter ready queue after that). Now a process P4
with estimated completion time 10 ms and priority 1 enters the ready queue after 5ms
of execution of Ptr. Calculate waiting time and TAT for each process and *verage
waiting time and TAT. Assume there is no VO waiting for the process and priority -
based scheduling. l6l
7. a) Difi::rentiate betrveen open loop and close loop control system. Which system is
better for control system? 14l
b) \Vhat is PID controilers? Expiain iis type u4th real time application in embedded
systern. t4l
Explain about PORT 3 of 805i microcontroller. Using8051 insir,-rciions, controi rate of
bliri. cf I-ED at pin Pi.1 by two sr,i,itchcs at P2.1 and P2.2 ( One switch to itrcrcase the
rate cf blink, another tc decrease tl:e rate oi'biink) [2+6]
9. Whai's the use oi \,'IIDL code in cr:rire ddsci system? Dcsigl anci urite a ccdc for Decodcr
using VI{DL. [2+6]
!
1u Briefly explain semi-custom (ASIC) IC technology and write about its types. Explain IC
manufacturing steps of circuit given below [3+5]
A"{
0"J
..,. ,9
TRIBHUVAN UNIVERSITY Exam.
INSTITUTE OF ENGINEERING Level BE Full Marks 80
1. What is an embedded system? Differentiate it with non embedded systems with suitable
example. In RTOS, describe mutual exciusion tluough sleep aud wake tor task
synchronization. [1 +3+4]
) What is Optimization? What are the parameter you consider for Optimization of single
purpose processors. l4+4]
J. Define daiapath and contrcller of a general purpose processor. Explain ASIP with its
types. L4+41
4. Define write ability and storage perrnanence of memory. Design a ROlvi to store the
following infonnation:_ [3+5]
x Y Z F1 F2 F3 F4
0 0 0 0 U i 0
0 0 1 1 1 0 0
0 1 0 0 1 0 1
0 1 I 1 1 I 1
1 0 0 0 0 1 I
1 0 1 0 1 0 1
1 1 0 1 0 I 0
I 1 1 0 0 1 1
5. a) What is intemrpt? Explain summarv of flow of actions of, interrupt driven IIO using
fixed ISR location. I4l
b) What is arbitration? With neat diagram explain Daisy-chain arbitration. I4:I
6. Explain the conditions favoring deadlock situation. Three Processes P1, P2 and P3 with
estimated completion time 5, 8, 7 ms respectively enters the ready queue together.
Calculate WT, TAT for each process and calculate AWf and ATAT using Round Robin
Pre-emptive scheduling algorithms u'ith tirne slice of 2 ms. [2+6]
7. Differentiate between closed - loop and open * loop control systems. Draw a typical
block diagram of a PID control system and describe PID turning. [3+s]
8. Draw a top down view and schematic for the following function: F : xz * yz'.Describe
with suitable diagram about positive photoresist used in photolithography. [5+3]
9. What is seven segment display and write its types. Design a circuit with 7 segments
display which is used as a counter watch which display second and minute. L2+61
10. Explain different models is VHDL. Write a VHDL code for a firll adder using two half
adders and one OR gate in structural model. [3+5]
{.**