EMBEDDED SYSTEM DESIGN - Mksahoo
EMBEDDED SYSTEM DESIGN - Mksahoo
1) How embedded system are different from other computing system describe.
Ans:
• Acyclic DFG: doesn’t containmultiple values for i/p variablesand multiple values for
o/pvariables.
Control Data Flow Graph (CDFG)Model:-Is used for applications involving control
program execution. Contains both data operation and controloperation.
Data nodes-> elements
control nodes-> decision makers
FSMs represents States, events, transistions and actionsFlow charts model the execution
flow
3) Explain the relationship between operating system, computer hardware, system software
in an embedded system with the help of a schematic diagram.
Ans:-Operating System, as name suggests, is simply a system software runs on computer
that manages all application programs in computer and provide interface among user and
hardware. Computer Hardware consists of physical parts of computer. Operating System
is a translator between computer user and hardware.
1. Hardware :
2. Operating System :
Operating System, as name suggests, is simply a system software runs on computer that
manages all application programs in computer and provide interface among user and
hardware.
3. Application software is a type of computer:-program that performs a specific
personal,educational, business and other functions in differentareas of human
endeavor. Each program with the helpof OS and hardware support is designed to
assist theuser with a particular process, which may be related toproductivity,
creativity, and/or communication
Ans:
Early embedded products were built around the old transistor and vacuumtube technologies,
where the designers built the PCB with their hands,oil paper, pencil, pen, ruler and copper plates.
The process of building aPCB was a tedious and time consuming process in ancient times where
thedesigners sketch the required connections using pen, pencil and ruler on papers and the
finished sketch was used for etching the connections on acopper plate and it took weeks and
months time to finish a PCB. The morethe inter connections involved in the hardware, the more
difficult was the process. The accuracy and finishingof the PCB was highly dependent on the
artistic skills of the designer. Today the scenario is totally changed.Advances in computer
technology and IT brought out highly sophisticated and automated tools for PCBdesign and
fabrication. The process of manual sketching the PCB has given way to software packages
thatgives an automatic routing and layout for your product in a few seconds. These software
packages are widelyknown as Electronic Design Automation (EDA) tools and various
manufactures offer these tools for differentoperating systems (Windows, UNIX, Linux etc.).
EDA tool is a set of Computer Aided Design/Manufacturing(CAD/CAM) software packages
which helps in designing and manufacturing the electronic hardware likeintegrated circuits,
printed circuit board, etc. The key players of the EDA tool industry are Cadence, Protel,Altium,
Cadsoft, Zuken, Mentor, etc. OrCAD, Cadstar, Protel, Eagle, etc. are the popular EDA tool
packagesavailable in the market for PCB design. Of these, I feel Cadence OrCAD as the most
flexible and user friendly tool. The reference tool used for hardware design throughout this book
is OrCAD
5 Manoj Kumar Sahoo
b) RISC Vs CISC architecture
Ans:
RISC CISC
5) List and explain hard ware unit that must be present in the embedded system.
Ans:- The hardware’s are present in the embedded system are follows
System core:-A typical embedded system contains a single chip controller, which acts as
the master brain of the system.The controller can be a Microprocessor (e.g. Intel 8085) or
a microcontroller (e.g. Atmel AT89C51)or a Field Programmable Gate Array (FPGA)
device (e.g. Xilinx Spartan) or a Digital Signal Processor ( DSP)(e.g. Blackfi n®
Processors from Analog Devices) or an Application Specifi c Integrated Circuit (ASIC)/
Application Specifi c Standard Product (ASSP) (e.g. ADE7760 Single Phase Energy
Metreing IC from)Analog Devices for energy metering applications).
Memory:-Memory is an important part of a processor/controller based embedded
systems.Some of the processors/controllers contain built in memory and this memory
isreferred as on-chip memory. Others do not contain any memory inside the chipand
requires external memory to be connected with the controller/processor tostore the
6 Manoj Kumar Sahoo
control algorithm. It is called off-chip memory. Also some workingmemory is required
for holding data temporarily during certain operations. Thissection deals with the
different types of memory used in embedded systemapplications.
Firmware:-
Sensors :- A sensor is a transducer device that converts energy from one form to another
for any measurement or controlpurpose.an embeddedsystem is in constant interaction
with the Real world and the controlling/monitoring functions executed by the embedded
system is achieved inaccordance with the changes happening to the Real world. The
changes insystem environment or variables are detected by the sensors connected to
theinput port of the embedded system. Looking back to the ‘Wearable devices’ example
given at the end of Chapter 1, we can identify that thesensor which counts steps for
pedometer functionality is an Accelerometer sensor and the sensor used insome of the
smartwatch devices to measure the light intensity is an Ambient Light Sensor (ALS)
SDA
2.2K
Port Pins SCL
Slave 1
SCL I2C Device
Master SDA (Eg: Serial
(Microprocessor/ EEPROM)
Controller)
SCL Slave 2
SDA I2C Device
I2C Bus
8) Elucidate the selection of processor and memory for any one embedded application with
suitable diagram in details.
Ans:-
Power Considerations:-Increasing the logic density and clock speed has adverse impact
on power requirement of the processor. A higher clock implies faster charge and
discharge cycles leading to more power consumption. More logic leads to higher power
density there by making the heat dissipation difficult. Further with more emphasis on
greener technologies and many systems becoming battery operated, it is important the
design is for optimal power usage.
Techniques like frequency scaling – reducing the clock frequency of the processor
depending on the load, voltage scaling – varying the voltage based on load can help in
achieving lower power usage. Further asymmetric multiprocessors, under near idle
conditions, can effectively power off the more powerful core and load the less powerful
core for performing the tasks. SoC comes with advanced power gating techniques that
can shut down clocks and power to unused modules.
11 Manoj Kumar Sahoo
Peripheral Set:-Every system design needs, apart from the processor, many other
peripherals for input and output operations. Since in an embedded system, almost all the
processors used are SoCs, it is better if the necessary peripherals are available in the chip
itself. This offers various benefits compared to peripherals in external IC’s such as
optimal power architecture, effective data communication using DMA, lower BoM etc.
So it is important to have peripheral set in consideration when selecting the processor.
Operating Voltages:-Each and every processor will have its own operating voltage
condition. The operating voltage maximum and minimum ratings will be provided in the
respective data sheet or user manual.While higher end processors typically operate with 2
to 5 voltages including 1.8V for Cores/Analogue domains, 3.3V for IO lines, needs
specialized PMIC devices, it is a deciding factor in low end micro-controllers based on
the input voltage. For example it is cheaper to work with a 5V micro-controller when the
input supply is 5V and a 3.3 micro-controllers when operated with Li-on batteries.
Specialized Processing:-Apart from the core, presence of various co-processors and
specialized processing units can help achieving necessary processing performance. Co-
processors execute the instructions fetched by the primary processor thereby reducing the
load on the primary. Some of the popular co-processors include. Floating Point Co-
processor:RISC cores supports primarily integer only instruction set. Hence presence of a
FP co-processor can be very helpful in application involving complex mathematical
operations including multimedia, imaging, codecs, signal processing etc.
Graphic Processing Unit:-GPU(Graphic Processing Unit) also called as Visual
processing unit is responsible for drawing images on the frame buffer memory to be
displayed. Since human visual perception needed at-least 16 Frames per second for a
smooth viewing, drawing for HD displays involves a lot of data bandwidth. Also with
increasing graphic requirements such as textures, lighting shadersetc, GPU’s have
become a mandatory requirements for mobile phones, gaming consoles etc.Various
GPU’s like ARM’s MALI, PowerVX, OpenGL etc are increasing available in higher end
processors. Choosing the right co-processor can enable smooth design of the embedded
application.
Ans:-
Large Scale/Complex: Embedded Systems built around high performance 16/32 bit
Microprocessors/controllers, Application Specific Instruction set processors like Digital
Signal Processors (DSPs), and Application Specific Integrated Circuits (ASICs)
A. Event triggered
B. Time triggered