0% found this document useful (0 votes)
22 views

Cyber Physical Systems CSD3010 Unit - I: by N.D. Patel Email

This document provides an introduction to cyber physical systems (CPS). It discusses what CPS are, including their infrastructure, hardware sensing and actuation capabilities, data analysis functions, connectivity, and visualization. It also discusses modeling CPS using continuous, discrete, and hybrid models. It notes that sensors and actuators are important components of CPS, along with continuous dynamics, discrete dynamics, hybrid dynamics, and composition. The document is presented by N.D. Patel and provides their contact information.

Uploaded by

jobiy48752
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views

Cyber Physical Systems CSD3010 Unit - I: by N.D. Patel Email

This document provides an introduction to cyber physical systems (CPS). It discusses what CPS are, including their infrastructure, hardware sensing and actuation capabilities, data analysis functions, connectivity, and visualization. It also discusses modeling CPS using continuous, discrete, and hybrid models. It notes that sensors and actuators are important components of CPS, along with continuous dynamics, discrete dynamics, hybrid dynamics, and composition. The document is presented by N.D. Patel and provides their contact information.

Uploaded by

jobiy48752
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 74

Cyber Physical Systems

CSD3010
Unit - I

By
N.D. Patel
Email: [email protected]
Linkden: https://www.linkedin.com/in/ndpatel18/
Contact Number: 9450095800 1
Cyber Physical Systems
CSD3010
Unit - I

Introduction to Cyber Physical Systems: What are Cyber Physical


Systems? Memory Architectures- Axioms of Cyber Physical Systems –
infrastructure, hardware sensing/actuation, data analysis, connectivity, and
visualization. CPS vs IoT.

2
Cyber Physical Systems
CSD3010
Unit - I

Modeling Cyber-Physical Systems: Overview of Continuous, Discrete, and


Hybrid Models. Sensors and Actuators, Continuous Dynamics and
Lyapunov Stability. Discrete Dynamics, Reactivity, and Termination.
Hybrid Dynamics. Composition.

3
Cyber Physical Systems
CSD3010

4
Network Security Fundamentals
Introduction to Cyber Physical Systems:
• With the exponential growth of cyber-physical systems (CPS), new security challenges have
emerged. Various vulnerabilities, threats, attacks, and controls have been introduced for the
new generation of CPS.
Introduction to Cyber Physical Systems:
Introduction to Cyber Physical Systems:

https://ieeexplore.ieee.org/abstract/document/7924372/?casa_token=-
MnrDaghpnAAAAAA:AmV4VilksYXz8jIlFZ03jkoWXZ2ua6lZ1chXn54Kq9zwLgFGPfT5gyMgi9o_FZ0ICagZ3AM
Introduction to Cyber Physical Systems:

https://ieeexplore.ieee.org/abstract/document/7924372/?casa_token=-
MnrDaghpnAAAAAA:AmV4VilksYXz8jIlFZ03jkoWXZ2ua6lZ1chXn54Kq9zwLgFGPfT5gyMgi9o_FZ0ICagZ3AM
2023 Emerging Technology Adoption Roadmap

https://www.gartner.com/en/articles/what-s-new-in-the-2023-gartner-hype-cycle-for-emerging-technologies
Cyber + Physical Systems
The term “cyber-physical systems” emerged in 2006, coined by Helen Gill at the National Science
Foundation in the US.

• It is combination of physics with cyber components networked which is interconnected.


• CPS-> monitor and control physical processes
• Sensors and Actuators
Cyber + Physical Systems-Applications
• Agriculture
• Aeronautics- improve aircraft control, improve performance, efficiency
• Healthcare- medical devices, wearables to monitors patients,
• Civil infra
• Manufacturing
• Transportation
NSF’s Definition of CPS
• Cyber-physical systems (CPS) are engineered systems that are built from, and depend
upon, the seamless integration of computation and physical components.

• Advances in CPS will enable capability, adaptability, scalability, resiliency, safety,


security, and usability that will expand the horizons of these critical systems.

• CPS technologies are transforming the way people interact with engineered systems,
just as the Internet has transformed the way people interact with information.

• Is a system that integrates physical an computational components to monitor and


control the physical processes.
Application Domains – major societal impact
• Agriculture,
• Aeronautics,
• Building design,
• Civil infrastructure,
• Energy,
• Environmental quality,
• Smart city,
• Healthcare and personalized medicine,
• Manufacturing,
• transportation.
CPS: Application Domains – major societal impact
• Cyber + Physical
• Computation + Dynamics + Communication
• Security + Safety
Contradictions in CPS
• Adaptability vs. Repeatability
• High connectivity vs. Security and Privacy
• High performance vs. Low Energy
• Asynchrony vs. Coordination/Cooperation
• Scalability vs. Reliability and Predictability
• Laws and Regulations vs. Technical Possibilities
• Economies of scale (cloud) vs. Locality (fog)
• Open vs. Proprietary
• Algorithms vs. Dynamics
Challenges of Working in a Multidisciplinary Area
Challenges of Working in a Multidisciplinary Area

Small Computer

Connected
Industrial System

Network

Big Complex
System

Advanced
Manufacturin Robo
g t
Automotive CPS
• Safer Transportation
• Reduced Emissions
• Smart Transportation
• Energy Efficiency
• Climate Change
• Human-Robot Collaboration
Example CPS System
• STARMAC Ǫuadrotor Aircraft

• Autonomous Rotocraft
STARMAC Design Block

LIDAR: Light Detection and Ranging


GPS: Global Positioning System
NAVIC: Navigation with Indian Constellation
IMU: Inertial Measurement Unit
ESC: Electronic Speed Controller
UART: Universal Asynchronous Receiver-transmitter
What is this course about?
• A scientific structured approach to designing and
implementing embedded systems
• Not just hacking and implementing
• Focus on model-based system design, on embedded hardware
and software
Model, Design & Analysis
• Modeling is the process of gaining a deeper understanding
of a system through imitation. Models specify what a
system does.

• Design is the structured creation of artifacts. It specifies


how a system does what it does. This includes
optimization.

• Analysis is the process of gaining a deeper understanding


of a system through dissection. It specifies why a system
does what it does (or fails to do what a model says it
should do).
Model, Design & Analysis
Project Ideas:

• https://www.raspberrypi.org/magpi/

• https://blog.adafruit.com/category/raspberry-pi/

• https://iccps.acm.org/2024/

• https://scholar.google.com/scholar?hl=en&as_sdt=0%2C5&q=ACM%2FIEEE+INTERNATI
ONAL+CONFERENCE+ON+CYBER-PHYSICAL+SYSTEMS&btnG=
Introduction to Microcontrollers

26
Introduction to Microcontrollers
 A microcontroller (MCU) is a small computer
on a single integrated circuit consisting of a
relatively simple central processing unit (CPU)
combined with peripheral devices such as
memories, I/O devices, and timers.
 By some accounts, more than half of all
CPUs sold worldwide are microcontrollers.
 Such a claim is hard to substantiate because
the difference between microcontrollers
and general- purpose processors is
indistinct.

27
Microcontrollers
 An Embedded Computer System on a Chip
 A CPU
 Memory (Volatile and Non-Volatile)
 Timers
 I/O Devices
 Typically intended for limited energy usage
 Low power when operating plus sleep modes
 Where might you use a microcontroller?

28
What is Control?
 Sequencing operations
 Turning switches on and off
 Adjusting continuously (or at least finely) variable quantities to
influence a process

29
Microcontroller vs Microprocessor
 A microcontroller is a small computer on a single integrated circuit
containing a processor core, memory, and programmable input/output
peripherals.

 A microprocessor incorporates the functions of a computer’s central


processing unit (CPU) on a single integrated circuit.

30
Microcontroller vs Microprocessor

31
Types of Processors
 In general-purpose computing, the variety of instruction set architectures
today is limited, with the Intel x86 architecture overwhelmingly dominating
all.
 There is no such dominance in embedded computing. On the contrary, the
variety of processors can be daunting to a system designer.
 Do you want same microprocessor for your watch, autonomous vehicle,
industrial sensor?

32
How to choose micro-processors/controllers?
 Things that matter
 Peripherals
 Concurrency & Timing
 Clock Rates
 Memory sizes (SRAM &
flash)
 Package sizes

33
Types of Microcontrollers

34
DSP Processors
 Processors designed specifically to support numerically intensive
signal processing applications are called DSP processors, or DSPs
(digital signal processors).
 Signal Processing Applications: interactive games; radar, sonar, and
LIDAR (light detection and ranging) imaging systems; video analytics (the
extraction of information from video, for example for surveillance); driver-
assist systems for cars; medical electronics; and scientific instrumentation .

35
Multiply-Accumulate Instructions
 Digital Signal Processors provide a fast and efficient multiply- accumulate
(MAC) instruction
 Typically including a relatively large accumulator
 They also typically use a Harvard memory access architecture
 They may include auto-increment addressing modes
 They may support circular buffer addressing
 Efficient implementation of delay lines
 They may support zero-overhead loops

 An Accumulator store intermediate logical or arithmetic data in multistep


calculations.

36
Programmable Logic Controller (PLC)
 A microcontroller system for industrial automation
 Continuous operation
 Hostile environments
 originated as replacements for control circuits using electrical relays to
control machinery

 PLCs are frequently programmed using ladder logic


 This notation was developed to specify logic constructed with relays and
switches

 AI can use ML algo to improve PLC programming.


 To analze data from a PLC to identify patterns and optimize the control
parameters. 37
Ladder Logic & Relays
 Relay is a switch where the contact is
controlled by coil.
 When a voltage is applied to the coil, the
contact closes, enabling current to flow
through the relay.
 By interconnecting contacts and coils, relays
can be used to build digital controllers that
follow specified patterns.  Vertical Rails &
Horizontal Rungs
Is a graphical programming language.  Contact: two vertical
bars
 Coil: circle

19
Example: explained
 Start/Run is a normally open contact
 Stop is normally closed, indicated by the slash
 It becomes open when the operator pushes the switch.
 When start is pushed, electricity flows
 Both Start and Run contacts close so that Motor runs
 When Start is released, Motor continues to run
 When Stop is pressed, current is interrupted and both Run contacts become
open and motor stops
 Contacts wired in parallel perform a logical OR function, and contacts
wired in series perform a logical AND.

39
GPUs
 A graphics processing unit (GPU) is a specialized processor designed
especially to per- form the calculations required in graphics rendering.
 Most used for Gaming (earlier days)
 Common programming language: CUDA

 NVIDIA?
 NVIDIA GeForce RTX 4090
 NVIDIA GeForce GTX 660
 AMD Radeon RX 7900 XTX

40
Parallelism vs Concurrency
 Embedded computing applications typically do more than one thing “at a
time.”
 Tasks are said to be “concurrent” if they conceptually execute
simultaneously
 Tasks are said to be “parallel” if they physically execute simultaneously
 Typically multiple servers at the same time

41
Imperative Language

 Non-concurrent programs specify a sequence of instructions to


execute.
 Imperative Language: expresses a computation as a sequence of
operations
 Example: C, Java
 How to write concurrent programs in imperative language?
 Thread Library

42
Program Dependency – Sequential Consistency
 No dependency between lines
3 and 4

 Line 4 is dependent on Line 3

43
Thread Mapping on Processor
 OS Dependent Scheduler
 Static Mapping
 Basic Lowest Load (fill in Round Robin
fashion)
 Extended Lowest Load

44
Performance Improvement
 Various current architectures seek to improve performance by finding and
exploiting potentials for parallel execution
 This frequently improves processing throughput
 It does not always improve processing latency
 It frequently makes processing time less predictable
 Many embedded applications rely on results being produced at
predictable regular rates
 Embedded results must be available at the right time

45
Parallelism
 Temporal Parallelism – Pipelining
 Spatial Parallelism –
 Superscalar
 VLIW
 Multicore

46
RISC and CISC Architectures
 CISC – Complex Instruction Set Computer
 Multi-clock complex instructions
 RISC – Reduced Instruction Set Computer
 Simple instructions that can be executed within one cycle

47
5 Cycles of RISC Instruction Set

 Instruction fetch cycle (IF)


 Fetch instruction from memory pointed by PC, then
increment PC
 Instruction decode/register fetch cycle (ID)
 Decode the instruction
 Execution/effective address cycle (EX)

 ALU operates on the operands


 Memory access (MEM)
 Load/Store instructions
 Write-back cycle (WB)
 Register-Register ALU instruction

48
Pipelining in RISC

data hazard (computed branch)


control hazard (conditional
branch)
4 branch
Mux taken

Zero
Add

Decod

memor
data
e

Mux

Mux
Instructio

memory

y
ALU
P Registe

bank
C
n

data hazard (memory read or ALU


fetc decode result) execute memory writebac
h k 49
Simple RISC Pipeline

50
Pipelining Hazard
 Data Hazard
 Control Hazard
 Out-of-order Execution
 Speculative Execution

51
Out-of-order Execution

hardware hardware
resources: A B C D E resources: A B C D
instruction A B C D E instruction A E B C D

interlock
memory register A B C D E memory register E
B C D
bank read 1 A B C D E bank read 1 A A E B C D
register bank read A B C D E register bank read A E B C D
2 A B C D E 2 A E B C D E
ALU 1 2 3 4 5 6 7 8 9 ALU
1 2 3 4 5 6 7 8 9 10 11
data data 12
cycl
memory register e memory register cycle
bank write
Reservation Reservation
bank write

Table Table with


52
CISC
 DSPs are typically CISC machines
 Instructions support
 FIR filtering
 FFTs
 Viterbi decoding

53
CISC Instruction
 Texas Instruments TMS320c54x family of DSP processors
 Code
 RPT numberOfTaps - 1
 MAC *AR2+, *AR3+, A
 RPT: zero overhead loops
 MAC : Multiply accumulate
 a := a + x ∗ y
 AR2, AR3 are registers
 A is the Accumulator

54
Multicore Architecture
 Combination of several processors in a single chip
 Real-time and Safety critical tasks can have dedicated processors
 Heterogeneous multicore
 CPU and GPUs together

55
FPGAs
 Field Programmable Gate Arrays
 Set of logic gates and RAM blocks
 Reconfigurable / Programmable
 Precise timing

 System on Chip design

Zyn 40
Fixed and Floating Point Numbers
 Programs may use float or double
 Many embedded processors do not have floating point arithmetic
hardware
 Conversion required, which makes it slow
 Imaginary Binary Point is considered for computation
 Binary point separates bits
 Decimal point separates digits
 Format x.y representation indicates
 x bits left & y bits right of binary point

57
Programmers need to guard
 Overflow – since higher order bits are discarded
 Truncation, if bits are chosen before operation
 Rounding – rounds to nearest full precision after operation

58
History of ARM Processor

59
ARM Cortex Processors
 ARM Cortex-A family:
 Applications processors
 Support OS and high-performance
applications Such as Smartphones,
Smart TV
 ARM Cortex-R family:
 Real-time processors with high
performance and high reliability
 Support real-time processing and
mission-critical control
 ARM Cortex-M family:
 Microcontroller
 Cost-sensitive, support SoC

60
Raspberry Pi

 The Raspberry Pi 3 Model B+ is the latest product in Raspberry Pi range.


 Broadcom BCM2837B0,
Cortex-A53 (ARMv8) 64-bit
SoC @ 1.4GHz
 1GB LPDDR2 SDRAM
 2.4GHz and 5GHz IEEE
802.11.b/g/n/ac wireless
LAN, Bluetooth 4.2, BLE
 Gigabit Ethernet over USB
2.0 (maximum throughput
300 Mbps)
 Extended 40-pin GPIO
header
 Full-size HDMI 61
Raspberry Pi
 The Raspberry Pi 3 Model B+ is the latest product in Raspberry Pi range.
 CSI camera port for connecting a
Raspberry Pi camera
 DSI display port for connecting a
Raspberry Pi touchscreen display
 4-pole stereo output and composite
video port
 Micro SD port for loading your
operating system and storing data
 5V/2.5A DC power input
 Power-over-Ethernet (PoE) support
(requires separate PoE HAT)

62
ARM Peripherals

63
Modeling Cyber-Physical Systems

CPS are Heterogeneous with both physical and cyber components.


64
Modeling Cyber-Physical Systems

https://
link.springer.com/
chapter/
10.1007/978-3-
319-76935-6_5

65
Hybrid Cyber-Physical Systems

66
Cyber-Physical Systems in Smart Grid

67
Modeling Cyber-Physical Systems: Example

68
Quantum Cyber-Physical Systems
00
01
10
11
Two qubits can represent
the exact same Four states

69
ML in Embedded and Cyber-Physical Systems

70
ML in Embedded and Cyber-Physical Systems

https://aicps.eng.uci.edu/machine-learning-in-embedded-cyber-physical-systems/

71
ML in Embedded and Cyber-Physical Systems

https://aicps.eng.uci.edu/machine-learning-in-embedded-cyber-physical-systems/

72
Test bed for power side-channel data collection

https://aicps.eng.uci.edu/machine-learning-in-embedded-cyber-physical-systems/
73
Test bed for power side-channel data collection

https://aicps.eng.uci.edu/machine-learning-in-embedded-cyber-physical-systems/
74

You might also like