13
Introduction to Embedded Systems EHB326E Lectures Prof. Dr. M¨ stak E. Yal¸ cın Istanbul Technical University [email protected] Prof. Dr. M¨ stak E. Yal¸ cın ( ˙ IT ¨ U) EHB326E (V: 0.1) September, 2018 1 / 13

Introduction to Embedded Systems EHB326E Lectures · 2018. 10. 30. · Datapath (Frank Vahid, Digital Design (Chapter 4)) Register & Adder Adding/Subtracting Calculator Prof. Dr

  • Upload
    others

  • View
    11

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Introduction to Embedded Systems EHB326E Lectures · 2018. 10. 30. · Datapath (Frank Vahid, Digital Design (Chapter 4)) Register & Adder Adding/Subtracting Calculator Prof. Dr

Introduction to Embedded SystemsEHB326ELectures

Prof. Dr. Mustak E. Yalcın

Istanbul Technical University

[email protected]

Prof. Dr. Mustak E. Yalcın (ITU) EHB326E (V: 0.1) September, 2018 1 / 13

Page 2: Introduction to Embedded Systems EHB326E Lectures · 2018. 10. 30. · Datapath (Frank Vahid, Digital Design (Chapter 4)) Register & Adder Adding/Subtracting Calculator Prof. Dr

Datapath

A datapath: storing and manipulating dataDatapath (Register-transfer level) components:

Combinational Comp. (Multeplexor,Decoder, n-bit comporator, ALU)

Sequential Comp.(n-bit Register, shift register, counter)

Course Prerequisites: EHB2015 Introduction to Logic Design (BLG 231EDigital Circuits) : Combinational Logic (Combinational logic design(Karnaugh map,...)), Sequential Logic (Sequential logic design)

Prof. Dr. Mustak E. Yalcın (ITU) EHB326E (V: 0.1) September, 2018 2 / 13

Page 3: Introduction to Embedded Systems EHB326E Lectures · 2018. 10. 30. · Datapath (Frank Vahid, Digital Design (Chapter 4)) Register & Adder Adding/Subtracting Calculator Prof. Dr

Datapath (Frank Vahid, Digital Design (Chapter 4))

Register & Adder

Adding/Subtracting Calculator

Prof. Dr. Mustak E. Yalcın (ITU) EHB326E (V: 0.1) September, 2018 3 / 13

Page 4: Introduction to Embedded Systems EHB326E Lectures · 2018. 10. 30. · Datapath (Frank Vahid, Digital Design (Chapter 4)) Register & Adder Adding/Subtracting Calculator Prof. Dr

Y-chart (Embedded System Design Modeling, Synthesis and Verification, Gajski et al., Chapter 1 )

Functional Domain: emphasis is on behavior (input - outputfunctionality), without any reference to the particular way in whichthis behavior is implemented.

Structural Domain: the specification is in terms of hierarchy ofinterconnected functional components.

Physical Domain: the specification is in terms of physical placementin space and physical characteristics without any elements tofunctionality.

Prof. Dr. Mustak E. Yalcın (ITU) EHB326E (V: 0.1) September, 2018 4 / 13

Page 5: Introduction to Embedded Systems EHB326E Lectures · 2018. 10. 30. · Datapath (Frank Vahid, Digital Design (Chapter 4)) Register & Adder Adding/Subtracting Calculator Prof. Dr

Circuit & Logic Level Abstraction

Behavior Structure Physical

EHB 205E Introduction to Logic Design EHB 322E Digital Electronic Circuits EHB 413E VLSI Circuit Design I

8 bit adder

8 8

8

S = A + B, EHB 205E Introduction to Logic Design

Prof. Dr. Mustak E. Yalcın (ITU) EHB326E (V: 0.1) September, 2018 5 / 13

Page 6: Introduction to Embedded Systems EHB326E Lectures · 2018. 10. 30. · Datapath (Frank Vahid, Digital Design (Chapter 4)) Register & Adder Adding/Subtracting Calculator Prof. Dr

Processor Level Abstraction

Computational components or Processing Elements (PEs) are defined anddesigned!

The functionality of a PE can be specified with an algorithm or with a flowchart. Finite State Machine (FSM) is a mathematical model ofcomputation (for simple control functionality, (good for several hundredstates,binary variable for I/O, EHB2015)

Prof. Dr. Mustak E. Yalcın (ITU) EHB326E (V: 0.1) September, 2018 6 / 13

Page 7: Introduction to Embedded Systems EHB326E Lectures · 2018. 10. 30. · Datapath (Frank Vahid, Digital Design (Chapter 4)) Register & Adder Adding/Subtracting Calculator Prof. Dr

Finite State Machine with Datapath

FSM model can be extended (Finite State Machine with Datapath(FSMD)) using standard integer or floating-point variables and computingtheir values in each state or during each transition by a set of arithmeticexpressions or programming statements.

FSMs allow only binary I/O and don’t allow local data storage (onlystate!).

Prof. Dr. Mustak E. Yalcın (ITU) EHB326E (V: 0.1) September, 2018 7 / 13

Page 8: Introduction to Embedded Systems EHB326E Lectures · 2018. 10. 30. · Datapath (Frank Vahid, Digital Design (Chapter 4)) Register & Adder Adding/Subtracting Calculator Prof. Dr

Example 5.1 (Vahid, page 227) : Soda dispenserc: bit input, 1 when coin deposited

a: 8-bit input having value of depositedcoin

s: 8-bit input having cost of a soda

d: bit output, processor sets to 1 whentotal value of deposited coins equals orexceeds cost of a soda

Prof. Dr. Mustak E. Yalcın (ITU) EHB326E (V: 0.1) September, 2018 8 / 13

Page 9: Introduction to Embedded Systems EHB326E Lectures · 2018. 10. 30. · Datapath (Frank Vahid, Digital Design (Chapter 4)) Register & Adder Adding/Subtracting Calculator Prof. Dr

Register Transfer Level (RTL) Design Method

RTL design is one of the methods for processor design!

Designer specifies the register of a design, describes the possible transfersand operations perform on input,output or register data and defines thecontrol that specifies when to transfer and operate on data !

Step1 : Describe the system’s desired behaviouras a finite state machine with data.

Step2 : Create a datapath to carry dataoperations.

Step3 : Connect the datapath to a control unit.

Step4 : Drive the controller’s FSM (replacingdata operations with setting and reading ofcontrol signal to and from the datapath)

Digital Design, F. Vahid, Chapter 5

Prof. Dr. Mustak E. Yalcın (ITU) EHB326E (V: 0.1) September, 2018 9 / 13

Page 10: Introduction to Embedded Systems EHB326E Lectures · 2018. 10. 30. · Datapath (Frank Vahid, Digital Design (Chapter 4)) Register & Adder Adding/Subtracting Calculator Prof. Dr

Step2

External Data Inputs: a, s

Operations : adder, comparator

Registers: tot

Control Input: tot load, tot clear

Control Output: tot compare result

Prof. Dr. Mustak E. Yalcın (ITU) EHB326E (V: 0.1) September, 2018 10 / 13

Page 11: Introduction to Embedded Systems EHB326E Lectures · 2018. 10. 30. · Datapath (Frank Vahid, Digital Design (Chapter 4)) Register & Adder Adding/Subtracting Calculator Prof. Dr

Step3 Step4

Prof. Dr. Mustak E. Yalcın (ITU) EHB326E (V: 0.1) September, 2018 11 / 13

Page 12: Introduction to Embedded Systems EHB326E Lectures · 2018. 10. 30. · Datapath (Frank Vahid, Digital Design (Chapter 4)) Register & Adder Adding/Subtracting Calculator Prof. Dr

Step4

Implementation of controller’s state table: Sequential logic design(EHB205Int. Logic Design)

Prof. Dr. Mustak E. Yalcın (ITU) EHB326E (V: 0.1) September, 2018 12 / 13

Page 13: Introduction to Embedded Systems EHB326E Lectures · 2018. 10. 30. · Datapath (Frank Vahid, Digital Design (Chapter 4)) Register & Adder Adding/Subtracting Calculator Prof. Dr

Processor Level Abstraction

Behavior Structure Physical

More to read : P. Schaumont, A Practical Introduction toHardware/Software Codesign (Chapter 4)

Prof. Dr. Mustak E. Yalcın (ITU) EHB326E (V: 0.1) September, 2018 13 / 13