Digital Logic Design and Application
This presentation is the property of its rightful owner.
Sponsored Links
1 / 87

数字逻辑设计及应用 PowerPoint PPT Presentation


  • 169 Views
  • Uploaded on
  • Presentation posted in: General

Digital Logic Design and Application ( 数字逻辑设计及应用 ). 数字逻辑设计及应用. 任课教师:姜书艳 电子科技大学自动化工程学院 (主楼) C2-209 房间 [email protected] http://222.197.165.195/wlxt/course.aspx?courseid=0669. Digital Logic Design and Application ( 数字逻辑设计及应用 ). Well begun is half done. An early bird catches the worm.

Download Presentation

数字逻辑设计及应用

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


3710983

Digital Logic Design and Application (数字逻辑设计及应用)

数字逻辑设计及应用

任课教师:姜书艳

电子科技大学自动化工程学院

(主楼)C2-209 房间

[email protected]

http://222.197.165.195/wlxt/course.aspx?courseid=0669


3710983

Digital Logic Design and Application (数字逻辑设计及应用)

  • Well begun is half done.

  • An early bird catches the worm.


3710983

积极改造主观世界

主动适应外围环境

--王志强

志存高远 追求卓越

崇尚学术 追求真理

彰显个性 多样成才

--王亚非


3710983

自立:

自己依靠自己

自己决定自己未来的发展方向

自律:

要有自己管束自己的意识


3710983

认真学习专业知识

积极参加学生工作

注重培养思维方式和思考方法

注重培养自己的领导能力

专注专业,全面发展


3710983

普林斯顿大学的本科培养目标:

具有清楚的思维、表达和写作能力

具有以批评的方式系统推理的能力

具有形成概念和解决问题的能力

具有独立思考的能力

具有敢于创新及独立工作的能力

具有与他人合作的能力


3710983

普林斯顿大学的本科培养目标:

具有判断什么意味着彻底理解某种东西的能力

具有辨识重要的东西与琐碎的东西、持久的东西与短暂的东西的能力

熟悉不同的思维方式

具有某领域知识的深度


3710983

普林斯顿大学的本科培养目标:

具有观察不同学科、文化、理念相关之处的能力

具有一生求学不止的能力


3710983

哈佛大学的教学理念:

研究型大学本科教育的实质是:

教育我们的学生成为

具有好奇心

反思和怀疑精神

并至少能在一个知识领域中

进行专门和集中学习的人


3710983

斯坦福大学

不仅学生从老师那里学习

而且老师也从学生那里学习

在一所研究型大学

研究与教学有一种辩证的关系


3710983

斯坦福大学校长约翰·汉尼斯:

课程设置中

讲座式为主

而小组讨论的方式很少

这样影响学生的收获


3710983

耶鲁大学校长理查德·莱文:

中国大学本科教育缺乏:

1.跨学科的广度

2.对批判性思维的培养


3710983

耶鲁大学

所有对学生产生深远影响的

重要的具体事件

有4/5发生在课外


3710983

中西文化教育的差异:

1.自由教育与应试教育的差别

2.学以致知与学以致用的差别

3.求新与求多的差别


3710983

中西文化教育的差异:

西方文化:

求新、求异、求变

中国文化:

求多不求新

求同不求异

求稳不求变


3710983

大小班结合授课

强调实践应用

突出系统概念

强化软硬件联系

注重知识面的宽度和广度

注重解决实际问题能力的培养


3710983

大小班结合授课

注重学生人文素质的培养

培养学生终身学习能力

倡导个性发展


3710983

大小班结合授课

以学生为中心

课内与课外相结合

科学与人文相结合

教学与科研相结合


3710983

大小班结合授课

小团队的实验室和研讨会的研究活动是重要的教学模式

一切为了学生的成长

一切从学生的实际出发

一切让学生自主选择、自我负责


3710983

大小班结合授课

理论教学+实践教育+文化育人

科学精神与人文精神融合

专业教育与素质教育融合

课内培养与课外培养融合

共性发展与个性发展融合


3710983

课堂录像

学生听课时应精神饱满,适时做笔记,不要趴在桌子上或斜坐在座位上。

桌面保持适当的整洁。

课堂上应与老师进行必要的互动。


3710983

Digital Logic Design and Application (数字逻辑设计及应用)

课程简介

“数字逻辑设计及应用”课程历来是我校的重要专业基础课程之一,是研究数字系统设计的入门课程。

  • 通过本课程的学习,使学生掌握数字逻辑电路的基本理论和基本分析设计方法,为学习后续课程准备必要的电路知识。

  • 本课程在培养学生严肃认真的科学作风和抽象思维能力、分析计算能力、总结归纳能力等方面起重要作用。

  • 在本课程中,将介绍数字逻辑电路的分析设计方法和基本的系统设计技巧;培养同学综合运用知识提出问题、分析、解决问题、评价问题的能力和在工程性设计方面的基本素养。通过实验和课程设计、课外上机实验等的方式,使同学深入了解和掌握数字逻辑电路的设计分析方法和电路的运用过程。


3710983

Digital Logic Design and Application (数字逻辑设计及应用)

  • 课程安排:64学时

  • 教材:

    数字设计—原理与实践(第4版 影印版)

    John F. Wakerly

    高等教育出版社 2007

  • 参考书:

  • 1.数字逻辑设计及应用,姜书艳主编,清华大学出版社,2007

  • 2. 数字电子技术基础 (第5版),阎石主编,高等教育出版社,2007

  • 3. 数字设计—原理与实践(第4版),John F. Wakerly,林生 等译,机械工业出版社,2007

  • 4. 数字电路与系统 (第2版),刘宝琴等编著,清华大学出版社,2007

  • 5. 数字电路逻辑设计(第3版),王毓银主编,高等教育出版社,2006


3710983

Digital Logic Design and Application (数字逻辑设计及应用)

  • 相关学习网站:

  • http://222.197.165.195/wlxt/course.aspx?courseid=0669:电子科技大学/互动教学空间/网络学堂/自动化工程学院/数字逻辑设计及应用[姜书艳]

  • www.prenhall.com/onekey/:包含教材中的所有图表、占教材中半数以上的部分习题解答

  • www.ddpp.com: 部分习题解答

  • www.xilinx.com/programs.univ:Xilinx的大学计划,提供了大量的产品资料、课程资料以及用于数字设计实验课程的芯片和插件

  • www.aldec.com/education/university:Aldec的教育计划,提供了Aldec自己的软件包和第三方的兼容工具以及原型系统。


3710983

Digital Logic Design and Application (数字逻辑设计及应用)

  • 内容安排:32次课

    内容讲解29次,习题讲解3次

  • 第1,2章 3次 引言,数制与编码

  • 第3章 4次 数字电路器件基础

  • 第4,6章 11次 组合电路分析与设计

  • 第5章 1次 Verilog语言

  • 第7,8章 11次 时序电路分析与设计

  • 第9章 1次 存储器和可编程器件

  • 补充内容 1次 DAC和ADC


3710983

Digital Logic Design and Application (数字逻辑设计及应用)

  • 习题

    每次课 2—4题(基本采用教材习题);

    每章结束上交,批改后将进行针对性讲解,并给出参考解答;

  • 每课一题

    每次内容讲解的课上布置,自备一页纸完成,要求当堂完成上交;

  • 课程设计

    综合性考查,组合电路和时序电路各一次,要求两周内完成后上交;

  • 小论文

    针对某个专题,查阅相关资料,撰写自己的认识。


3710983

Digital Logic Design and Application (数字逻辑设计及应用)

教 学 考 核 方 式

  • 平时作业及随堂考核成绩:15%

  • 课程设计:10%

  • 小论文若干篇,5%

  • 期中考试:30%

  • 期末考试:40%


3710983

第 1 章作业

  • 读书报告:

  • 数字技术的发展历程

  • 要求:根据数字技术的发展历程,分析本课程应该重点学习哪些内容?

  • 学完本课程后,你应该具备哪些方面的能力?

  • 提示:仔细阅读教材第一章内容,同时可以在网上查阅一些相关资料,结合自己的思考,完成2000字以上的读书报告。中、英文均可。

  • 提交日期:第三周第一次课以前

  • 提交方式:电子版 发到QQ邮箱:

  • [email protected]


3710983

电子系统所包含的知识点及其相互关系

执行机构

计算机

数字系统

D/A转换

功率

放大器

传感器

滤波器

运算电路

A/D转换

接收器

信号转换电路

隔离电路

信号

发生器

阻抗变换

比较器

放大器

采样保持

反馈

脉冲的产生和整形

不同的闭环系统将引入各种不同的反馈!

组合电路时序电路

单片机


3710983

本课程与后续课程的关系

VLSI 设计

数字系统设计

微机原理及接口技术

EDA

设计

数字逻辑设计


3710983

课程的先进性

先进性主要体现在“元器件”和“方法”

PSoC

单片机

SOPC

  • 20世纪90年代提出SoC的概念

20世纪90年代

模拟可编程器件

  • 21世纪初产生PSoC

按10倍/6年集成度发展

20世纪80年代

PLD迅速发展

75年超大规模集成电路

69年大规模集成电路

1958年集成电路

PAL GAL

EPLD CPLD

ispPLD FPGA

1947年晶体管


3710983

A/D、 D/A转换器

PSoC结构

计数器、定时器、脉宽调制器、伪随机序列发生器、缓冲器、反相器、全双工串行通信接口……

乘法累加器、低电压检测电路、升压泵、内部参考电压、模拟多路开关、大电流输出驱动……

可编程增益放大器、仪用放大器、滤波器、电压比较器、双音频拨号器等

8位微处理器、系统时钟源、程序和数据存储器


Chapter 1 introduction

Digital Logic Design and Application (数字逻辑设计及应用)

Chapter 1 Introduction (引言)

  • 1.1 About Digital Design(关于 “ 数字设计 ”)

  • Another name “Logic Design”.

  • The goal of design is to Build System.

  • Digital Design is engineering, and engineering means “Problem Solving”.

  • Only 5%-10% is the Creative part of Design. Much of the rest is just “Turning the Crank(曲柄)”.

  • Important Themes(主题) in Digital Design(P2)


Why study digital design

Why Study Digital Design?

Look “under the hood(覆盖)”of computers

Solid understanding --> better programmer when aware of hardware resource issues

Satellites

DVD

Video

Musical

players

recorders

instruments

Portable

Cell phones

music players

Cameras

TVs

???

1995

1997

1999

2001

2003

2005

2007

1.1

  • Years shown above indicate when digital version began to dominate

    • (Not the first year that a digital version appeared)

34


Why study digital design1

Why Study Digital Design?

Electronic devices becoming digital

Enabled by smaller and more capable chips

Enables:

Better devices: cameras, cars, medical devices, TVs...

New devices: smart phones, robots, ..

Known as “embedded systems”

Thousands of new devices every year

Designers needed: Potential career direction

1.1

35


What does digital mean

What Does “Digital” Mean?

Analog signal

Infinite(无限) possible values

Ex: voltage on a wire created by microphone

1

2

3

4

2

1.2

  • Digital signal

    • Finite possible values

      • Ex: button pressed on a keypad

digital

signal

analog

signal

36


What does digital mean1

What Does “Digital” Mean?

Analog signal

Infinite possible values

Ex: voltage on a wire created by microphone

1.2

  • Digital signal

    • Finite possible values

      • Ex: button pressed on a keypad

digital

signal

analog

signal

Possible values:

0, 1, 2, 3, or 4.

That’s it.

Possible values:

1.00, 1.01, 2.0000009,

... infinite possibilities

value

value

4

3

2

1

0

time

time


1 2 analog versus digital

Digital Logic Design and Application (数字逻辑设计及应用)

1.2 Analog versus Digital(模拟与数字)

模拟量:

其变化在时间或数值上是连续的

数字量:

其变化在时间和数量上都是离散的

数值大小是某一个最小数量单位的整数倍


1 2 analog versus digital1

Digital Logic Design and Application (数字逻辑设计及应用)

1.2 Analog versus Digital(模拟与数字)

  • Real signal : voice,music,moving picture…

  • Analog signal: voltage changed with time

  • Digital signal : sampling values from analog


Digital signals with only two values binary

Digital Signals with Only Two Values: Binary

Binarydigital signal -- only two possible values

Typically represented as 0 and1

Onebinary digit is a bit

We’ll only consider binary digital signals

value

1

0

time

40


Digital signals with only two values binary1

Digital Signals with Only Two Values: Binary

Binary is popular because

Transistors

the basic digital electric component, operate using two voltages (more in Chpt. 3)

Storing/transmitting one of two values is easier than three or more (e.g., loud beep or quiet beep, reflection or no reflection)

41


Example of digitization benefit

Example of Digitization Benefit

Analog signal (e.g., audio, video) may lose quality

Voltage levels not saved/ copied/ transmitted perfectly

a2d

d2a

3

Volts

3

Volts

3

Volts

2

1

2

digitized signal

1

2

received signal

same

1

01

original signal

0

1

0

1

0

0

time

10

10

time

0

time

Can fix—distinguish(辨别) 0s/1s, restore

How fix(确定)

-- higher, lower, ?

11

11

lengthy transmission

(e.g, cell phone)

time

lengthy transmission

(e.g, cell phone)

Not a perfect re-creation

due to a2d and d2a

Let bit encoding be:

1 V: “01”

2 V: “10”

3 V: “11”

01

10

11

10

11

Higher sampling

rate and more bits per

encoding improves re-creation

42


Example of digitization benefit1

Example of Digitization Benefit

Digitized version enables near-perfect save/cpy/tran.

“Sample” voltage at particular rate, save sample using bit encoding

Voltage levels still not kept perfectly

But we can distinguish 0s from 1s

a2d

d2a

3

Volts

3

Volts

3

Volts

2

1

2

digitized signal

1

2

received signal

same

1

01

original signal

0

1

0

1

0

0

time

10

10

time

0

time

Can fix—distinguish 0s/1s, restore

How fix -- higher, lower, ?

11

11

lengthy transmission

(e.g, cell phone)

time

a

lengthy transmission

(e.g, cell phone)

Not a perfect re-creation

due to a2d and d2a

01

10

11

10

11

Higher sampling

rate and more bits per

encoding improves re-creation

43


1 2 analog versus digital2

原始信号

衰减

放大

Digital Logic Design and Application (数字逻辑设计及应用)

1.2 Analog versus Digital(模拟与数字)

  • 模拟信号在传输过程中失真

  • 数字信号仍然可以保持 0、1


1 2 analog versus digital3

Digital Logic Design and Application (数字逻辑设计及应用)

1.2 Analog versus Digital(模拟与数字)

The problem for Analog signal

  • Easy to be disturb (干扰)

  • Shift with temperature

  • Hard to be recorded

  • Can not express abstract information


1 2 analog versus digital4

Digital Logic Design and Application (数字逻辑设计及应用)

1.2 Analog versus Digital(模拟与数字)

The advantage of digital signal

  • On each data line, the signal is very simple

  • Not influenced by circumstance and device

  • Can be recorded and transmitted easily

  • Any information can be code


1 2 analog versus digital5

Digital Logic Design and Application (数字逻辑设计及应用)

1.2 Analog versus Digital(模拟与数字)

Digital system

Any inputs and outputs can only be 1 or 0 !

Use logic to determine each output :

1 or 0 ?


How do we encode data as binary for our digital system

How Do We Encode Data as Binary for Our Digital System?

Some inputs inherently binary

Button: not pressed (0), pressed (1)

Some inputs inherently digital

Just need encoding in binary

e.g., multi-button input: encode red=001, blue=010, ...

analog

r

ed

blue

g

r

een

black

phenomena

button

r

ed

blue

g

r

een

black

r

ed

blue

g

r

een

black

0

0

0

sensors and

0

0

0

1

0

0

1

other inputs

electric

digital

1

signal

data

A2D

digital

data

Digital System

digital

digital

data

data

D2A

electric

signal

actuators and

other outputs

48


How do we encode data as binary for our digital system1

How Do We Encode Data as Binary for Our Digital System?

Some inputs analog

Need analog-to-digital conversion

sample and encode with bits

analog

33 degrees

air

phenomena

temperature

sensors and

sensor

other inputs

electric

digital

signal

data

A2D

0

0

1

0

0

0

0

1

digital

data

Digital System

digital

digital

data

data

D2A

electric

signal

actuators and

other outputs

49


1 2 analog versus digital6

Digital Logic Design and Application (数字逻辑设计及应用)

1.2 Analog versus Digital(模拟与数字)

  • Digital Circuits over Analog Ones

    (数字系统及其优越性)

    • Reproducibility of Results

      [结果再现性(稳定可靠、精度更高)]

    • Ease of design, Flexibility, and Functionality

      (易于设计,灵活性和功能性)

    • Programmability

      [可编程性(HDL 硬件描述语言)]

    • Speed, Economy, and Steadily Advancing Technology

      (快速、经济、稳步发展的技术)


Digitization benefit can store on digital media

Digitization Benefit: Can Store on Digital Media

Store on CD, USB drive, etc. No deterioration (衰减).

51


Digitized audio compression benefit

Digitized Audio: Compression Benefit

Digitized audio can be compressed

e.g., MP3s

A CD can hold about 20 songs uncompressed, but about 200 compressed

Compression also done on digitized pictures (jpeg), movies (mpeg), and more

Digitization has many other benefits too

52


Digitized audio compression benefit1

Digitized Audio: Compression Benefit

  • Example compression scheme:

  • 00 means 0000000000

  • 01 means 1111111111

    • 1X means X

0000000000 0000000000 0000001111 1111111111

00

00

10000001111

01

53


Future maybe everything will be digitized

Future: Maybe Everything will be Digitized…

54


1 3 digital devices

Digital Logic Design and Application (数字逻辑设计及应用)

1.3 Digital Devices (数字器件)

Gates(门电路):

—— The most basic digital devices (AND Gate, OR Gate, and NOT Gate or Inverter)

[最基本的数字器件(与、或、非门或反相器]

Flip-flops(触发器):

—— A device that stores either 0 or 1

(一种能存储 0 或 1 的器件)


1 3 digital devices1

Digital Logic Design and Application (数字逻辑设计及应用)

1.3 Digital Devices (数字器件)

  • Figure 1-1 Digital Devices

  • (a) AND Gate (b) OR Gate (c) NOT Gate or Inverter


3710983

Basic device in digital system

Buffer

Truth table

Equation

Diagram


3710983

Basic device in digital system

NOT gate (inverter , INV)

Truth table

Equation

Diagram


3710983

Basic device in digital system

AND gate

equation

diagram

Truth table


3710983

Basic device in digital system

OR gate

equation

diagram

Truth table


3710983

Basic device in digital system

NAND

NOR


3710983

Basic device in digital system

XOR


Question

Question

  • How many kinds of output combinations of 2 input veriables are,except AND OR NAND NOR XOR logic?

  • (除了与、或、与非、或非、异或逻辑运算以外,两个输入变量的逻辑运算还有多少种输出组合?)


Number of possible boolean functions

Number of Possible Boolean Functions

How many possible functions of 2 variables?

22 rows in truth table, 2 choices for each

2(22) = 24 = 16 possible functions

N variables

2N rows

2(2N) possible functions

a

b

F

0 or 1 2 choices

0

0

0 or 1 2 choices

0

1

0 or 1 2 choices

1

0

0 or 1 2 choices

1

1

24 = 16

possible functions


3710983

The target of digital design

Gates design

Design basic device by transistors

Functional design

Design functional circuits by basic device

combinational logic circuits

sequential logic circuits


1 3 digital devices2

Digital Logic Design and Application (数字逻辑设计及应用)

1.3 Digital Devices (数字器件)

  • Combinational Circuits(组合电路)

  • Device(器件) Define(定义)

  • Sequential Circuits(时序电路)

  • Device(器件) Define(定义)


1 4 electronic aspects of digital design

Digital Logic Design and Application (数字逻辑设计及应用)

1.4 Electronic Aspects of Digital Design (数字设计的电子技术)

  • How to realize Logic 0 and 1 in a Real circuit?

    (逻辑上的 0 和 1 在物理上如何实现?)

  • What is the range of analog value with each logic value(0 or 1) [什么电平范围对应逻辑 0(或 1)?]

  • How to produce and figure out the signal in a proper range?

    (如何正确产生和识别处于适当范围的信号?)

  • The association between Digital and Analog

    (数字与模拟之间的关系)


1 5 software aspects of digital design

Digital Logic Design and Application (数字逻辑设计及应用)

1.5 Software Aspects of Digital Design (数字设计的软件技术)

  • Software tools help to improve the designer’s productivity, the correctness and quality designs.

    ( 软件工具有助于提高设计的效率、正确性和质量。)

  • Several Software Tools

    (几种软件工具 P9)

    Pspise,multisim,电路仿真----模拟电路

    Ise,MaxPlusII, QuatusII, Moldelsim仿真----数字电路

    protel,powerPCB,制版软件----布版布线


1 6 integrated circuits ic

Digital Logic Design and Application (数字逻辑设计及应用)

1.6 Integrated Circuits(集成电路,IC)

  • Wafer(单晶硅片)-》Die (模片)


1 6 integrated circuits ic1

Digital Logic Design and Application (数字逻辑设计及应用)

1.6 Integrated Circuits(集成电路,IC)

  • Wafer(单晶硅片)-》Die (模片)

  • Dual In-line-pin Package (DIP, 双列直插式封装)(P13)


1 6 integrated circuits ic2

Digital Logic Design and Application (数字逻辑设计及应用)

1.6 Integrated Circuits(集成电路,IC)

  • Wafer(单晶硅片)-》Die (模片)

  • Dual In-line-pin Package (DIP, 双列直插式封装)(P13)

  • Small-Scale Integration (SSI,小规模集成): 1-20 Gates

  • Medium-Scale Integration (MSI,中规模集成):

    20-200 Gates

  • Large-Scale Integration (LSI,大规模集成):

    200-1,000,000 Gates

  • Very Large-Scale Integration (VLSI,超大规模集成):

    Over 1,000,000 Transistors


3710983

Digital Logic Design and Application (数字逻辑设计及应用)

  • 几种7400系列SSI IC的引脚图


1 7 programmable logic devices

Digital Logic Design and Application (数字逻辑设计及应用)

1.7 Programmable Logic Devices (可编程逻辑器件)

  • Programmable Logic Array

    (PLA, 可编程逻辑阵列)

    • Programmable Array Logic (PAL, 可编程阵列逻辑)

    • Programmable Logic Device

      (PLD, 可编程逻辑器件)

    • Complex PLD (CPLD, 复杂可编程逻辑器件)

    • Field-Programmable Gate Array

      (FPGA, 现场可编程门阵列)


1 7 programmable logic devices1

Digital Logic Design and Application (数字逻辑设计及应用)

1.7 Programmable Logic Devices (可编程逻辑器件)

  • 大型可编程逻辑元件的扩展方法


1 8 application specific ics asic

Digital Logic Design and Application (数字逻辑设计及应用)

1.8 Application-Specific ICs [专用集成电路(ASIC)]

  • Semi-Custom IC (半定制IC)

  • Non-Recurring Engineering (NRE) Cost

    (非再现工程成本): $10,000 - $500,000

  • Custom IC (全定制IC)NRE Cost:

    Over $500,000


1 9 printed circuit boards pcb

Digital Logic Design and Application (数字逻辑设计及应用)

1.9 Printed-Circuit Boards (PCB, 印制电路板)

  • Printed-Wiring Boards

    (PWB,印制线路板)

  • Surface-Mount Technology

    (SMT, 表面安装技术)

  • Multi-Chip Module

    (MCM, 多芯片模块)

    SoC,NoC(System on Chip, Network on Chip)(片上系统,片上网络)


Pcb printed circuit boards

Digital Logic Design and Application (数字逻辑设计及应用)

印制电路板(PCB, Printed-Circuit Boards)


1 10 digital design levels

Digital Logic Design and Application (数字逻辑设计及应用)

1.10 Digital Design Levels (数字设计层次)

  • Device Physics Level (器件物理层)

  • IC Manufacturing Process Level

    (IC 制造过程级)

  • Transistor Level (晶体管级)

  • Gates Structure Level (门电路结构级)

  • Logic Design Level (逻辑设计级)

  • Overall System Design

    (整体系统设计)


Implementing digital systems programming microprocessors vs designing digital circuits

Implementing Digital Systems: Programming Microprocessors Vs. Designing Digital Circuits

Microprocessors a common choice to implement a digital system

Easy to program

Cheap (as low as $1)

Readily available

1.3

Desired motion-at-night detector

Programmed

microprocessor

Custom designed

digital circuit


Implementing digital systems programming microprocessors vs designing digital circuits1

Implementing Digital Systems: Programming Microprocessors Vs. Designing Digital Circuits

1.3

Programmed

microprocessor

void main()

{

while (1) {

P0 = I0 && !I1;

// F = a and !b,

}

}

I

0

P0

1

a

I

1

P1

0

I

2

P2

1

I

3

P3

b

0

I

4

P4

I

5

P5

1

F

I

6

P6

0

I

7

P7

6:00

7:05

7:06

9:00

9:01

time

80


Digital design when microprocessors aren t good enough

Digital Design: When Microprocessors Aren’t Good Enough

With microprocessors so easy, cheap, and available, why design a digital circuit?

Microprocessor may be too slow

Or too big, power hungry, or costly

  • Wing controller computation task:

  • 50 ms on microprocessor

  • 5 ms as custom digital circuit

  • If must execute 100 times per second:

  • 100 * 50 ms = 5000 ms = 5 seconds

  • 100 * 5 ms = 500 ms = 0.5 seconds

  • Microprocessor too slow, circuit OK.

81


Digital design when microprocessors aren t good enough1

Digital Design: When Microprocessors Aren’t Good Enough

Commonly, designers partition(分割) a system among a microprocessor and custom digital circuits

Image Sensor

.1+.5+1

=1.6 sec

Image Sensor

Image Sensor

Read

circuit

Compress

circuit

Read

circuit

Compress

circuit

Micro-

processor

(Read,

Compress,

and Store)

Good

compromise

Microprocessor

(Store)

Store

circuit

Memory

Memory

Memory

Q: How long for each

implementation option?

5+8+1

=14 sec

(

a

)

.1+.5+.8

=1.4 sec

Sample digital camera task execution times (in seconds) on a microprocessor versus a digital circuit:

(

b

)

a

(

c

)

82


Chapter summary

Chapter Summary

Digital systems surround us

Inside computers

Inside many other electronic devices (embedded systems)

Digital systems use 0s and 1s

Encoding analog signals to digital can provide many benefits

e.g., audio—higher-quality storage/transmission, compression, etc.

Encoding integers as 0s and 1s: Binary numbers

83


Chapter summary1

Digital Logic Design and Application (数字逻辑设计及应用)

Chapter Summary

  • Analog versus Digital (模拟与数字)

  • Digital Devices (数字器件):

    Gates(门电路)、 Flip-flops(触发器)

  • Electronic and Software Aspects of Digital Design

    (数字设计的电子技术和软件技术)


Chapter summary2

Digital Logic Design and Application (数字逻辑设计及应用)

Chapter Summary

  • Integrated Circuit(IC,集成电路)

  • Programmable Logic Devices(PLA、PLD、CPLD、FPGA, 可编程逻辑器件)

  • Application-Specific ICs(ASIC, 专用集成电路)

  • Printed-Circuit Boards (PCB, 印制电路板)


1 p23

第 1 章作业(P23)

  • 1.3

  • 1.4

  • 1.6


A class problem

Digital Logic Design and Application (数字逻辑设计及应用)

A Class Problem

  • Please write out the other kinds of output combinations of 2 input veriables using truth table,except AND OR NAND NOR XOR logic?


  • Login