מבנה מחשב – מבוא למחשבים ספרתיים Encoders, Decoders & Shifters תרגול מספר 5.

Slides:



Advertisements
Similar presentations
Optimal Lower Bounds for 2-Query Locally Decodable Linear Codes Kenji Obata.
Advertisements

Mathematical Induction
1.6 Op-Amp Basics High input impedance Low output impedance Made using difference amplifiers having 2 inputs and at least 1 output 1 Note: Terminals for.
1 The 2-to-4 decoder is a block which decodes the 2-bit binary inputs and produces four output All but one outputs are zero One output corresponding to.
Logic Circuits Design presented by Amr Al-Awamry
PERMUTATION CIRCUITS Presented by Wooyoung Kim, 1/28/2009 CSc 8530 Parallel Algorithms, Spring 2009 Dr. Sushil K. Prasad.
Combinational Circuits
Functions and Functional Blocks
Introduction to Modern Cryptography, Lecture 12 Secure Multi-Party Computation.
5.3 Linear Independence.
Setting the flip-flop The normal value of R and S is zero. S (set) = 0 R (reset) = 0 remembered value 1.
Topics: 1. Finding a cycle in a graph 2. Propagation delay - example 3. Trees - properties מבנה המחשב - אביב 2004 תרגול 3#
Topics: 1. Trees - properties 2. The master theorem 3. Decoders מבנה המחשב - אביב 2004 תרגול 4#
Flip-Flops מבנה המחשב + מבוא למחשבים ספרתיים תרגול 10#
5 Qubits Error Correcting Shor’s code uses 9 qubits to encode 1 qubit, but more efficient codes exist. Given our error model where errors can be any of.
מבנה המחשב – מבוא למחשבים ספרתיים Parallel Prefix Computation.
מבנה המחשב + מבוא למחשבים ספרתיים תרגול 1#
CPSC 411, Fall 2008: Set 2 1 CPSC 311 Analysis of Algorithms Sorting Lower Bound Prof. Jennifer Welch Fall 2009.
מבנה המחשב - מבוא למחשבים ספרתיים Synchronous Circuits.
Combinatorial Logic Design Process. Example: Three 1s pattern detector Detect whether a pattern of at least three adjacent 1s occurs anywhere in an 8-bit.
Addition מבנה המחשב + מבוא למחשבים ספרתיים תרגול 7#
מבנה המחשב + מבוא למחשבים ספרתיים תרגול 5# Topics: 1.Encoders and decoders 2.Shifters.
Decoders and Trees מבנה המחשב + מבוא למחשבים ספרתיים תרגול 4#
Data Structures – LECTURE 10 Huffman coding
מבנה המחשב – מבוא למחשבים ספרתיים Foundations of Combinational Circuits תרגול מספר 3.
Combinational Comparators
Boolean Algebra cont’ The digital abstraction מבנה המחשב + מבוא למחשבים ספרתיים תרגול 2#
מבנה מחשבים תרגול מספר 4. Definition: A Boolean function f :{0,1} n  {0,1} is monotone if x  y  f (x)  f ( y) (where x  y means : for every i x i.
Topics: 1. Priority Encoders 2. A question from an exam 3. Addition (if time permits) מבנה המחשב - אביב 2005 תרגול 6#
COE 202: Digital Logic Design Combinational Circuits Part 4
מבנה המחשב - מבוא למחשבים ספרתיים U-PENCs, B-PENCs & Half Decoders תרגול מספר 6.
מבנה מחשבים תרגול מספר 3. טענה על עצים משפט: בעץ שדרגת כל קודקודיו חסומה ב-3, מספר העלים ≤ מספר הקודקודים הפנימיים + 2. הוכחה: באינדוקציה על n, מספר הקודקודים.
Fall 2004COMP 3351 Regular Expressions. Fall 2004COMP 3352 Regular Expressions Regular expressions describe regular languages Example: describes the language.
A presentation on Counters
Encoder, Tristate Driver
9/15/09 - L15 Decoders, Multiplexers Copyright Joanne DeGroat, ECE, OSU1 Decoders and Multiplexers.
Quantum Error Correction Jian-Wei Pan Lecture Note 9.
CS 210.  How do we represent data in a computer? ◦ Easy to recognize two conditions:  1. Presence of a voltage – we’ll call this state “1”  2. Absence.
Combinational Circuit – Arithmetic Circuit
CSE373: Data Structures and Algorithms Lecture 2b: Proof by Induction and Powers of Two Nicki Dell Spring 2014.
1-5: Postulates and Theorems relating Points, Lines, and Planes.
COE 202: Digital Logic Design Combinational Circuits Part 4
מבנה מחשב תרגול 2. 2 Boolean AND Operation Truth Table Equivalent Gate Different notations:
Computer Science 210 Computer Organization Control Circuits Decoders and Multiplexers.
CSCE 411H Design and Analysis of Algorithms Set 10: Lower Bounds Prof. Evdokia Nikolova* Spring 2013 CSCE 411H, Spring 2013: Set 10 1 * Slides adapted.
Decoders A decoder is a logic circuit that detects the presence of a specific combination of bits at its input. Two simple decoders that detect the presence.
Combinational Circuits
The Exact Round Complexity of Secure Computation
Logic Gates Practical Objective: to develop an understanding of logic circuits and truth tables.
Digital Electronics Multiplexer
CSE322 PUMPING LEMMA FOR REGULAR SETS AND ITS APPLICATIONS
מבנה מחשב תרגול 3.
CSE 140 Lecture 12 Combinational Standard Modules
5.6 Indirect Proof and Inequalities in Two Triangles
Proving the Correctness of Huffman’s Algorithm
CPSC 411 Design and Analysis of Algorithms
Reference: Chapter 3 Moris Mano 4th Edition
Digital Electronics Multiplexer
QuickSort QuickSort Best, Worst Average Cases K-th Ordered Statistic
CSE 140 Lecture 12 Combinational Standard Modules
Computer Science 210 Computer Organization
Multiplexor A multiplexor is a device that takes a number of data inputs and selects one of them to pass through as its output. The interface of a multiplexor.
Combinational Circuits
CPSC 411 Design and Analysis of Algorithms
Chapter 5 Parallel Lines and Related Figures
ECE2030 HW-6.
Proving the Correctness of Huffman’s Algorithm
Discrete Mathematics CS 2610
 congruent complement and supplement theorems. Opener: Given:
Presentation transcript:

מבנה מחשב – מבוא למחשבים ספרתיים Encoders, Decoders & Shifters תרגול מספר 5

Encoder F Specification: Functionality:

Proof of Correctness By induction. Base:

Proof of Correctness Induction assumption: Encoder F (n-1) is correct Induction step: Prove that if the design is correct for k-1, it is also correct for k.

Proof of Correctness Induction step: We need to examine the output closer Since weight(x)=1, one of the components must be all zeros.

Induction step - continued There is at most one i for which x[i] = 1 First case:

Induction step continued Second case:

Induction Step continued Third case:

Induction Step continued Calculating F

Induction Conclusion If Encoder F (k-1) is correct then Encoder F (k) is correct. Since Encoder F (1) is correct (base), it follows that Encoder F (n) is correct for all n.

Cost of Encoder F

Delay of Encoder F

Cost of Decoder Each of the 2 n output gates is fed by a different non-trivial gate, therefore the cost must be at least that much.

Cost of Encoder * There are 2 n inputs which are fed into non- trivial gates. If the fan-in is bounded, then there must be an order of that size of input gates Another way to view it: each output bit has a cone of exactly 2 n-1. Why?

Delay of Decoder & Encoder * Decoder - Using the theorem shown in class: Encoder - Using the same method:

Barrel Shifter

Functionality Preservation If we swap the order of the blocks with their inputs will the functionality be preserved? If we swap the order of the blocks without swapping their inputs will the functionality be preserved?

Asymptotic Optimality of Delay The delay of the circuit is log(n) How can we prove optimality? We can view the circuit as having n+log(n) inputs. Each output bit is in a certain situation affected by every input bit. Therefore the cone of every output bit is n+log(n) This results in a delay that is O(log(n)).