Microsoft PowerPoint - STU_EC_Ch04.ppt

Similar documents
PowerPoint Presentation

Microsoft PowerPoint - STU_EC_Ch08.ppt

考 查 知 识 点 肝 气 疏 泄 调 畅 气 机 的 作 用, 主 要 表 现 在 以 下 几 个 方 面 :(1) 促 进 血 液 与 津 液 的 运 行 输 布 ;(2) 促 进 脾 胃 的 运 化 功 能 和 胆 汁 分 泌 排 泄 ;(3) 调 畅 情 志 ;(4) 促 进 男 子 排 精

就 构 成 了 盗 窃 罪 与 破 坏 交 通 设 施 罪 的 想 象 竞 合, 按 照 其 中 处 罚 较 重 的 犯 罪 处 罚 5. 答 案 :B 本 题 主 要 考 察 如 何 区 分 收 买 被 拐 卖 的 妇 女 儿 童 罪 与 拐 卖 妇 女 儿 童 罪 的 共 犯 问 题 ( 对 向

山东2014第四季新教材《会计基础》冲刺卷第三套

2 A

北京2014年会计从业资格考试《会计基础》备考机试卷一

2013年3月国家教师资格统一考试

过 程 排 除 A 正 确 答 案 是 B 14.A 解 析 本 题 考 查 思 修 第 八 章 中 国 人 权, 新 增 考 点 其 中 直 接 考 查 宪 法 保 障 是 人 权 保 障 的 前 提 和 基 础 A 人 权 保 障 的 最 后 防 线 是 司 法 保 障,B 人 权 保 障 的

( CIP. :, / ISBN D CIP ( ( 010) ( ) ( 010) / ( ) ( 010) 884

精 品 库 我 们 的 都 是 精 品 _www.jingpinwenku.com 7. 根 据 中 华 人 民 共 和 国 会 计 法 的 规 定, 对 登 记 会 计 账 簿 不 符 合 规 定 的 单 位 县 级 以 上 人 民 政 府 财 政 部 门 责 令 限 期 改 正, 并 可 以 处

Microsoft Word - cjfg_jy0201.doc

bingdian001.com

(C) 比 得 上 (D) 如 果 17. ( ) 聖 賢 經 傳 和 傳 奇 小 說 兩 個 傳 字, 其 音 義 關 係 為 何? (A) 音 同 義 異 (B) 音 義 皆 同 (C) 義 同 音 異 (D) 音 義 皆 異 18. ( ) 下 列 選 項 中 的 形 似 字, 何 者 讀 音

优合会计考点直击卷子之财经法规答案——第八套

山东2014第四季新教材《会计基础》冲刺卷第二套

<453A5CB8F7B7D6C9E7D4F0B1E05CBFBCCAD4B7D6C9E75CD5D4C3F7CFBC5CCAE9C4BFCEC4BCFE5CB7A8C2C9B3F6B0E6C9E7CBBEB7A8BFBCCAD4B7FECEF1D7A8BFAF2E646F6378>

bingdian001.com

<4D F736F F F696E74202D20B5DAD2BBD5C228B4F2D3A1B0E6292E BBCE6C8DDC4A3CABD5D>

A.68 B.70 C.80 D.100 答 案 A 解 析 丁 产 品 的 可 变 现 净 值 =110-2=108( 万 元 ), 成 本 =100+40=140( 万 元 ), 可 变 现 净 值 低 于 成 本, 产 品 发 生 的 减 值, 所 以 丙 材 料 的 可 变 现 净 值 =1

CIP 1500 / ISBN X Ⅰ. Ⅱ. Ⅲ. Ⅳ. D CIP edu. cn

考试大2011年高考试题答案

Microsoft Word - 第5-7章

Preface This guide is intended to standardize the use of the WeChat brand and ensure the brand's integrity and consistency. The guide applies to all d

2013年国家司法考试模拟试卷与答案

Ps22Pdf

Microsoft Word 司考真?行政法勘?大表.doc

实 信 用 的 原 则 " 其 中, 诚 实 信 用 原 则 是 指 民 事 主 体 进 行 民 事 活 动 时, 均 应 诚 实, 不 作 假, 不 欺 诈, 不 损 害 他 人 利 益 和 社 会 利 益, 正 当 地 行 使 权 利 和 履 行 义 务 甲 将 平 房 售 与 丙 而 未 告

同 时 承 销 的 国 际 债 券 是 ( ) A. 龙 债 券 B. 外 国 债 券 C. 欧 洲 债 券 D. 亚 洲 债 券 10. 在 没 有 优 先 股 的 条 件 下, 普 通 股 票 每 股 账 面 价 值 是 以 公 司 ( ) 除 以 发 行 在 外 的 普 通 股 票 的 股 数

<443A5CD7C0C3E65CC8BAD7CAC1CF5C F73662E646F63>

《侵权法》综合练习题

9301reply-c

WinXP

2006ÄêÈ«¹ú˶ʿÑо¿ÉúÈëѧ¿¼ÊÔÕþÖÎÀíÂÛÊÔÌâ¼°´ð°¸

一、审计的分类

九十六學年度第一學期第三次定期考國文科試題

正 确 答 案 BC 答 案 解 析 融 券 方 是 逆 回 购 方 买 入 返 售 方 资 金 融 出 方 例 2 多 选 题 所 债 券 回 购 市 场 的 参 与 主 体 主 要 有 ( ) A. 证 券 公 司 B. 保 险 公 司 C. 证 券 投 资 基 金 D. 上 市 商 业 银 行

<4D F736F F D B3F5BCB6BBE1BCC6A1B6BFBCB5E3BEABBBAAA1B72E646F63>

A. B. C. D. 2. A. B. C. D. 3. A. 4 N B. 18 N C. 40 N D N 1

Ps22Pdf


事业单位《公共基础知识》全真模拟卷(三)及答案

Microsoft Word - t0626.doc

zt

二O O七年湖南省会计从业资格考试试卷《会计基础》

<4D F736F F D20B8DFB9A4CAD4CCE2BCAFA3A A3A9A3A8CDF5DEA5D5FBC0EDB3C2CFFEB6ABC9F3D4C434D4C231C8D5B8FCD5FDA3A92E646F63>

东 奥 解 析 (1) 小 规 模 纳 税 人 销 售 货 物, 应 按 照 3% 的 征 收 率 计 算 应 纳 税 额, 不 得 抵 扣 进 项 税 额 ;(2) 计 税 依 据 含 增 值 税 的, 应 价 税 分 离 计 算 应 纳 税 额 知 识 点 小 规 模 纳 税 人 应 纳 税 额

点 考 题 精 讲 精 品 库 我 们 的 都 是 精 品 _www.jingpinwenku.com

國 立 台 南 二 中 104 學 年 度 第 二 學 期 第 一 次 期 中 考 高 三 國 文 科 解 答 壹 選 擇 題 1 B 2 B 3 C 4 A 5 A 6 C 7 B 8 C 9 B 10 D 11 A 12 D 13 A 14 B 15 B 16 D 17 A 18 AB 19 E

D A B C D 7 A B C D 8 A B C D 9 A B C D 10 A. B. C.100% D. 11+ A. B. C. D. 12 A. B. C. D. 13 2

二00八年湖南省会计从业资格考试试卷

BC04 Module_antenna__ doc

<4D F736F F D C4EA313120D4C2B9FABCD2D6B0D2B5D7CAB8F1D0C4C0EDD7C9D1AFCAA6B6FEBCB6A3A8C0EDC2DBD6AACAB6A3A9D5E6CCE2BCB0B4F0B0B8>

北京金英杰医学考试中心

Edge-Triggered Rising Edge-Triggered ( Falling Edge-Triggered ( Unit 11 Latches and Flip-Flops 3 Timing for D Flip-Flop (Falling-Edge Trigger) Unit 11

Ps22Pdf

<4D F736F F D205F FB942A5CEA668B443C5E9BB73A740B5D8A4E5B8C9A552B1D0A7F75FA6BFB1A4ACFC2E646F63>

2007 /,. :, ISBN D : : : : 2 : : http: / / www. wendu. com : , 832 : : : /

4. 每 组 学 生 将 写 有 习 语 和 含 义 的 两 组 卡 片 分 别 洗 牌, 将 顺 序 打 乱, 然 后 将 两 组 卡 片 反 面 朝 上 置 于 课 桌 上 5. 学 生 依 次 从 两 组 卡 片 中 各 抽 取 一 张, 展 示 给 小 组 成 员, 并 大 声 朗 读 卡

ENGG1410-F Tutorial 6

C o n t e n t s Acceptance Allow Love Apologize Archangel Metatron Archangel Michael Ask for

bingdian001.com

( CIP ) /. 2 ( ). :, 2003 ( ) ISBN R CIP ( 2003 ) ( 2 ) ( ) 850 mm 1168mm 1 /

<4D F736F F D20B0EAA4E52D3939AEC9A8C6B1A1B9D2C344A5BB2E646F63>

( ) A B C D ( ) A B C D A B C D A B C D A 8750 B C 6250 D 5000 A B C D A B C D



Microsoft Word - Final Exam Review Packet.docx

Microsoft Word - ChineseSATII .doc


2011年6月证券《发行与承销》考试真题

(黃).indd

B. 高 估 自 己 C. 低 估 自 己 D. 发 掘 特 长 解 析 : 自 知, 就 是 认 识 自 己 ; 自 己 明 了 ; 或 自 然 知 晓 自 己 有 什 么 特 点, 优 势 劣 势, 自 己 都 很 清 楚 BC 说 法 都 不 对,D 说 法 不 符 合 题 意, 所 以 选

TI 3 TI TABLE 4 RANDBIN Research of Modern Basic Education

2. 以 下 哪 部 是 我 国 古 代 的 地 理 学 巨 著? A. 梦 溪 笔 谈 B. 太 平 洋 广 记 C. 天 工 开 物 D. 水 经 注 D.[ 解 析 ] 本 题 考 查 文 学 知 识 太 平 广 记 是 宋 代 人 编 撰 的 一 部 书 籍, 取 材 于 汉 代 至 宋 初

CIP ISBN X Ⅰ. Ⅱ.1 2 Ⅲ Ⅳ.1D D921 CIP ISBN X D htp cbs.pku.edu.cn

SuperMap 系列产品介绍

Microsoft Word - Z1I07A0-17.doc

2017 CCAFL Chinese in Context


PowerPoint Presentation

. (A) (B) (C) A (D) (E). (A)(B)(C)(D)(E) A

17. (3) 保 母 對 自 己 的 專 業 倫 理 包 括 那 些 項 目?A. 經 常 進 修 吸 收 新 知 ;B. 積 極 參 與 保 母 專 業 組 織 ; C. 努 力 通 過 高 普 考 考 試 ;D. 配 合 督 導 制 度 提 升 自 我 素 質 1 ABC 2 ACD 3 AB

(1) 扉页.FIT)

: () (),, ; 30, 70, ( 10, 1, 10, ) A. B. C. D. [ ] 2. A. B. C. D. [ ] 3. A. B. C. D. [ ] 4. A.1775 B.1787 C.1674 D.1636 [ ]

精 品 库 我 们 的 都 是 精 品 _www.jingpinwenku.com 考 点 考 题 精 讲 依 据 最 新 颁 布 的 考 试 大 纲 的 要 求, 需 要 明 确 以 下 考 点 : 掌 握 新 股 公 开 发 行 和 非 公 开 发 行 的 基 本 条 件 一 般 规 定 配 股

南華大學數位論文

庭 下 如 積 水 空 明, 水 中 藻 荇 交 橫, 蓋 竹 柏 影 也 (D) 何 夜 無 月? 何 處 無 竹 柏? 但 少 閑 人 如 吾 兩 人 耳 27. ( ) 王 子 猷 曾 借 住 於 他 人 空 宅, 第 一 件 事 就 是 叫 人 在 庭 院 裡 種 竹 有 人 對 他 說 :

zt

中國的科學與中國的公民:大陸研究在台灣的困境\\

Microsoft Word htm

國立中山大學學位論文典藏.PDF

當 地 情 形 還 不 熟 悉 4 得 勝 的 歡 似 虎 : 形 容 因 勝 利 而 得 意 忘 形 5 不 吃 無 工 之 食 : 比 喻 人 不 能 無 緣 無 故 接 受 優 待 或 贈 與 4. 請 根 據 文 意, 在 中 填 入 正 確 的 成 語 代 號 ( 甲 ) 優 游 自 在

從詩歌的鑒賞談生命價值的建構

台北市立成功高中九十學年度第一學期高三國文科期末考試題

2013年注册税务师考试税法二模拟试卷汇总

構 築 4 列 牌 陣 從 剩 餘 的 牌 庫 頂 抽 4 張 牌, 面 朝 上 排 列 在 桌 子 中 央 這 4 張 牌 就 是 牌 陣 的 起 始 牌, 包 括 這 張 起 始 牌 在 內, 每 一 列 最 多 只 能 容 納 5 張 牌 將 剩 餘 的 牌 暫 時 置 於 一 旁, 在 下

國立中山大學學位論文典藏.PDF

(黃).indd

钢铁金相图谱

Transcription:

樹德科技大學資訊工程系 Chapter 4: Boolean Algebra and Logic Simplification Shi-Huang Chen Fall 200 Outline Boolean Operations and Expressions Laws and Rules of Boolean Algebra DeMorgan's Theorems Boolean Analysis of Logic Circuit Simplification using Boolean Algebra Standard forms of Boolean Expression Boolean Expression and Truth Table The Karnaugh Map 2

Boolean Addition The OR gate is a Boolean adder Determine the values of A, B, and C that make the sum term of the expression A + B + C = 0? Each literal must = 0; therefore A =, B = 0 and C =. 3 Boolean Multiplication The AND gate is a Boolean multiplier What are the values of the A, B and C if the product term of A. B. C =? Each literal must = ; therefore A =, B = 0 and C = 0. 4 2

Laws and rules of Boolean Algebra In 860 George Boole developed Boolean Algebra that is used in Digital electronics. The Boolean Algebra laws and rules are similar to the Algebra but only or 0 is allowed for the variables Three Laws and 2 rules in Boolean Algebra Boolean Addition is the logical OR function X=A + B Boolean Multiplication is the logical AND function X = AB 5 Law a: Commutative law of addition Commutative law of addition A+B = B+A the order of ORing does not matter. 6 3

Law b: Commutative law of Multiplication Commutative law of Multiplication AB = BA the order of ANDing does not matter. 7 Law 2a: Associative law of addition Associative law of addition A + (B + C) = (A + B) + C The grouping of ORed variables does not matter 8 4

Law 2b: Associative law of multiplication Associative law of multiplication A(BC) = (AB)C The grouping of ANDed variables does not matter 9 Law 3: Distributive Law A(B + C) = AB + AC 0 5

Basic rules of Boolean algebra. A + 0 = A 2. A + = 3. A. 0 = 0 4. A. = A 5. A + A = A 6. A + A = 7. A. A = A 8. A. A = 0 = 9. A = A 0. A + AB = A. A + AB = A + B 2. (A + B)(A + C) = A + BC Rule : A+0=A In math if you add 0 you have changed nothing in Boolean Algebra ORing with 0 changes nothing 2 6

Rule 2: A+= ORing with must give a since if any input is an OR gate will give a 3 Rule 3: A 0=0 In math if 0 is multiplied with anything you get 0. If you AND anything with 0 you get 0 4 7

Rule 4: A =A ANDing anything with will yield the anything 5 Rule 5: A+A = A ORing with itself will give the same result 6 8

Rule 6: A+A= Either A or A must be so A + A = 7 Rule 7: A A = A ANDing with itself will give the same result 8 9

Rule 8: A A =0 In digital Logic =0 and 0 =, so AA=0 since one of the inputs must be 0. 9 Rule 9: A = A If you not something twice you are back to the beginning 20 0

Rule 0: A + AB = A AAA B AB AB = AA 2 Rule : A + AB = A + B A + AB = A + B A A AB BA 22

Rule 2:(A + B)(A + C) = A + BC (A + B)(A + C) = AA + AC + AB + BC = A + AC + AB + BC = A( + C + B) + BC = A. + BC = A + BC A B A + B A + C = C (A + B)(A + C) A + BC A B BC C 23 DeMorgan s Theorems () DeMorgan s st Theorem The complement of a product of variables is equal to the sum of the complemented variables. AB = A + B Applying DeMorgan s first theorem to gates: A B NAND AB A B Negative-OR A + B Inputs Output A B AB A + B 0 0 0 0 0 0 24 2

DeMorgan s Theorems (2) DeMorgan s 2 nd Theorem The complement of a sum of variables is equal to the product of the complemented variables. A + B = A. B Applying DeMorgan s second theorem to gates: A B NOR A + B A B Negative-AND AB Inputs Output A B A + B AB 0 0 0 0 0 0 0 0 0 0 25 Simplification Example Apply DeMorgan s theorem to remove the overbar covering both terms from the expression X = C + D. To apply DeMorgan s theorem to the expression, you can break the overbar covering both terms and change the sign between the terms. This results in = X = C. D. Deleting the double bar gives X = C. D. 26 3

Boolean Analysis of Logic Circuits Combinational logic circuits can be analyzed by writing the expression for each gate and combining the expressions according to the rules for Boolean algebra. Apply Boolean algebra to derive the expression for X. Write the expression for each gate: A B C D (A + B ) C (A + B ) X = C (A + B )+ D Applying DeMorgan s theorem and the distribution law: X = C (A B) + D = A B C + D 27 A logic circuit showing the development of the Boolean expression for the output 28 4

Example One gate at a time starting with the inputs X= AB+(C+D) X= AB + C+ D 29 Example 2 X = (AB)(CD) X = ABCD 30 5

Example 3 (/2) 3 Example 3 (2/2) X = ABCD +A X = A + BCD 32 6

Example 4 (/2) 33 Example 4 (2/2) X = (AB+B)BC using distributive law X = ABBC +BBC X = ABC + BBC X = ABC + 0 C X = ABC + O X = ABC 34 7

Example 5 (/3) 35 Example 5 (2/3) 36 8

Example 5 (3/3) X = (A +AB) +(B(C+D)) X = (A + B) + (B(C + D)) X = (A + B) + (BC + BD) X = A + B + BC + BD X = A + B + C + BD X = A + B + C + BD X = A + B + C + D 37 Example (A + B)(CD) = A + B + CD = A + B + CD 38 9

Example 2 AB+AB+AC+BB+BC AB+AC+B+BC (AB+AB=AB, BB = B) AB+AC+B (B+BC = B) B+AC (AB+B = B) 39 Example 3 X = A + B C + CD + B = A + B C CD + B = A + B C (CD + B) = A B C (C +D +B) = A B C C + A B C D +A B B C = A B C D 0 40 20

Standard Forms of Boolean Expressions - Implementation of the Sum-of-Product (SOP) expression AB + BCD + AC. 4 Standard Forms of Boolean Expressions -2 Implementation of the Product-of-Sum (POS) expression (A + B)(B + C + D) (A + C). 42 2

Boolean Expressions and Truth Tables - SOP Expression: A BC + ABC + ABC 43 Boolean Expressions and Truth Tables -2 POS Expression: ( A + B + C)( A + B + C)( A + B + C) ( A + B + C)( A + B + C) 44 22

Boolean Expressions and Truth Tables -3 SOP : X = ABC + ABC + ABC + ABC POS: X = ( A + B + C)( A + B + C)( A + B + C)( A + B + C) 45 Examples of SOP and POS Convert X = A B + A B C to SOP standard form. The first term does not include the variable C. Therefore, multiply it by the (C + C), which = : X = A B (C + C) + A B C = A B C + A B C + A B C Convert X = (A + B)(A + B + C) to POS standard form. The first sum term does not include the variable C. Therefore, add C C and expand the result by rule 2. X = (A + B + C C)(A + B + C) = (A +B + C )(A + B + C)(A + B + C) 46 23

The Karnaugh Map (SOP) - The Karnaugh map (K-map) is a tool for simplifying combinational logic with 3 or 4 variables. For 3 variables, 8 cells are required (2 3 ). The map shown is for three variables labeled A, B, and C. Each cell represents one possible product term. Each cell differs from an adjacent cell by only one variable. ABC ABC ABC ABC ABC ABC ABC ABC 47 The Karnaugh Map (SOP) -2 Gray code Cells are usually labeled using 0 s and s to represent the variable and its complement. C AB 00 0 0 0 The numbers are entered in gray code, to force adjacent cells to be different by only one variable. Ones are read as the true variable and zeros are read as the complemented variable. 48 24

The Karnaugh Map (SOP) -3 A 3-variable Karnaugh map showing product terms. Gray code 49 The Karnaugh Map (SOP) -4 A 4-variable Karnaugh map. 50 25

The Karnaugh Map (SOP) -5 The interesting about the map is that to go from one cell of the map to an adjacent cell will only require on variable to change. When moving on the map only go right or left, up or down, never go on a diagonal. For example from an A to an A. Also the map folds around its self so the going from a cell on the top right to one on the bottom right only changes one variable. 5 The Karnaugh Map (SOP) -6 K-maps can simplify combinational logic by grouping cells and eliminating variables that change. Group the s on the map and read the minimum logic. B changes across this boundary AB C 00 0 0. Group the s into two overlapping groups as indicated. 2. Read each group by eliminating any variable that changes across a boundary. 0 C changes across this boundary 3. The vertical group is read AC. 4. The horizontal group is read AB. X = AC +AB 52 26

The Karnaugh Map (SOP) -7 Example of mapping a standard SOP expression 53 The Karnaugh Map (SOP) -8 A 4-variable map has an adjacent cell on each of its four boundaries as shown. AB AB AB AB CD CD CD CD Each cell is different only by one variable from an adjacent cell. Grouping follows the rules given in the text. The following slide shows an example of reading a four variable map using binary numbers for the variables 54 27

The Karnaugh Map (SOP) -9 A BCD + ABCD + ABCD + ABCD + ABCD + ABCD + ABCD 55 The Karnaugh Map (SOP) -0 Group the s on the map and read the minimum logic. B changes B changes C changes across outer boundary CD 00 0 0 AB 00 0 0 C changes X. Group the s into two separate groups as indicated. 2. Read each group by eliminating any variable that changes across a boundary. 3. The upper (yellow) group is read as AD. 4. The lower (green) group is read as AD. X = AD +AD 56 28

The Karnaugh Map (SOP) - Group the s in the Karnaugh Map 57 The Karnaugh Map (SOP) -2 Group the s in the Karnaugh Map 58 29

The Karnaugh Map (SOP) -3 Group the s in the Karnaugh Map 59 The Karnaugh Map (SOP) -4 Group the s in the Karnaugh Map 60 30

The Karnaugh Map (SOP) -5 Determine the product terms for the Karnaugh map and write the resulting minimum SOP expression B + AC + ACD 6 The Karnaugh Map (SOP) -6 AB + BC + ABC B + AC + AC 62 3

The Karnaugh Map (SOP) -7 A B + AC + ABD D + ABC + BC 63 The Karnaugh Map (SOP) -8 Use a Karnaugh map to minimize the following standard SOP expression A BC + ABC + ABC + ABC + ABC Ans : B + AC 64 32

The Karnaugh Map (SOP) -9 Use a Karnaugh map to minimize the following standard SOP expression BCD + ABCD + ABCD + ABCD + ABCD ABCD + ABCD + ABCD + ABCD Ans : D + BC 65 The Karnaugh Map (SOP) -20 Mapping directly from a truth table to a Karnaugh map 66 33

The Karnaugh Map (SOP) -2 Don t care conditions 67 5-variable Karnaugh map - 68 34

5-variable Karnaugh map -2 69 Simplify using Karnaugh map First we need to change the circuit to a SOP 70 35

Y= A + B + B C + ( A + B ) ( C + D) Y = A B + B C + A B ( C + D ) Y = A B + B C + A B C + A B D Y = A B + B C + A B C A B D Y = A B + B C + (A + B + C ) ( A + B + D) Y = A B + B C + A + A B + A D + B + B D + C D 7 Gray Code 00 A B 0 A B A B 0 A B Z = 00 0 0 C D C D C D C D X X X X X X X X X X X X X X X X The logic analyzer next 72 36