UNIT-2 Two Marks
UNIT-2 Two Marks
UNIT-2 Two Marks
PART A (2 Marks)
INTRODUCTION TO EMBEDDEDSYSTEM DESIGN
5. Mention the types of relationships that can exist between objects and classes.
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 to define one class in terms of another
6. What are the applications of embedded system?
Embedded System Applications:
• Consumer electronics, e.g., camera, calculator, etc.,
• Household appliances, e.g., washing machine, microwave oven, etc.,
• Automobiles (anti-lock braking, engine control, etc.,)
• Industrial process controllers & avionics/defense applications
• Computer/Communication products, e.g., printers, FAX machines, etc.,
1. Top down design proceeds from abstract 1. Bottom up approach gives perfect insight
description of the system and conclude into how later stages of the design
with concrete details. process will turn out.
Requirements Requirements
Specification Specification
Architecture Architecture
PART A (2 Marks)
ARM PROCESSOR AND PERIPHERALS
1. List the features of RISC architecture.
• Fixed 32-bit instruction size with predefined formats
• Load - store architecture
• Large register bank of 32–bit registers
5. Mention the features of RISC which are used and rejected in ARM processors.
Features used:
1. Load store architecture
2. Fixed-length 32-bit instructions
3. 3-address instruction formats.
Features rejected:
1. Register windows
2. Delayed branches
3. Single cycle execution of all instructions.
6. List the types of ARM instructions.
All ARM instructions fall into one of the following three categories:
1. Data processing instructions
2. Data transfer instructions
3. Control flow instructions
• LPC2148 Timer has input of peripheral clock (PCLK) or an external clock. It counts the clock
from either of these clock sources for its operation.
• LPC2148 Timer/Counter can generate an interrupt signal at specified time value.
• LPC2148 has match registers that contain count value which is continuously compared with the value
of the Timer register. When the value in the Timer register matches the value in the match register,
specific action (timer reset, or timer stop, or generate an interrupt) is taken.
24. Discuss in detail about different types of Stack operation in ARM Processor?
ARM stacks are very flexible since the implementation is completely left to the software. Stack
pointer is a register that points to the top of the stack. Normally, there are four different stack
implementations depending on which way the stack grows.
1. Ascending stack
An Ascending stack grows upwards. It starts from a low memory address and, as items are pushed onto
it, progresses to higher memory addresses.
2. Descending stack
A Descending stack grows downwards. It starts from a high memory address, and as items are pushed
onto it, progresses to lower memory addresses. The previous examples have been of a Descending
stack.
3. Empty stack
In an Empty stack, the stack pointers points to the next free (empty) location on the stack, i.e. the place
where the next item to be pushed onto the stack will be stored.
4. Full stack
In a Full stack, the stack pointer points to the topmost item in the stack, i.e. the location of the last item
to be pushed onto the stack.
PART B
1. Write a note on ARM Processor.
2. With examples explain various instruction sets in ARM processor.
3. Write a note on CPU Programming input and output , Supervisor mode, exception and traps.
4. Draw the memory hierarchy in ARM processor and explain each block?
5. Discuss about RISC and compare RISC with CISC.
6. Draw and explain different registers organization available in ARM processors.
7. Discuss in detail about ARM LPC2148.
8. List the functions of ARM processor in different modes.
PART C
1. Why does ARM have a ‘link register’? Which is the branch instruction that takes advantages of the
link register?
UNIT III – EMBEDDED PROGRAMING
10. What are the different CPU buses? State the function of each one.
[May 2013, Nov. 2014]
The different CPU buses are:
❖ Data bus – Bus that can carry data to or from the CPU
❖ Address bus – Bus that transmits address for the access
❖ Control bus
❖ Clock – Provides synchronization to the bus components
❖ R/W – True when the bus is reading or false if the bus is writing
❖ Data Ready – Signals when the values on the data bundle are valid
11. Draw the CDFG for the following code fragment. [Apr. 2011]
for (i=0; f=0; i<N; i++)
f = f+c[i] * x[i];
12. State the principle of basic compilation technique. [May 2013]
Compilation = Translation + Optimization
Compilation begins with high-level language code such as C or C++ and generally produces
assembly code. The high-level language program is parsed to break it into statements and expressions.
In addition a symbol table is generated which includes all the named objects in a program. Some
compilers may then perform high-level optimizations that can be viewed as modifying the high-level
language program input without reference to instructions.
➢ Python
➢ Ruby
➢ PHP
❖ Examples of Compiler
➢ C
➢ C++
➢ GO