Embedded System Design Answer Ker May 2023
Embedded System Design Answer Ker May 2023
Model Answer
Q. Sub Mar
Answer
No. Q.N. Sche
Q1 1 Ma
Solve any five of the following
Each
Answer:-
1.A flexible SoC can support a wide range of functionalities and features.
2.It allows for the integration of different IP (Intellectual Property) blocks, such as processor 1 M
memory, communication interfaces, sensors, and peripherals
3.A flexible SoC supports multiple instruction set architectures
4.SoC flexibility can also involve compatibility with different industry standards and interfa
5.Flexibility also refers to the ability to configure or reconfigure the SoC to meet specific
application requirements.
Answer:-
● watchdog timer is an electronic software timer that is used to detect and recover 1M
from computer malfunctions.
● Watchdog timer is used to generates system reset if system gets stuck somewhere
e)
List any two standard data types in python.
Answer:- 1M
● Numeric data types: int, float, complex.
● String data types: str.
● Sequence types: list, tuple, range.
● Binary types: bytes, bytearray, memoryview.
● Mapping data type: dict.
Answer: - 1M
GPIO.cleanup() to clean up all the ports you’ve used. It only affects any ports you have
set in the current program.
Q2 2x5
Answer the followings
10
Answer: -
Microcontroller or Microprocessor:
The components mentioned above are interconnected to form the embedded system. The
microcontroller/microprocessor communicates with peripherals and I/O devices through dedicated
interfaces. For example, the microcontroller might send control signals to an actuator through a GPIO pin,
read data from a sensor using an ADC, or exchange information with another system via a communication
interface.
Additionally, the microcontroller accesses program instructions from the program memory, executes them
using the CPU core, and stores temporary data in the data memory during program execution.
It's important to note that the specific layout and components of an embedded system can vary based on the
application and requirements. The detailed diagram above provides a comprehensive overview of the various
components typically found in embedded systems and their interconnections.
b) Draw the proper interfacing diagram of the PIR sensor to the Raspberry Pi .Write a python program for
detection of motion.
5M
Answer:
Program:
Branch folding -
● Branch folding is a technique that combines multiple branches into a single instruction, which can
help reduce the number of pipeline stalls required for each branch and improve the overall
performance of the pipeline.
● This is achieved by replacing multiple conditional branches with a single conditional branch
instruction that tests the condition once and then jumps to the appropriate target based on the result.
● The conditions for branch folding depend on the specific architecture of the processor and the
behavior of the program being executed.
● Generally, branch folding is most effective when there are multiple branches in the code that have
the same target instruction and share a common condition. This allows the branches to be combined
into a single instruction that tests the condition once and then jumps to the target instruction based
on the result.
● However, not all programs are suitable for branch folding, and there are certain conditions that must
be met for it to be effective.
● For example, the branches being combined must be independent of each other, and the resulting
instruction must not be too large or complex to execute efficiently. Additionally, the target
instruction must be within the range of the instruction set architecture jump or branch instruction,
and the branch prediction accuracy must not be significantly affected by the folding process.
● Overall, branch folding is a powerful optimization technique that can help improve the performance
of ARM pipelines by reducing the number of pipeline stalls caused by branch instructions.
b) List any four assignment operators in python. Write a python program for
multiplication of two numbers.
Answer: -
Python program for multiplication of 2 numbers:
num1 = 5.0
num2 = 3.0
Output :
a) What is the library function? State the use of the following instructions.
i) print tuple [o]
ii) dict (d)
iii) time ()
Answer:
In programming, a library function refers to a pre-defined function that is provided by a libra
or module. Libraries contain collections of functions and routines that can be used to perform
specific tasks, such as mathematical calculations, file operations, networking, and more. The
functions can be called from within a program to leverage their functionality and simplify th
coding process.
i) print tuple[o]:
1
The syntax print tuple[o] is not valid in Python. However, if you meant print(tuple[o]), it 12
suggests that you are trying to print a specific element of a tuple. In Python, tuples are order Equa
immutable sequences that can store multiple values. To access a specific element in a tuple,
use indexing.
Example
my_tuple = (1, 2, 3, 4, 5)
print(my_tuple[0]) # Prints the first element of the tuple
Output
1
ii) dict(d):
The dict(d) instruction is used to create a dictionary in Python. A dictionary is an unordered
collection of key-value pairs, where each key is unique. It is also known as a hashmap or
associative array in other programming languages.
Example:
Alternatively, you can also create a dictionary using curly braces and key-value
pairs directly, like this:
iii) time():
The time() function is part of the time module in Python. It is used to retrieve the current tim
seconds since the Unix epoch (January 1, 1970). This function is commonly used for various
timing operations, benchmarking, or to measure the duration of code execution.
Example:
import time
current_time = time.time()
print(current_time)
Output:
1624978381.447256
The value returned by time() is a floating-point number representing the
number of seconds.
Answer :-
As shown in above Fig. 4.7, LCD is interfaced to 10 GPIO pins of Raspberry Pi.
• GPIO pin 21, 20, 16, 12, 25, 24, 23 and 18 are used as ‘BYTE’ and created ‘PORT’ functio
to send the data to LCD. GPIO 21 is LSB and GPIO 18 is MSB.
a) SOC.
Answer:-
● A System-on-a-Chip (SoC) is an integrated circuit (IC) that combines multiple
components and functionalities of a computer system into a single chip.
● It integrates various hardware components, including processors, memory,
input/output interfaces, peripherals, and often includes additional features such as
sensors or wireless connectivity.
● SoC technology enables the miniaturization and integration of complex systems,
offering significant advantages in terms of size, power efficiency, and
performance.
Advantages of SoC:
● The size of SoC is smll and it includes many features and functions.
● SoC consumes less power.
● SoC is flexible in terms of chip size, power, form factor (form factor refers to the
size,
shape, and physical specifications of hardware components) .
● As SoC is build on a single chip for a specific application, it is cost effective if
produced in
large quantity.
● As SoCs are highly integrated, hard cores can be used to implement highly
computational
functions in hardware
Disadvantages of SoC:
● The designing process of SoC usually takes six to twelve months. So it is time
consuming
to have SoC for a specific application.
● If any component on SoC is not functioning properly, then it cannot be replaced.
In that
case, entire SoC has to be replaced.
● Visibility of SoC is limited..
b) Microcontroller.
Answer:-
1,A microcontroller is a small integrated circuit (IC) that combines a microprocessor core,
memory, and input/output peripherals on a single chip. It is designed to provide
embedded control and processing capabilities in a wide range of applications.
2.Embedded Systems: Microcontrollers are designed for embedded systems, where they
serve as the "brain" of the device. They are programmed to control and monitor the
device's operation, perform real-time tasks, interface with sensors and actuators, and
manage communication with other devices or systems.
3.Low Power Consumption: Microcontrollers are optimized for low power consumption,
making them suitable for battery-powered devices and energy-efficient applications.
They often include power management features, such as sleep modes, to minimize
power consumption during idle or low activity periods.
4.Real-Time Operations: Many microcontrollers are capable of real-time operations,
meaning they can respond to external events or perform time-critical tasks with
low latency. This makes microcontrollers suitable for applications that require timely respon
such as robotics, motor control, and sensor data acquisition.
7.Variety of Options: Microcontrollers come in various types and families, each with its
own set of features, performance levels, and target applications. Different microcontrollers
may have different CPU architectures (e.g., 8-bit, 16-bit, 32-bit), clock speeds, memory size
and specific peripheral sets. This variety allows designers to select the most suitable
microcontroller based on the requirements of their application.
Answer: -
Digital Signal Processing (DSP) is a branch of signal processing that deals with the
manipulation, analysis, and transformation of digital signals. It involves the use of mathemat
algorithms and computational techniques to process and extract information from digital sign
such as audio, video, images, sensor data, and communication signals.
Signal Analysis and Filtering: DSP techniques are employed to analyze signals and extract
useful information.
Image and Video Processing: DSP is utilized in image and video processing applications,
such as image enhancement, object recognition, image compression (e.g., JPEG),
video coding (e.g., H.264), and computer vision tasks. DSP algorithms enable
operations like image filtering, edge detection, image restoration, and motion estimation.
d) Network on a chip
Answer:-
Quality of Service (QoS): NoC can support different levels of QoS to prioritize and manage
traffic within the system. QoS mechanisms enable the allocation of bandwidth, latency
requirements, and differentiation of communication paths based on the specific needs of
different IP blocks or applications running on the SoC.
Power Efficiency: NoC designs often incorporate power management techniques to optimiz
energy consumption. Power gating, clock gating, voltage scaling, and dynamic power
management techniques are employed to minimize power consumption in the on-chip
communication subsystems.
Fault Tolerance and Reliability: NoC architectures can be designed with built-in fault toler
mechanisms to handle faulty or unreliable links or routers. Redundancy, error correction cod
fault detection, and recovery mechanisms can be incorporated to enhance the reliability and
robustness of the communication infrastructure.
Design Productivity: NoC provides a structured and modular communication architecture,
improving design productivity. It enables modular IP block integration, easier system debug
and verification. Designers can focus on individual IP blocks and their functionalities while
relying on the standardized NoC communication infrastructure.
e) NOOBS.
Answer: -
NOOBS, which stands for "New Out of the Box Software," is an easy-to-use operating
system installation manager for the Raspberry Pi. It is designed to simplify the process of
setting up and installing an operating system on a Raspberry Pi board, particularly for
beginners or users who are new to the Raspberry Pi ecosystem.
Operating System Selection: NOOBS provides a user-friendly interface that allows users
to choose from a variety of operating systems for their Raspberry Pi. It offers a selection
of popular operating systems, including Raspbian (the official Raspberry Pi operating
system), Ubuntu, LibreELEC, OSMC, and others. Users can select and install their
preferred operating system without the need for complex setup procedures.
Offline and Online Installation: NOOBS supports both offline and online installations.
In the offline mode, all the necessary files for installing the selected operating system are
pre-loaded onto the SD card, allowing users to install an operating system even without an
internet connection. In the online mode, NOOBS connects to the internet and downloads
the latest version of the selected operating system during the installation process.
Recovery and Dual Boot Options: NOOBS offers recovery and dual boot options for
added convenience. In case an installation fails or an operating system encounters issues,
NOOBS provides a recovery mode that allows users to reinstall or repair the system easily.
Additionally, NOOBS supports dual boot configurations, enabling users to install and run
multiple operating systems on their Raspberry Pi and choose the desired one during
startup.
User-Friendly Interface: NOOBS features a simple and intuitive interface that makes it
accessible to users of all skill levels. The interface provides clear instructions, displays
installation progress, and allows users to customize various settings during the installation
process.
Community Support: NOOBS benefits from the vibrant Raspberry Pi community, which
provides support, tutorials, and resources to assist users with any questions or issues they
may encounter during the installation or usage of NOOBS and the associated operating
systems.
f) Bluetooth module
Answer: -