DSD-1 (Introduction).pdf

aminfoshati1 298 views 33 slides Jun 16, 2023
Slide 1
Slide 1 of 33
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33

About This Presentation

The present lectures have been prepared for an undergraduate course in Digital System Design (DSD) of Sharif University of Technology.


Slide Content

Digital System Design
Course
Amin Foshati (/ˈfɒsˈhati/)
Sharif University of Technology
Department of Computer Engineering
Introduction
SpringSemester
2023

The present lectures have been prepared for an undergraduate course
in Digital System Design (DSD).
SpringSemester
2023
Introduction
Digital System Design
Evaluation
Why is this course
essential?

CourseEvaluation
•Thegradingisbasedon:
•Assignments(4points)
•Programmingexercises
•Midterm(8points)
•Open-bookexam
•Programming
•Multiplechoiceexam
•Final (8 points)
•Based on the university announcement
•Bonus assignments & classwork (5 points)
3

Timetable & TAs
•CourseTimetable:
•https://docs.google.com/spreadsheets/d/1eC6ObIJd4DHG-
zO8wMWr3w8muHid7XiRVYFAsrKoQJo/edit?usp=sharing
•Myemail:
•a.foshati@{gmail .com/sharif.edu}
•TeacherAssistants(TAs):
•Ms.Rezazad
[email protected]
•Ms.Farahani
•Mr.Ghasab
•BScstudents
4

Why is this course essential?
•Weshouldevaluatethiscourseonsomeaspects:
•Prerequisitetoresearch
•Educationalfunds
•Prerequisitetojobvacancies
•Highersalary
•Emergingtechnologies
•Artificialintelligencetechnology
•Cryptocurrency
•Autonomous vehicles
5

What is a digital system?

Digital Signal vs. Analog Signal
•Physicalquantities
•Temperature
•Speed
•Distance
•Analog signal
•Continuous
•Digital signal
•Discrete
•Sampling
•Mappingcontinuoustodiscrete
•Convertinganalogtodigital
Time
Temprature
10
20
25
4 8 12 16 20 24
Time
Temprature
10
20
25
4 8 12 16 20
Analog Signal
Sampling
Time
Temprature
10
20
25
4 8 12 16 20 24
Analog Signal
Digital Signal
7

Digital System
•DigitalSystem
•Adigitalsystemisacombinationofdevicesdesignedto
manipulateadigitalsignals.
•Becauseofreal-worldhastheanalogquantity,thedigitalsystems
needsomemix-signalsystemstocommunicatewiththerealworld.
•AnalogtoDigitalConvertor(ADC)
•DigitaltoAnalogConvertor(DAC)
Source: openlabpro.com
8

Digital System Example
Source: Ronald Tocci
9

Shift from analog to digital
•Analog System
•Digital System
10

DigitalSystems
•Advantages:
•Adjustable precision
•High noise immunity
•Ease of diagnosis and repair
•Design Automation
•More digital circuit can fabricated on IC chips
•Disadvantages
•The real world is analog
11

How to Design a Digital
System?

Design a Digital System
Synthesis:
Code Bitstream
FAB
Programmer
Programmer Logic Devices (PLDs)
Writing a code by CAD tools
2 1
13

Computer Aided Design (CAD)
•CAD:
•The use of computer software to aid in design process
•Electronic CAD (ECAD) / Electronic Design Automation (EDA)
•Synthesis
•Convert code to bitstream
•Bitstream:Afilethatcontainstheinformationofyourhardware.Likethe
"exe"fileintheWindowsoperatingsystemthatincludesinformationon
yourapplication.
•Simulation
•Running a hardware code on a computer
14

Programmer Logic Device (PLD)
•Adeviceusedintheconstructionofreconfigurabledigital
circuits
•APLDhasanundefinedfunctionatthetimeofconstruction
•UnlikedigitallogicICthatdefinedfunctionality
•7400(two-inputNANDgates)
•7408(two-inputANDgates)
•…
•Youcanprogramforspecificfunctionality
•Twotypes:
•Reconfigurable
•Theycanonlybeconfiguredonce.
15

Field-Programmable Gate Array (FPGA)
PLD Example:
Basys3 Artix-7 FPGA Board
16

Computer Aided Design (CAD)
FAB
Programmer
PLDs
Writing a code by CAD tools
2 1
Application-Specific Integrated Chips (ASIC) 17

Which way is a better choice?
ASICs or PLDs?

ASIC
•Cost
•First chip
•Several hundred thousand dollars
•Other chips
•Very cheap
•Time
•We should be patient to produce a chip!
•Reconfigurable after production?
•No
19

PLD
•Cost
•Buy a PLD and programmer
•ZedBoardZynq-7000
•500 dollars
•Time
•After Synthesis
•You can program the bitstream file immediately.
•Reconfigurable after production?
•Yes
20

Which solution is chosen?
•Mass production
•ASIC
•Reconfigurable Computing (RC)
•Run some part of product and store result then run another part.
•PLD
•Custom hardware
•PLD
•ASIC
•Prototyping
•Creating a sample product for validation and verification
•PLD
21

Computer Aided Design (CAD)
FAB
Programmer
PLDs
Writing a code by CAD tools
2 1
ASIC
Hardware
Description
Language (HDL)
22

Why are CAD tools and HDLs
essential?

Contemporary Digital System
•More complex designs
•System on Chip (SoC)
•Shorter Time-To-Market (TTM)
•the period of time between the idea of a product
and its release to the market
•Cheaper products
•Reduce cost of designing
24

Integrated Circuits (ICs)
•SSI(Small Scale Integration): 1 to 30 gates
•a small number of gates
•MSI(Medium Scale Integration): 30 to 300 gates
•decoder, register, counter
•LSI(Large Scale Integration): 300 to 300,000 gates
•small memories
•VLSI(Very Large Scale Integration): > 1,000,000 transistors
•microprocessors, memories
25

Circuit Design Solution
•Paper and Pencil
•Suitable for:
•SSI
•MSI
•Algorithmic State Machine (ASM)
•Suitable for:
•LSI
•CAD Tools and HDL
•Suitable for:
•VLSI
26

Why C, Java, Python, and etc.
are not suitable?

Requirements of HDLs
•Concurrency
•Hardware operate parallelly
•Time
•The results should be available before the next clock
•DesignHierarchy
•Divide a system into smaller parts
•StructuralSpecification
•Defined a system by elements and interconnections
•Pragmatics
•can be physically implemented
28

Requirements of HDLs (Cont.)
•Concurrency
•Hardware operate parallelly
•C language run serially by default
•Timing
•HDL can emulate seconds, milliseconds, etc.
•Order is essential in the C language
29
Combinational Part Combinational Part
Registers Registers Registers
Combinational Part Combinational Part
Registers Registers Registers

Requirements of HDLs (Cont.)
•Design Hierarchy
•Divide a system into smaller parts
•Focus on a manageable portion of the system
•Structural Specification
•Defined a system by elements and interconnections
•A system has many subsystems
•Every subsystem has several inputs and outputs
System
Subsystem 1

Subsystem 2


Subsystem n

System
Subsystem 1
3 inputs
2 outputs
30

Example of Design Hierarchy

















31

Structural vs. Behavioral
Half Adder
Structural
S = A ^ B;
C = A & B;
Half Adder
Behavioral
32

CourseOverview
Thiscourseaimstolearnhowtodesigna
digitalsystemwithComputer-Aided
Design(CAD)toolsandHardware
DescriptionLanguage(HDL).
33