Kombinatoorsete süsteemide disain

Slides:



Advertisements
Similar presentations
Appendix B Digital Logic. Irvine, Kip R. Assembly Language for Intel-Based Computers, NOT AND OR XOR NAND NOR Truth Tables Boolean Operators.
Advertisements

Chapter 11_1 (chap 10 ed 8) Digital Logic. Irvine, Kip R. Assembly Language for Intel-Based Computers, NOT AND OR XOR NAND NOR Truth Tables Boolean.
Week 21 Basic Set Theory A set is a collection of elements. Use capital letters, A, B, C to denotes sets and small letters a 1, a 2, … to denote the elements.
2.2 General Positional-Number-System Conversion
Boolean Algebra and Logic Gate
Binary & Decimal numbers = 3* * *10 + 5*1 = 3* * * *10 0 Decimal system: Ten digits: 0,1,2,3,…,9 Example:
Boolean Algebra and Logic Gates
Lecture 3 Operations on Sets CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
Operations on Sets – Page 1CSCI 1900 – Discrete Structures CSCI 1900 Discrete Structures Operations on Sets Reading: Kolman, Section 1.2.
Chapter 2: Boolean Algebra and Logic Functions
Revision Introductory Lesson
COMPUTER ARCHITECTURE I: Digital Design Akshai Aggarwal.
Computer Organization
Chapter 10_1 Digital Logic. Irvine, Kip R. Assembly Language for Intel-Based Computers, NOT AND OR XOR NAND NOR Truth Tables Boolean Operators.
Decimal Binary Octal Hex
Digital Electronics and Computer Interfacing Tim Mewes 3. Digital Electronics.
Yuh-Jzer JoungDigital Systems1 Number Systems decimal number : 7397=7× × × ×10 0 a 4 a 3 a 2 a 1 a 0. a -1 a -2 = a 4 ×10 4 +a 3 ×10.
Computer Number Systems. d n-1 d n-2 d n d 2-m d 1-m d -m Conventional Radix Number r is the radixd i is a digit d i Є {0, 1, ….., r – 1 } -m ≤
Digital Systems: Boolean Algebra and Logic Gates
Logic Design Dr. Yosry A. Azzam.
Switching Theory and Logic Design
Number Systems Binary to Decimal Octal to Decimal Hexadecimal to Decimal Binary to Octal Binary to Hexadecimal Two’s Complement.
Chapter 4 Combinational Logic Design Principles. Overview Objectives -Define combinational logic circuit -Analysis of logic circuits (to describe what.
Sets Define sets in 2 ways  Enumeration  Set comprehension (predicate on membership), e.g., {n | n  N   k  k  N  n = 10  k  0  n  50} the set.
1 EG 32 Digital Electronics Thought for the day You learn from your mistakes..... So make as many as you can and you will eventually know everything.
CSE 311 Foundations of Computing I
Discrete Mathematical Structures 4 th Edition Kolman, Busby, Ross © 2000 by Prentice-Hall, Inc. ISBN
2.2 Set Operations. The Union DEFINITION 1 Let A and B be sets. The union of the sets A and B, denoted by A U B, is the set that contains those elements.
Sets 2/10/121. What is a Set? Informally, a collection of objects, determined by its members, treated as a single mathematical object Not a real definition:
Boolean Algebra Binary Arithmetic August 28, 2001 Ellen Spertus MCS 111.
Discrete Mathematics Set.
COMPUTER ARCHITECTURE & OPERATIONS I Instructor: Yaohang Li.
CSE 461. Binary Logic Binary logic consists of binary variables and logical operations. Variables are designated by letters such as A, B, C, x, y, z etc.
Thinking Mathematically Venn Diagrams and Set Operations.
Boolean Constants and Variables Boolean 0 and 1 do not represent actual numbers but instead represent the state, or logic level. Closed switchOpen switch.
Set. Outline Universal Set Venn Diagram Operations on Sets.
Hoda Roodaki Boolean Algebra Hoda Roodaki
Binary & Decimal numbers
Dr. Ameria Eldosoky Discrete mathematics
Lecture 4 Topics Boolean Algebra Huntington’s Postulates Truth Tables
Positional Number Systems Decimal, Binary, Octal and Hexadecimal Numbers Wakerly Section
Unions and Intersections of Sets
Chapter 11 (Part 1): Boolean Algebra
Chapter 2: Boolean Algebra and Logic Functions
DIGITAL LOGIC CIRCUITS
Sets Section 2.1.
DIGITAL LOGIC CIRCUITS
Kombinatoorsete süsteemide disain
… and now for something completely different…
Exercises Show that (P  Q)  (P)  (Q)
Mäluga süsteemide disain
I207 Digitaalloogika ja -süsteemid
Sissejuhatus erialasse – Arvutisüsteemide disain
Loogika-elementide pered
Digital Electronics & Logic Design
Boolean Algebra & Logic Circuits
I207 Digitaalloogika ja -süsteemid
Бүлэг 2-Аналог ба Хоёртын сигнал
Lecture 4 Topics Boolean Algebra Huntington’s Postulates Truth Tables
Kombinatoorsete süsteemide disain
Bits and Bytes Topics Representing information as bits
مدار منطقي مظفر بگ محمدي
Logic Circuits I Lecture 3.
More about Sets.
Comp Org & Assembly Lang
… and now for something completely different…
Set – collection of objects

Chapter 4 Combinational Logic Design Principles. Overview Objectives -Define combinational logic circuit -Analysis of logic circuits (to describe what.
Sets, Unions, Intersections, and Complements
Presentation transcript:

Kombinatoorsete süsteemide disain L2. Arvusüsteemid ja kahend-loogika L3. Loogikafunktsioonide esitamine ja teisendamine L4. Digitaalsüsteemid, andme- ja juht-osa, modelleerimise alused © Peeter Ellervee I207 - Digitaalloogika ja -süsteemid - L2

Abstraktsioonitasemed kümnendarvud sümbolid / Kasutajaliides Operatsiooni- süsteem Pooljuhid: Si, GaAs & Co reaalarvud Rakendus- programmid Progr. keeled Transistorid / traadid Assembler / binaarkood Loogika- elemendid kahendarvud / kahendloogika Arvutisüsteem: CPU + RAM RTL: ALU & Co Loogika- funktsioonid Protsessor © Peeter Ellervee I207 - Digitaalloogika ja -süsteemid - L2

I207 - Digitaalloogika ja -süsteemid - L2 Arvusüsteemid J.F. Wakerly “Digital Design: Principles and Practices” - 2.1-2.4 Positsionaalsed arvusüsteemid väärtus = numbrite kaalutud summa 173.4 = 1·100 + 7·10 + 3·1 + 4·0.1 173.4 = 1·102 + 7·101 + 3·100 + 4·10-1 D =  di·ri, i = -n, …, p-1 dp-1 dp-2 … d2 d1 d0 . d-1 d-2 ... d-n r - baas (radix) © Peeter Ellervee I207 - Digitaalloogika ja -süsteemid - L2

I207 - Digitaalloogika ja -süsteemid - L2 Kahendarvud Binary numbers D =  di·2i, i = -n, …, p-1 101.0012 = 1·4 + 0·2 + 1·1 + 0·0.5 + 0·0.25 + 1·0.125 = 5.12510 MSB - most significant bit vanim järk LSB - least significant bit noorim järk © Peeter Ellervee I207 - Digitaalloogika ja -süsteemid - L2

I207 - Digitaalloogika ja -süsteemid - L2 8- ja 16-arvud Octal numbers – D =  di·8i 0, 1, 2, 3, 4, 5, 6, 7 1000110011102 = 100 011 001 1102 = 43168 Hexadecimal numbers – D =  di·16i 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F 111011011101010012 = 0001 1101 1011 1010 10012 = 1DBA916 © Peeter Ellervee I207 - Digitaalloogika ja -süsteemid - L2

I207 - Digitaalloogika ja -süsteemid - L2 8- ja 16-arvud Püsikomaarvud 10.10110010112 = 010 . 101 100 101 1002 = 2.54548 10.10110010112 = 0010 . 1011 0010 11002 = 2.B2C16 8-arv (16-arv) -> 2-arv 1 byte - 8 bits, 1 nibble - 4 bits © Peeter Ellervee I207 - Digitaalloogika ja -süsteemid - L2

I207 - Digitaalloogika ja -süsteemid - L2 Teisendamine Teisendus üle 10-süsteemi Üldistatud teisendus dp-1 dp-2 … d2 d1 d0 D =  di·ri ( i = 0, …, p-1) = dp-1·rp-1 + dp-2·rp-2 + … + d2·r2 + d1·r1 + d0·r0 = ((( … ((dp-1)·r + dp-2)·r + …)·r + d2)·r + d1)·r + d0 rekurssiivne jagamine jääk annab koha väärtuse © Peeter Ellervee I207 - Digitaalloogika ja -süsteemid - L2

I207 - Digitaalloogika ja -süsteemid - L2 Teisendamine – näited D =  di·ri ( i = 0, …, p-1) = ((( … ((dp-1)·r + dp-2)·r + …)·r + d2)·r + d1)·r + d0 F1AC16 = (((15)·16+1)·16+10)·16+12 = 61868 61868 / 16 = 3866 jääk 12 3866 / 16 = 241 jääk 10 241 / 16 = 15 jääk 1 5410 = ??13 (Kui palju on 6x9?) 54 / 13 = 4 jääk 2 5410 = 4213 © Peeter Ellervee I207 - Digitaalloogika ja -süsteemid - L2

I207 - Digitaalloogika ja -süsteemid - L2 Hulgad hulk on elementide (objektide) kogum [Georg Cantor, 1845-1918] hulk - set ,      element - element, member x  A - element x kuulub hulka A |A| , N(A) - hulga võimsus (kardinaalsus) lõplikud (finite) ja lõpmatud (infinite) hulgad loenduvad (countable) hulgad © Peeter Ellervee I207 - Digitaalloogika ja -süsteemid - L2

I207 - Digitaalloogika ja -süsteemid - L2 Hulgad P  Q   - alamhulk (subset) hulk P on on hulga Q alamhulk kui iga hulga P element on ka hulga Q element ühisosata hulgad (disjoint sets) tühi hulk (empty set) -  universaalhulk (universal set) - I © Peeter Ellervee I207 - Digitaalloogika ja -süsteemid - L2

I207 - Digitaalloogika ja -süsteemid - L2 Tehted hulkadega ühend (union) A  B = { x | xA V xB } ühisosa (intersection) A  B = { x | xA & xB } täiend (complement) A = { x | xI & xA } (AC) vahe (difference) A \ B = { x | xA & xB } sümmeetriline vahe A D B = { x | (xA & xB) V (xA & xB) } © Peeter Ellervee I207 - Digitaalloogika ja -süsteemid - L2

I207 - Digitaalloogika ja -süsteemid - L2 Tehted hulkadega Venn’i diagramm A  B A  C =  B  C   I B C A A  B = A A  B = B B  C B \ A © Peeter Ellervee I207 - Digitaalloogika ja -süsteemid - L2

I207 - Digitaalloogika ja -süsteemid - L2 Boole’i algebra J.F. Wakerly “Digital Design: Principles and Practices” - 4.1 Loogikafunktsioonide formaalne analüüs George Boole 1854 – kahevalentne algebrasüsteem – Boole’i algebra 1938 – Claude E. Shannon releeskeemide analüüs (switching algebra) Üksühene vastavus Cantor’i algebra (hulgad) ja Boole’I algebra (kahendloogika) vahel! © Peeter Ellervee I207 - Digitaalloogika ja -süsteemid - L2

I207 - Digitaalloogika ja -süsteemid - L2 Boole’i algebra Liitmine - a+b, ab, a|b Korrutamine - a·b, ab, a&b Aksioomid (1) X=0 kui X1 X=1 kui X0 (2) kui X=0, siis X’=1 kui X=1, siis X’=0 (3) 0 · 0 = 0 1 + 1 = 1 (4) 1 · 1 = 1 0 + 0 = 0 (5) 0 · 1 = 1 · 0 = 0 1 + 0 = 0 + 1 = 1 © Peeter Ellervee I207 - Digitaalloogika ja -süsteemid - L2

I207 - Digitaalloogika ja -süsteemid - L2 Boole’i algebra Ühemuutuja teoreemid (1) X + 0 = X X · 1 = X identsus (2) X + 1 = 1 X · 0 = 0 konstandid (3) X + X = X X · X = X idempotentsus (4) (X’)’ = X topelteitus (5) X + X’ = 1 X · X’ = 0 täiendid © Peeter Ellervee I207 - Digitaalloogika ja -süsteemid - L2

I207 - Digitaalloogika ja -süsteemid - L2 Boole’i algebra Kahe- ja kolmemuutuja teoreemid (6) X+Y = Y+X X·Y = Y·X kommutatiivsus (7) (X+Y)+Z=X+(Y+Z) (X·Y)·Z=X·(Y·Z) assotsiatiivsus (8) (X·Y)+(X·Z)=X·(Y+Z) (X+Y)·(X+Z)=X+(Y·Z) distributiivsus (9) X+(X·Y)=X X·(X+Y)=X X+(X’·Y)=X+Y X·(X’+Y)=X·Y neeldumine (10) (X·Y)’=X’+Y’ (X+Y)’=X’·Y’ De Morgan © Peeter Ellervee I207 - Digitaalloogika ja -süsteemid - L2

I207 - Digitaalloogika ja -süsteemid - L2 Loogikafunktsioonid b a a a b 1 a b y 1 a b y 1 a y a·b a+b a’ a JA, AND VÕI, OR EI, NOT © Peeter Ellervee I207 - Digitaalloogika ja -süsteemid - L2

I207 - Digitaalloogika ja -süsteemid - L2 Loogikafunktsioonid 1 a b y 1 a b y 1 a b y ab a’+b ab (a·b)+(a’·b’) ab (a·b’)+(a’·b) implikatsioon ekvivalents (XNOR) välistav-või (XOR) © Peeter Ellervee I207 - Digitaalloogika ja -süsteemid - L2

I207 - Digitaalloogika ja -süsteemid - L2 Loogikafunktsioonid 1 b c y a 1 b c y a 1 a b y 1 a b y (a·b)’ a’+b’ (a+b)’ a’·b’ JA-EI NAND VÕI-EI NOR 3-NAND 3-XOR © Peeter Ellervee I207 - Digitaalloogika ja -süsteemid - L2

Kahendloogika pööratavus 1 a b y AND 0 ↔ 1 1 a b y muutujate järjestus? 1 a b y OR NOR 1 a b y NAND 1 a b y © Peeter Ellervee I207 - Digitaalloogika ja -süsteemid - L2

I207 - Digitaalloogika ja -süsteemid - L2 Miks kahendloogika? J.F. Wakerly “Digital Design: Principles and Practices” - 1.2 Analoog suvaline väärtus 0..5 V, -10..+10 mA, jne. Digitaal diskreetsed väärtused 0/1, tõene/väär, true/false, high/low, jne. © Peeter Ellervee I207 - Digitaalloogika ja -süsteemid - L2

I207 - Digitaalloogika ja -süsteemid - L2 Miks kahendloogika? Digitaali eelised Tulemuste korratavus samad sisendid annavad alati sama tulemuse analoog - temperatuur, toitepinge, vananemine, ... Projekteerimise lihtsus loogikafunktsioonid, optimeerimisalgoritmid Paindlikkus ja funktsionaalsus erinevad algoritmid, sama funktsionaalsus võimsustarve, loogikalülide arv, ... © Peeter Ellervee I207 - Digitaalloogika ja -süsteemid - L2

I207 - Digitaalloogika ja -süsteemid - L2 Miks kahendloogika? Digitaali eelised (järg) Programmeeritavus programmeerimiskeeled / riistvara kirjelduskeeled Töökiirus Turg ja tehnoloogia areng Analoogi eelised Diferentsiaalvõrrandite realiseerimine Energeetiline efektiivsus Kõrge töösagedus © Peeter Ellervee I207 - Digitaalloogika ja -süsteemid - L2

Mitmevalentne loogika Nivoo loogika kindel pingevahemik (vooluvahemik) 0 - <0.8V, 1 - >3.8V Mitmevalentne loogika rohkem kui kaks diskreetset väärtust suurem infotihedus mälud - 4- & 16-valentsed Boole’i algebra edasiarendus funktsioonide süsteemi minimiseerimine © Peeter Ellervee I207 - Digitaalloogika ja -süsteemid - L2