数字逻辑chapter4_b
更新时间:2023-05-28 16:46:01 阅读量: 实用文档 文档下载
Canonical Sum Representation Minterm number: An n-variable minterm can be represented by an n-bit integer--the minterm number. We use the name minterm i to denote the minterm corresponding to row i of the truth table. For n-variables i is in the set {0,1, …, 2n-1}
The canonical sum of a logic function is a sum of the minterms corresponding to the truth table rows for which the function produces a 1 output. A short-hand representation of the minterm list uses the S notation and minterm numbers to indicate the sum of minterms of the function. F = S X,Y,Z (0, 3, 4, 6, 7) This representation is usually realized using 2-level AND-OR logic circuits with inverters at AND gates inputs as needed.
Canonical Sum Example The function represented by the truth table:Row X Y Z 0 0 0 0 1 0 0 1 2 0 1 0 3 0 1 1 4 1 0 0 5 1 0 1 6 1 1 0 7 1 1 1 F 1 0 0 1 1 0 1 1
has the canonical sum representation:Short hand F = S X,Y,Z (0, 3, 4, 6, 7) = X Y Z + X Y Z + X Y Z + X Y Z + X Y Z Algebraic canonical sum of minterms
4.2 Combinational-Circuit Analysis Combinational logic circuits:Types of Logic Circuits
– Outputs depend only on its current inputs. – A combinational circuit may contain an arbitrary number of logic gates and inverters but no feedback loops. A feedback loop is a connection from the output of one gate to propagate back into the input of that same gate – The function of a combinational circuit represented by a logic diagram is formally described using logic expressions and truth tables.
Sequential logic circuits:– Outputs depend not only on the current inputs but also on the past sequences of inputs. – Sequential logic circuits contain combinational logic in addition to memory elements formed with feedback loops. – The behavior of sequential circuits is formally described with state transition tables and diagrams.
Sequential Circuits The general structure of a sequential Circuit:Combinational logic + Memory ElementsCombinational outputs
Memory outputs
Combinational logic
Memory elements
External inputs
Memory element: a device that can remember value indefinitely, or change value on command from its inputs. Examples: flip-flops
Combinational Circuit Analysis Start with a logic diagram of the circuit. Proceed to a formal description of the function of the circuit using truth tables or logic expressions.
Analysing Logic Circuits When a logic circuit is provided, we can analyse the circuit to obtain the logic expression. Example: What is the Boolean expression of F4?A' B' C A'B' A'B'+C (A'B'+C)' F4
F4 = (A'B'+C)'
Analysing Logic Circuit Example: What is Boolean expression of F5?
x y z F5
F5 =
XY+YZ
Combinational Circuit Analysis ExampleGiven this logic circuit we can : Create truth table by applying all input combinations: From truth table find Canonical Sum Representations Find corresponding logic express
ion from circuit Manipulate logic expression to other forms using theorems.X 00001111 Y00110011 00001111
Truth TableRow 0 1 2 3 4 5 6 7 X 0 0 0 0 1 1 1 1 Y 0 0 1 1 0 0 1 1 Z 0 1 0 1 0 1 0 1 F 0 1 1 0 0 1 0 1
X+Y 11001111
11001100
Y Z01010101
(X+Y ) · Z01000101
From truth table: Canonical Sum F = S X,Y,Z (1, 2, 5,7)
Z 01010101 X
01100101 11110000
F
Y 00110011
Z 10101010corresponding logic expression:
X · Y · Z F = ((X + Y ) ·Z) + (X · Y · Z )
00100000
Combinational Circuit Analysis Example(continued) The previous circuit logic expression F can be transformed into sum of products by multiplying out and written as :
F = X · Z + Y · Z + X ·Y· Z Realized using a 2-level AND-OR circuit:
Combinational Circuit Analysis Example(continued) Similarly, we can “add out” the original expression to obtain a product of sums :
Realized using a 2-level OR-AND circuit:
4.3 Combinational Circuit Synthesis May start with an informal (possibly verbal) description of the function performed. A formal description of the circuit function in terms of a truth table or logic expression. The logic expression is manipulated using Boolean (or switching) algebra and optimized to minimize the number of gates needed, or to use specific type of gates. A logic diagram is generated based on the resulting logic expression.
4.3.1 Circuit Description and DesignsCombinational Circuit Synthesis Example(1) An example of a combinational circuit description: “4-bit prime-number detector” “Given a 4-bit input combination N=N3N2N1N0, this function produces a 1 output for N = 1, 2, 3, 5, 7, 11, 13, and 0 otherwise.” The logic function can be designed directly from the canonical sum expression : F = S N3N2N1N0 (1,2,3,5,7,11,13) = N3 N2 N1 N0+ N3 N2 N1N0 + N3 N2 N1N0 +N3 N2N1 N +N3 N2N1N0+ N3N2 N1N0+ N3N2N1 N0
Combinational Circuit Synthesis Example(1)(continued)
A Verbal Synthesis Example(2)An Alarm Circuit A verbal logic description:– The ALARM output is 1 if the panic input is 1, or if the ENABLE input is 1, the EXITING input is 0, and the house is not secure. – The house is secure if the WINDOW, DOOR, GARAGE inputs are all 1
This can be put in logic expressions as follows:ALARM = PANIC + ENABLE · EXITING · SECURE SECURE = WINDOW· DOOR· GARAGE ALARM = PANIC + ENABLE · EXITING · (WINDOW · DOOR · GARAGE)
A Verbal Synthesis Example(2)(continued)In sum of products form as (by using DeMorgan T13 and multiplying out) :ALARM = PANIC + ENABLE· EXITING · WINDOW + ENABLE · EXITING · DOOR + ENABLE· EXITING · GARAGE
4.3.2 Circuit Manipulations NAND and NOR gates are faster than ANDs and Ors in most technologies. We need ways to translate a “natural” logic expression into other forms - AND-OR =>NAND-NAND - OR-AND => NOR-NOR
NAND-NAND Logic Circuits for Sum of Products A sum
of products logic expression can be realized by NAND gates by replacing all AND gates and the OR gate in the usual realization with NAND gates as follows: F = A + B + C + D ...where A, B, C, …. are product terms of the input variables e.g. A= x· z y· F = (A ) +(B ) +(C ) +(D ) + …. from T4 = (A ·B ·C ·D … ) (from DeMorgan s theorem T13)
This is a 2-level NAND-NAND representation.
Alternate Sum of Products Realizations(Applying DeMorgan s theorem T13 Graphically)
AND-OR
NAND-NANDNAND SymbolsNormal Symbol
Alternate NAND Symbol
X(X · Y) YAccording to DeMorgan s theorem T13:
X Y(X · Y) = X + Y
X + Y
NAND-NAND Sum of Products Example The sum of products expression F = X · Z + Y · Z + X ·Y· Z = ((X · Z) ) + ((Y · Z) ) + ((X ·Y· Z ) ) double negate T4 = [(X · Z) · (Y · Z) · (X ·Y·Z ) ] DeMorgan s theorem T13 Can be realized using the 2-level NAND-NAND circuit:X
(X · Z)
Y
Y
F = [(X · Z) · (Y · Z) · (X ·Y· Z ) ]
(Y · Z)
X (X · Y · Z )
Z
Z
4.3.3 Combinational Circuit Minimization Canonical sum and product logic expressions do not provide a circuit realization with the minimum number of gates. Minimization methods reduce the cost of two level AND-OR, NAND-NAND, OR-AND, NOR-NOR circuits in three ways: 1 By minimizing the number of first level gates 2 By minimizing the number of inputs on each first-level gate. 3 Minimizing the inputs on the second level gate
Most minimization methods are based on the combining theorems T10, T10 :X·Y +X·Y = X (X+Y) ·(X+ Y ) =X
Example
“4-bit prime-number detector”
has three fewer gates and one of the remaining gates has two fewer inputs How to get the simplest diagram?
正在阅读:
数字逻辑chapter4_b05-28
李可老中医经验语录02-07
2012-2013学年第一学期九年级物理期中测试卷及答案11-02
b2b是什么意思02-19
民法09-21
广东省高速公路桥梁荷载试验工作实施意见(试行)(粤交监督[20104-07
2022年山西理科350分能上什么大学03-30
加强学习提高素质全面提升三服务工作水平01-05
全国优秀科技特派员名单04-18
《汽轮机原理》习题 - 图文04-10
- 教学能力大赛决赛获奖-教学实施报告-(完整图文版)
- 互联网+数据中心行业分析报告
- 2017上海杨浦区高三一模数学试题及答案
- 招商部差旅接待管理制度(4-25)
- 学生游玩安全注意事项
- 学生信息管理系统(文档模板供参考)
- 叉车门架有限元分析及系统设计
- 2014帮助残疾人志愿者服务情况记录
- 叶绿体中色素的提取和分离实验
- 中国食物成分表2020年最新权威完整改进版
- 推动国土资源领域生态文明建设
- 给水管道冲洗和消毒记录
- 计算机软件专业自我评价
- 高中数学必修1-5知识点归纳
- 2018-2022年中国第五代移动通信技术(5G)产业深度分析及发展前景研究报告发展趋势(目录)
- 生产车间巡查制度
- 2018版中国光热发电行业深度研究报告目录
- (通用)2019年中考数学总复习 第一章 第四节 数的开方与二次根式课件
- 2017_2018学年高中语文第二单元第4课说数课件粤教版
- 上市新药Lumateperone(卢美哌隆)合成检索总结报告
- 逻辑
- chapter
- 数字
- 致员工家属慰问信
- 罗宾斯-第七章_动机:从概念到应用
- 晶闸管结构与工作原理在大功率变频技术中的应用
- 第四章 操作系统安全配置方案
- 入党积极分子考试资料
- 鲁滨孙漂流记的内容提要
- 中华经典诵读比赛规定篇目
- 高三议论文英语作文
- 09电力电子期末总结
- 2011篮球运球教案
- 网络影视投资与制作合同协议书范本
- 廉分析报告2010年度个人述职述
- 浅谈粮食储存、加工企业存在的火灾
- 甲功七项临床意义
- 2014年春北师大版一年级下册语文期末试卷
- (目录)2018年版空气源热泵热水器行业市场需求与投资规划分析报告
- 华南理工大学教学在线学生用户简明图文操作手册
- 岗位工作手册--接触网工安全作业指导书
- 2014年目标责任完成情况汇报1
- 高速公路收费站、服务区总体性施工组织设计(实施性控制)