Lec.3 Core of Embedded Systems
Lec.3 Core of Embedded Systems
3
1. Single-purpose processors(SPP)
Controller Datapath
• Digital circuit designed to execute exactly one Control index
program logic
total
State
• Features register +
– No program memory
• Benefits
– Fast
– Low power
– Small size 5
2. General Purpose processor (GPP)
• Programmable device used in a variety of applications. Controller Datapath
• It have one or more levels of cache. Control Register
logic and
• The processor may be microprocessor or a microcontroller State
file
register
or digital signal processor, depending on the domain and General
application. IR PC ALU
• Features
Program Data
– Program memory memory memory
– Low time-to-market
– High flexibility
22
2. General Purpose processor (GPP)
❖Microprocessor (MPU)
• A microprocessor is a single silicon chip representing a Central
Processing Unit (CPU), which is capable of performing arithmetic and
logical operations according to a pre-defined set of Instructions, which is
specific to the manufacturer.
7
2. General Purpose processor…
❖ Microprocessor(MPU)
❑ Microprocessor is a dependent unit and it requires the combination of other
hardware like memory usually ROM and RAM, memory decoder, an oscillator
and a number of serial and parallel ports, Timer Unit, and Interrupt Controller
etc. for proper functioning.
2. General Purpose processor…
Developers of Microprocessors.
Intel developed first Microprocessor unit Intel 4004, a 4 bit
processor, ran at 400 kHz and contained 2,250 transistors, which
was released in Nov 1971.
Developers of Microcontroller.
INTEL 8031,8032,8051,8052,8752
PIC 8-bit PIC16, PIC18, 16-bit DSPIC33 / PIC24, PIC16C7x
Motorola MC68HC11
Microprocessor Microcontroller
a general-purpose device that finds its application in most of the
a specific purpose device which has specific task for specific device.
electronic devices.
RAM, ROM, I/O Ports, and Timer's components embedded together OR
Designer must add RAM, ROM, I/O Ports, and Timers externally.
built-in on a chip.
multitasking in nature. Can perform multiple tasks at a time. Special purpose & Single task oriented.
For example, on computer we can play music while writing text For example, a washing machine is designed for washing clothes only.
❖Embedded processor
• A processor embedded into a system handles all the computation and logical
operations.
• An embedded processor is used when fast processing fast context-switching
& atomic ALU operations are needed.
• Embedded processors are used in a wide range of applications such as
smart phone….
15
2. General Purpose processor (GPP)…
❖Digital Signal Processors (DSPs):
• DSP a single chip VLSI unit. It includes the computational capabilities of
microprocessor and multiply & accumulate units.
• DSPs are specialized microprocessor that are design to process digital signals, it
is specially built for communications applications, and audio, video.
• Powerful special purpose 8/16/32 bit microprocessors
• Digital Signal Processors are 2 to 3 times faster than the microprocessors in
signal processing applications, It is used when signal processing functions are to
be processed fast.
• DSP can be viewed as a microchip designed for performing high speed
computational operations for „addition‟, „subtraction‟, „multiplication‟ and
„division‟.
2. General Purpose processor (GPP)…
❖Digital Signal Processor (DSP)
• DSP has been used in large number of Applications that requires signal processing such
as speech coding , speech recognition, image processing, Audio video signal processing,
telecommunication and multimedia applications.
17
3. Programmable Logic Device (PLD)
• In digital electronic system there are only three kinds of devices that are memory, microprocessor and
logic devices.
❑ Memory devices store random information such as database.
❑ Microprocessor executes software instruction to perform a wide variety of tasks.
❑ Logic devices provide specific function including device to device interfacing data
communication. Signal processing data display timing and control operations and almost every
other function assistive must perform.
• PLD is an electronic component use to build re-configurable digital circuit. Un-like a logic gate which
has fixed function, a PLD has un-defined function at the time of manufacture. Before a PLD can use
in a circuit it must be programmed i.e. re- configured.
• PLD’s are chip that can be programmed and reprogrammed to implemented different logic
function.
• The main reason to produce PLD is to reduce total cost.
• Designing with PLD is faster due to which it reduces the time require to bring the product to the
market.
3. Programmable Logic Device (PLD)
❑ The major types of programmable logic devices
• Field Programmable Gate Arrays (FPGAs)
• Complex Programmable Logic Devices (CPLDs)
❑ Advantages of PLD
• PLDs are reprogrammable even after a piece of equipment is shipped to a customer.
• The manufacturers able to add new features or upgrade the PLD based products that are in the field by uploading new
programming file.
• Less board space is required, Faster in speed, Lower power requirement, Less costly assembly process, Availability of
design software.
• Higher reliability (since fewer IC’s) and circuit connections are there which helps in making troubleshooting easier.
❑ Disadvantages of PLD
• PLD’s required additional development software and hardware which is often very expensive.
• Design staff often needs to be trained to use new design tools.
4. Application-specific processors
Controller Datapath
• Programmable processor optimized for a particular class Control Registers
of applications having common characteristics logic and
State
– Compromise between general-purpose and single- register
Custom
purpose processors ALU
IR PC
• Features
Data
– Program memory Program memory
– Optimized datapath memory
20
4. Application-specific processors
Application Specific Integrated Circiut (ASIC) is a microchip designed to perform a specific or unique
application. It is used as replacement to conventional general purpose logic chips.
• It is basically a microchip customized for a particular use rather than intended for general purpose use.
• Most of the ASICs are proprietary products. As a single chip, ASIC consumes very small area in the total system
and thereby helps in the design of smaller systems with high capabilities/functionalities.
• ASICs can be pre-fabricated for a special application or it can be custom fabricated by using the components
from a re-usable “building block” library of components for a particular customer application.
• Application Specific Standard Product (ASSP) is marketed to multiple customers just as a general-purpose
product , but to a smaller number of customers since it is for a specific application.
• Some ASICs are proprietary products , the developers are not interested in revealing the internal details.
4. Application-specific processors
• ASIC are categorized according to the technology used for
manufacturing to the following types :
1. Fully-customized ASIC
➢ Fully-customized ASIC are those IC’s which cannot be modified to suit different
applications.
➢ Fully customized ASIC’s are those that are fully filtered to a particular application.
❖ A typical general purpose processor contains an Arithmetic and Logic Unit (ALU) and Control Unit (CU).
ASIPs are processors with architecture and instruction set optimized to specific domain/application
requirements like Network processing, Automotive, Telecom, media applications, digital signal
processing, control applications etc.
❖ ASIPs fill the architectural spectrum between General Purpose Processors and Application Specific
Integrated Circuits (ASICs)
❖ The need for an ASIP arises when the traditional general purpose processor are unable to meet the
increasing application needs.
❖ Some Microcontrollers (like Automotive AVR, USB AVR from Atmel), System on Chips, Digital Signal
Processors etc are examples of Application Specific Instruction Set Processors (ASIPs).
5. Commercial off the Shelf Component (COTS):
• COTS products are designed in such a way to provide easy integration and interoperability
with existing system components.
• Typical examples for the COTS hardware unit are Remote Controlled Toy Car control unit,
high frequency microwave electronics (2 to 200 GHz), High bandwidth analog-to-digital
converters.
• A COTS component in turn contains a General Purpose Processor (GPP) or Application Specific
Instruction Processor or Programmable Logic Device (PLD)
5. Commercial off the Shelf Component (COTS):
• The major advantage of using COTS is that they are readily available in the market, cheap and a
developer can cut down his/her development time to a great extend. There is no need to design the
module yourself and write the firmware. Everything will be readily supplied by the COTs manufacturer.
• The major problem faced by the end-user is that there are no operational and manufacturing
standards.
• The major drawback of using COTs component in embedded design is that the manufacturer may
withdraw the product or discontinue the production of the COTs at any time if rapid change in
technology. This problem adversely affect a commercial manufacturer of the embedded system which
makes use of the specific COTs.
Types of embedded system
➢ Microcontroller
➢ Raspberry Pi
Microcontroller
▪ A highly integrated silicon chip containing a CPU, RAM, Special and
General-purpose Register Arrays, On Chip ROM/FLASH memory for
program storage, Timer and Interrupt control units and dedicated I/O
ports.
▪ Microcontrollers can be considered as a super set of Microprocessors.
▪ Microcontroller can be general purpose (like Intel 8051, designed for
generic applications and domains) or application specific (Like
Automotive AVR from Atmel Corporation. Designed specifically for
automotive applications)
▪ Since a microcontroller contains all the necessary functional blocks
for independent working, they found greater place in the embedded
domain in place of microprocessors
▪ Microcontrollers are cheap, cost effective and are readily available in the market
▪ Texas Instruments TMS 1000 is considered as the world's first microcontroller
Microcontroller (MCU , uC)
• It enable us to create (functions) units not exist for image processing, speech recognition,
fingerprint, face recognition and so on.
• FPGAs are commonly used in applications where flexibility, speed, and parallel
processing capabilities are required, such as in telecommunications, automotive.
• FPGAs are a subset of logic devices referred to as programmable logic devices (PLDs).
FPGA Architecture:
▪ A basic FPGA architecture consists of thousands of
fundamental elements called configurable logic blocks
(CLBs) surrounded by a system of programmable
interconnects, that routes signals between CLBs.
▪ Input/output (I/O) blocks interface between the FPGA
and external devices.
▪ Depending on the manufacturer, the CLB may also be
referred to as a logic block (LB), a logic element (LE) or
a logic cell (LC).
▪ Standard logic functions such as multiplexers (mux),
full adders (FAs) and flip-flops are also common.
• Programming and connecting to various peripherals are also made very easy with such
boards.
• It is also very easy to learn for school students.
ESP & STM
• ESP can be programmed by Arduino IDE
• ESP8266-01 is a very low cost WiFi enabled chip. But it has very limited I/O. At first glance,
once you configure it for programming all the pins are used.
• ESP32 is a series of low-cost, low-power system on a chip microcontrollers with
integrated Wi-Fi and dual-mode Bluetooth. It used in IOT applications or smart
home.
• ESP32 is created and developed by Espressif Systems, a Chinese company based
in Shanghai, and is manufactured by TSMC using their 40 nm process. It is a
successor to the ESP8266 microcontroller.
• ESP32 CAM use in applications need camera not computer vision.
• STM32 can be programmed by Cube IDE or Arduino IDE. Use in industry many
versions
Raspberry Pi system
Raspberry Pi
• The raspberry pi is a small sized computer on a
single board that can fit in the palm of your hand.
• OS such as Linux and Win10