3.EC8791 - ERTS - 2 Mark Q&A
3.EC8791 - ERTS - 2 Mark Q&A
TWO MARKS
YEAR/SEM: IV/VII
Prepared by,
Mr. U. Vinothkumar, ECE/Dr.N.G.P.IT
Dr. J. Chitra, ECE/Dr.N.G.P.IT
Approved by
TOTAL: 45 PERIODS
OUTCOMES:
At the end of the course, the student should be able to:
Describe the architecture and programming of ARM processor
Outline the concepts of embedded systems
Explain the basic concepts of real time operating system design
Model real-time applications using embedded-system concepts
TEXT BOOKS:
1. Marilyn Wolf, “Computers as Components - Principles of Embedded Computing System Design”, Third
Edition ―Morgan Kaufmann Publisher (An imprint from Elsevier), 2012. (UNIT I, II, III, V)
2. Jane W.S.Liu,” Real Time Systems”, Pearson Education, Third Indian Reprint, 2003. (UNIT IV)
REFERENCES:
1. Lyla B.Das, “Embedded Systems: An Integrated Approach” Pearson Education, 2013.
2. Jonathan W.Valvano, “Embedded Microcomputer Systems Real Time Interfacing”, Third Edition
Cengage Learning, 2012.
3. David. E. Simon, “An Embedded Software Primer”, 1st Edition, Fifth Impression, Addison-Wesley
Professional, 2007.
4. Raymond J.A. Buhr, Donald L.Bailey, “An Introduction to Real-Time Systems from Design to
Networking with C/C++”, Prentice Hall, 1999.
5. C.M. Krishna, Kang G. Shin, “Real-Time Systems”, International Editions, Mc Graw Hill 1997
6. K.V.K.K.Prasad, “Embedded Real-Time Systems: Concepts, Design & Programming”, Dream Tech
Press, 2005.
7. Sriram V Iyer, Pankaj Gupta, “Embedded Real Time Systems Programming”, Tata Mc Graw Hill, 2004.
UNIT I
INTRODUCTION TO EMBEDDEDSYSTEM DESIGN
Syllabus:
Complex systems and microprocessors– Embedded system design process –
Design example: Model train controller- Design methodologies- Design flows -
Requirement Analysis – Specifications-System analysis and architecture design –
Quality Assurance techniques - Designing with computing platforms – consumer
electronics architecture – platform-level performance analysis.
5. Why not use PCs for all embedded computing? How many different
hardware platforms do we need for embedded computing systems?
PCs are widely used and provide a very flexible programming environment.
Components of PCs are, in fact, used in many embedded computing systems. But
several factors keep us from using the stock PC as the universal embedded
computing platform.
8. What are the ways in which the nature of embedded computing machines
makes their design more difficult? (Apr-2014)
The nature of embedded computing machines makes their design more difficult
in some ways. That are,
Complex testing
Limited observability and controllability
Restricted development environments
Program
Task
Multiprocessor
12. What are the major level of abstraction in the design process?
The major level of abstraction in the Top-down design are,
Requirements
Specification
Architecture
Components
System integration
The major level of abstraction in the Bottom-up design are,
System integration
Components
Architecture
Specification
Requirements
13. What are all the major goals and the tasks we need to perform at every steps
in the design process?
Goals:
Manufacturing cost
Performance
Power consumption
14. What are all the non-functional requirements in embedded system design
process? (Nov/Dec-2013)
The typical non-functional requirements includes,
Performance
Cost
Physical size and weight
Power consumption
15. List out the entries in the requirements form as a check list.
The entries in the requirement form are,
Purpose
Inputs
Outputs
Functions
Performance
Manufacturing cost
Power
Physical size and weight
20. What are the types of relationships that can exist between objects and
classes?
The types of relationships that can exist between objects and classes
Association occurs between objects that communicate with each other
but have no ownership relationship between them.
Aggregation describes a complex object made of smaller objects.
Composition is a type of aggregation in which the owner does not
allow access to the component objects.
Generalization allows us to define one class in terms of another.
Numbers of operands.
Types of operations supported.
UNIT II
ARM PROCESSOR AND PERIPHERALS
Syllabus:
ARM Architecture Versions – ARM Architecture – Instruction Set – Stacks
and Subroutines – Features of the LPC 214X Family – Peripherals – The Timer Unit
– Pulse Width Modulation Unit – UART – Block Diagram of ARM9 and ARM Cortex
M3 MCU.
9. What are the three reasons for a bridge allows the bus to connect to each
other.
A small block of logic known as a bridge allows the buses to connect to each
other. There are three reasons to do this:
Higher-speed buses may provide wider data connections.
A high-speed bus usually requires more expensive circuits and connectors.
The cost of low-speed devices can be held down by using a lower-speed,
lower-cost bus.
The bridge may allow the buses to operate independently, thereby providing
some parallelism in I/O operations.
20. What are the two modes that a typical logic analyzer can acquire data?
A typical logic analyzer can acquire data in either of two modes that are typically
called state and timing modes. State and timing mode represent different ways of
sampling the values. Timing mode uses an internal clock that is fast enough to take
several samples per clock period in a typical system.
23. What are the steps to be performed to get data from memory to the CPU?
Read from the memory
Transfer over the bus to cache
Transfer from the cache to the CPU
30. Draw the compilation process and state the formula. (Nov/Dec-2012)
Compilation Formula:
Compilation = translation + optimization
Compilation Process:
Loop fusion combines two or more loops into a single loop. For this
transformation to be legal, two conditions must be satisfied. First, the loops must
iterate over the same values. Second, the loop bodies must not have dependencies
that would be violated if they are executed together
UNIT III
EMBEDDED PROGRAMMING
Syllabus:
Components for embedded programs- Models of programs- Assembly, linking
and loading – compilation techniques- Program level performance analysis –
Software performance optimization – Program level energy and power analysis and
optimization – Analysis and optimization of program size- Program validation and
testing.
period is known as the time quantum because it is the smallest increment in which
we can control CPU activity.
6. What is Context, Context Switching & record?
The set of registers that defines a process is known as its context, and switching
from one process’s register set to another is known as context switching. The data
structure that holds the state of the process known as the record.
12. State the equations for CPU utilization for a set of n tasks.
The total CPU utilization for a set of n tasks is
14.Define Mutex.
Cyclic scheduling means that the tasks from a list of ready tasks are scheduled in
sequence. Thus a task that is executed first now becomes a last priority task.
19.What is dynamic program scheduling?
The software design may be such that the priorities can be rescheduled and fixed
times redefined when a message or error message is received during the run.
20.List the ways in which an RTOS handles the ISR in a multitasking
environment?(au-2004)
Cyclic cooperative scheduling
Cooperative scheduling with precedence constraints
Cyclic cooperative scheduling with time slicing
Preemptive scheduling
Fixed time scheduling etc.
21.When do you use OS_ENTER_CRITICAL () and OS_EXIT_CRITICAL
()?(au-2004)
OS_ENTER_CRITICAL ()- Macro to disable interrupts
OS_EXIT_CRITICAL ()- Macro to enable interrupts
22.What are the three common model strategies that a scheduler may adapt?
Control flow strategy
Data flow strategy
Control –Data flow strategy
23.What are the advantages of C++?
A class binds all the member function together for creating objects
A class can derive from another class also
Methods can have same name in the inherited class(method overloading)
Method can have same name, same number and type of arguments in the
inherited class(method overloading)
Thread is a concept in Java and UNIX and it is a light weight sub process or
process in an application program. It is controlled by the OS kernel. It has a process
structure, called thread stack, at the memory. It has a unique ID .It have states in the
system as follows: stating, running, blocked and finished.
It provides a large number of interrupt pins that can be allocated too many
external devices. Typically this is at least eight and higher numbers can be
supported by cascading two or more controllers together.
It orders the interrupt pins in a priority level so that a high level interrupt will
inhibit a lower level interrupt.
This may provide registers for each interrupt pin which contain the vector
number to be used during an acknowledge cycle.
It allows the peripherals that do not have the ability to provide a vector to do
so.
This can provide interrupt masking.
UNIT IV
REAL TIME SYSTEMS
Syllabus:
Structure of a Real Time System –– Estimating program run times – Task
Assignment and Scheduling – Fault Tolerance Techniques – Reliability, Evaluation
– Clock Synchronization.
Two compliers are required. One compiler is for the host computer which does
the development and design and also the testing and debugging. The second
complier is cross a complier. The cross compiler runs on a host, but develops the
machine codes for a targeted system.
OS for soft or hard real time tasks with scheduling with real time constraints
(deadlines) using priority based scheduling, interrupt latency control,
synchronization of tasks with IPCs, and predictable timing and synchronization
behavior of the system.
Or
An RTOS is an OS for response time controlled and event controlled processes.
RTOS is an OS for embedded systems, as these have real time programming issues
to solve.
Or
Define RTOS. (Nov/Dec-2014)
A real-time operating system (RTOS) is an operating system that has been
developed for real-time applications. It is typically used for embedded applications,
such as mobile telephones, industrial robots, or scientific research equipment.
The reentrant functions are used by several tasks at the same time, because its
parameters required from stack data structure.
7. When is an RTOS needed in embedded software?(au-2004)
An RTOS is necessary when scheduling of multiple processor, ISR.
An RTOS is must to monitor the processor that is response time controlled
and event controlled processors
11.List the function of a Kernel. What can be the functions outside the kernel?
Process management
Process creation to deletion
Processing resource requests
Scheduling
IPC
Memory management
I/O management
Device management
Co-operative scheduling: A waiting task lets another task run till it finishes.
Pre-emptive scheduling: A scheduling algorithm in which a higher priority task
is forced (preempted) to block by the scheduler to let a higher priority task run.
13.What is meant by action plan? (Nov/Dec-2014)
14.What is a target system? How does this differ from the final embedded
system?
A system for the targeted embedded system that is used during development
phase and the final products of software and hardware are made from it.
Emulator:
A circuit which emulates the target system
ICE:
An In Circuit Emulator for emulating the target system after connecting to
processor at one end and to PC at another end
16.Compare between the assembler and dissembler.
An assembler is a program that translates the assembly mnemonics into the binary
op-codes and instruction, i.e. into an executable file, called object file. It also creates
a list file that can be printed.
A dissembler translates the object codes into the mnemonics form of assembly
language. It helps in understanding previously made object codes.
17.What is meant by Human machine Interactions?
The Human-Machine Interface is quite literally where the human and the
machine meet. It is the area of the human and the area of the machine that interact
during a given task.
Interaction can include touch, sight, sound, heat transference or any other
physical or cognitive function.
A circuit that helps debugs a ROM chip by simulating the ROM with RAM. The
RAM circuit plugs into the ROM socket. Since RAM can be written over, whereas
ROM cannot, programming changes can be made easily.
It is usable during the development phase for application software for the system
that is expected to employ a particular processor or processing device chip. The
simulator is essentially software to simulate all functions of an embedded system
circuit that includes any additional memory, peripherals devices and buses.
Simulator uses the cross complier, linker, and locator like the actual target system.
20.What are a complier, linker, loader and interpreter? (Nov/Dec-2014)
Compiler - Translates High level language (C, C++ etc.) and generates Object
code (machine readable but not directly executable)
Interpreter - Same as compiler but do that interactively (simply saying line by
line)
Linker - Connects the compiler generated object code with library code to
generated independent executable (like in C, you don’t write how printf() works,
linker add the code for printf() function in your program)
21.What are the various component of emulator? (Nov/Dec-2013)
Interface circuit
Socket
External memory
Emulator board display unit
Twenty keys pad
Registers
Connectors
Time slicing scheduling means that each task is allotted a time slice after which
it blocks and wait for its turn on the next cycle. Cyclic scheduling with time slicing
is simple and there is no insertion or deletion into the queue or list.
30.Write the condition for pre-emption events occur? (Nov/Dec-2014)
Preemption event takes place when an interrupts occurs
Preemption event takes when an RTCSWT(Real Time Clock driven Software
Timer ) interrupt occurs at the RTOS
Preemption event takes place when any call to the RTOS occurs to enter the
critical section.
UNIT V
PROCESSES AND OPERATING SYSTEMS
Syllabus:
Introduction – Multiple tasks and multiple processes – Multirate systems-
Preemptive real-time operating systems- Priority based scheduling- Inter-process
communication mechanisms – Evaluating operating system performance- power
optimization strategies for processes – Example Real time operating systems-
POSIX-Windows CE. - Distributed embedded systems – MPSoCs and shared
memory multiprocessors. – Design Example - Audio player, Engine control unit –
Video accelerator.
2. What are the additional behavior we provided for a fully functional system
data compressor? (Nov/Dec-2012)
For a fully functional system, we have to provide the following additional
behavior.
We have to be able to provide the compressor with a new symbol table.
We should be able to flush the symbol buffer to cause the system to release
all pending symbols that have been partially packed. We may want to do this
when we change the symbol table or in the middle of an encoding session to
keep a transmitter busy.
3. What are the three methods for table attributes in data compressor?
The class has three methods as follows:
Encode performs the basic encoding function. It takes in a 1-byte input
symbol and returns two values: a Boolean showing whether it is returning a
full buffer and, if the Boolean is true, the full buffer itself.
New-symbol-table installs a new symbol table into the object and throws away
the current contents of the internal buffer.
Flush returns the current state of the buffer, including the number of valid bits
in the buffer.
4. Draw the diagram for relationships between classes in the data compressor.
(Nov/Dec-2014)
8. What are the three types of test has to be performed in Alarm clock?
Three types of tests can be performed. First, the clock’s accuracy can be checked
against a reference clock. Second, the commands can be exercised from the buttons.
Finally, the buzzer’s functionality should be verified.
16. Draw the architecture of a cirrus audio processor for CD/MP3 player.
17. State the theory of operation and requirements for software modem.
The modem will use frequency-shift keying (FSK), a technique used in 1200-
baud modems. Keying alludes to Morse code—style keying. The FSK scheme
transmits sinusoidal tones, with 0 and 1 assigned to different frequencies. Sinusoidal
tones are much better suited to transmission over analog phone lines than are the
traditional high and low voltages of digital circuits. The 01 bit patterns create the
chirping sound characteristic of modems.
18. Draw the frequency shift keying and FSK detection scheme in the Software
modem. (Nov/Dec-2014)
FSK: FSK detection scheme:
23.Define histogram.
The histogram is composed by sorting the pixels into bins by luminance; 265 bins
is a common choice for the resolution of the histogram. The histogram gives us more
information than does a single average.
24.What are major approaches are used to determine focus in digital camera?
The three major approaches are used to determine focus that are,
Active range finding
Phase detection
Contrast detection
25.What are the major types of image sensors used in modern camera?
The major types of image sensors used in the modern cameras are
Charged coupled devices (CCDs)
CMOS
27.What are the five major steps used for JPEG images in the compression
process?
Color space conversion
Color down sampling
Block-based discrete cosine transform (DCT)
Quantization
Entropy coding