Logistics We are here. If you cannot login to MarkUs, me your UTORID and name.

Similar documents
EE260: Digital Design, Spring /3/18. n Combinational Logic: n Output depends only on current input. n Require cascading of many structures

Chapter 7 Registers and Register Transfers

Read Only Memory (ROM)

DIGITAL SYSTEM DESIGN

Advanced Devices. Registers Counters Multiplexers Decoders Adders. CSC258 Lecture Slides Steve Engels, 2006 Slide 1 of 20

Polychrome Devices Reference Manual

FUNCTIONS OF COMBINATIONAL LOGIC

NIIT Logotype YOU MUST NEVER CREATE A NIIT LOGOTYPE THROUGH ANY SOFTWARE OR COMPUTER. THIS LOGO HAS BEEN DRAWN SPECIALLY.

Energy-Efficient FPGA-Based Parallel Quasi-Stochastic Computing

PROBABILITY AND STATISTICS Vol. I - Ergodic Properties of Stationary, Markov, and Regenerative Processes - Karl Grill

Voice Security Selection Guide

Image Intensifier Reference Manual

Working with PlasmaWipe Effects

CS/ECE 250: Computer Architecture. Basics of Logic Design: ALU, Storage, Tristate. Benjamin Lee

IS1500 (not part of IS1200) Logic Design Lab (LD-Lab)

Line numbering and synchronization in digital HDTV systems

T-25e, T-39 & T-66. G657 fibres and how to splice them. TA036DO th June 2011

1. True/False Questions (10 x 1p each = 10p) (a) I forgot to write down my name and student ID number.

CS 110 Computer Architecture. Finite State Machines, Functional Units. Instructor: Sören Schwertfeger.

BCN1043. By Dr. Mritha Ramalingam. Faculty of Computer Systems & Software Engineering

R13 SET - 1 '' ''' '' ' '''' Code No: RT21053

NewBlot PVDF 5X Stripping Buffer

Mullard INDUCTOR POT CORE EQUIVALENTS LIST. Mullard Limited, Mullard House, Torrington Place, London Wel 7HD. Telephone:

MODULE 3. Combinational & Sequential logic

Combinational Logic Design

R13. II B. Tech I Semester Regular Examinations, Jan DIGITAL LOGIC DESIGN (Com. to CSE, IT) PART-A

2 Specialty Application Photoelectric Sensors

Background Manuscript Music Data Results... sort of Acknowledgments. Suite, Suite Phylogenetics. Michael Charleston and Zoltán Szabó

References and quotations

Motivation. Analysis-and-manipulation approach to pitch and duration of musical instrument sounds without distorting timbral characteristics

EECS 270 Midterm 1 Exam Closed book portion Winter 2017

VOCALS SYLLABUS SPECIFICATION Edition

EXPERIMENT 13 ITERATIVE CIRCUITS

Logic Design IS1200, spring 2015 Review Slides

Organic Macromolecules and the Genetic Code A cell is mostly water.

Practice Guide Sonata in F Minor, Op. 2, No. 1, I. Allegro Ludwig van Beethoven

,..,,.,. - z : i,; ;I.,i,,?-.. _.m,vi LJ

CODE GENERATION FOR WIDEBAND CDMA

UNIT 7. Could You...?

Bachelor Level/ First Year/ Second Semester/ Science Full Marks: 60 Computer Science and Information Technology (CSc. 151) Pass Marks: 24

Volume 20, Number 2, June 2014 Copyright 2014 Society for Music Theory

For children aged 5 7

CSC Computer Architecture and Organization

To Bean or not to bean! by Uwe Rosenberg, with illustrations by Björn Pertoft Players: 2 7 Ages: 10 and up Duration: approx.

gate symbols will appear in schematic Dierent of a circuit. Standard gate symbols have been diagram Figures 5-3 and 5-4 show standard shapes introduce

Quality improvement in measurement channel including of ADC under operation conditions

COMP sequential logic 1 Jan. 25, 2016

NexLine AD Power Line Adaptor INSTALLATION AND OPERATION MANUAL. Westinghouse Security Electronics an ISO 9001 certified company

Logic Design Viva Question Bank Compiled By Channveer Patil

Manual Comfort Air Curtain

The basic logic gates are the inverter (or NOT gate), the AND gate, the OR gate and the exclusive-or gate (XOR). If you put an inverter in front of

Half-Adders. Ch.5 Summary. Chapter 5. Thomas L. Floyd

Video Cassette Recorder

2 Specialty Application Photoelectric Sensors

AIM: To study and verify the truth table of logic gates

Encoders and Decoders: Details and Design Issues

FHD inch Widescreen LCD Monitor USERGUIDE

Engineering College. Electrical Engineering Department. Digital Electronics Lab

Apollo 360 Map Display User s Guide

6.3 Sequential Circuits (plus a few Combinational)

Midterm Exam 15 points total. March 28, 2011

MUHAMMAD NAEEM LATIF MCS 3 RD SEMESTER KHANEWAL

Achieving 550 MHz in an ASIC Methodology

More Digital Circuits

211: Computer Architecture Summer 2016

Find the equivalent decimal value for the given value Other number system to decimal ( Sample)

EXPERIMENT: 1. Graphic Symbol: OR: The output of OR gate is true when one of the inputs A and B or both the inputs are true.

THE Internet of Things (IoT) is likely to be incorporated

Multiplexor (aka MUX) An example, yet VERY useful circuit!

RELIABILITY EVALUATION OF REPAIRABLE COMPLEX SYSTEMS AN ANALYZING FAILURE DATA

Introduction to Digital Logic Missouri S&T University CPE 2210 Exam 3 Logistics

Contents Circuits... 1

DCT 1000 Cable Terminal Installation Manual

We are here. Assembly Language. Processors Arithmetic Logic Units. Finite State Machines. Circuits Gates. Transistors

What Does it Take to Build a Complete Test Flow for 3-D IC?

WINTER 15 EXAMINATION Model Answer

Solution to Digital Logic )What is the magnitude comparator? Design a logic circuit for 4 bit magnitude comparator and explain it,

Contents Slide Set 6. Introduction to Chapter 7 of the textbook. Outline of Slide Set 6. An outline of the first part of Chapter 7

9311 EN. DIGIFORCE X/Y monitoring. For monitoring press-fit, joining, rivet and caulking operations Series 9311 ±10V DMS.

Analogue Versus Digital [5 M]

Dev Bhoomi Institute Of Technology Department of Electronics and Communication Engineering PRACTICAL INSTRUCTION SHEET

CprE 281: Digital Logic

Math of Projections:Overview. Perspective Viewing. Perspective Projections. Perspective Projections. Math of perspective projection

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING

MODEL QUESTIONS WITH ANSWERS THIRD SEMESTER B.TECH DEGREE EXAMINATION DECEMBER CS 203: Switching Theory and Logic Design. Time: 3 Hrs Marks: 100

ECE 250 / CPS 250 Computer Architecture. Basics of Logic Design ALU and Storage Elements

Tribhuvan University Institute of Science and Technology Bachelor of Science in Computer Science and Information Technology

Logic Design ( Part 3) Sequential Logic- Finite State Machines (Chapter 3)

Grammar 6: Sheet 1 Answer Guide

PIANO SYLLABUS SPECIFICATION. Also suitable for Keyboards Edition

word or phrase part of speech meaning example star n Can you see any stars in the sky? I ve seen a satellite on TV.

CCTV that s light years ahead

TIME SCHEDULE. MODULE TOPICS PERIODS 1 Number system & Boolean algebra 17 Test I 1 2 Logic families &Combinational logic

Spiral Content Mapping. Spiral 2 1. Learning Outcomes DATAPATH COMPONENTS. Datapath Components: Counters Adders Design Example: Crosswalk Controller

Chapter 8 Functions of Combinational Logic

Implementation of Expressive Performance Rules on the WF-4RIII by modeling a professional flutist performance using NN

COMP12111: Fundamentals of Computer Engineering

Manual Industrial air curtain

Romeo And Juliet II. Paris. Lord Capulet. Tybalt Benvolio. Juliet. Romeo. Mercutio. Juliet s Nurse. Shakespeare On Stage

Internet supported Analysis of MPEG Compressed Newsfeeds

Transcription:

Logistics We are here 8 Week If you caot logi to arkus, email me your UTORID ad ame. heck lab marks o arkus, if it s recorded wrog, cotact Larry withi a week after the lab. Quiz average: 8% Assembly Laguage Processors Arithmetic Logic Uits Devices ircuits Fiite tate achies Flip-flops After quiz due date, the correct aswers will be show. Ay questios about the completed quizzes, ask o the discussio board or i the office hours. Gates Trasistors Buildig up from gates ultiplexers Logical Devices ome commo ad more complex structures: ú ultiplexers (U) ú Adders (half ad full) ú ubtractors ú Decoders eve-segmet decoders ú omparators Logical devices ultiplexer desig ultiplexer uses ertai structures are commo to may circuits, ad have block elemets of their ow. ú e.g. ultiplexers (short form: mux) ú Behaviour: Output is if is, ad if is, i.e., selects which iput ca go through = + uxes are very useful wheever you eed to select from multiple iput values. ú Example: ú urveillace video moitors, ú Digital cable boxes, ú routers. 7 8 9

Adder circuits Adders Also kow as biary adders. ú mall circuit devices that add two -bit umber. ú ombied together to create iterative combiatioal circuits add multiple-bit umbers Types of adders: ú Half adders () ú Full adders () ú Ripple arry Adder ú arry-look-ahead Adder (LA) Review of Biary ath Review of Biary ath Each digit of a decimal umber represets a power of : 8 = x + x + 8x Each digit of a biary umber represets a power of : = x + x + x + x + x = Usiged biary additio 7 + arry bit 7 = = + 9 + 8 carry bit + + Half Adder Iput: two -bit umbers Output: -bit sum ad -bit carry Half Adders A -iput, -bit width biary adder that performs the followig computatios: + + + + + =? =? Half Adder Implemetatio Equatios ad circuits for half adder uits are easy to defie (eve without Karaugh maps) = = + = xor A half adder outputs a carry-bit, but does ot take a carry-bit as iput. A half adder adds two bits to produce a two-bit sum. The sum is expressed as a sum bit ad a carry bit. 7 8

Full Adders Full Adder Desig Full Adder takes a carry bit as iput imilar to half-adders, but with aother iput, which represets a carry-i bit. ú ad are sometimes labeled as out ad i. Whe is, the uit behaves exactly like ú a half adder. Whe is : + + + + + + + + + + = + + = xor xor 9 = + ( xor ) For gate reuse( xor ) cosiderig both ad Full Adder Desig The term ca also be rewritte as: = + ( xor ) Two terms come from this: ú = carry geerate (G). Whether ad geerate a carry bit ú xor = carry propagate (P). Whether carry will be propagated to out Results i this circuit à = xor xor G out P Now we ca add oe bit properly, but most of the umbers we use have more tha oe bits. it, usiged it: bits (architecture-depedet) short it, usiged short it: bits log log it, usiged log log it: bit char, usiged char: 8 bits How do we add multiple-bit umbers? Each full adder takes i a carry bit ad outputs a carry bit. Each full adder ca take i a carry bit which is output by aother full adder. That is, they ca be chaied up. Ripple-arry Biary Adder Full adders chaied up, for multiple-bit additio Ripple-arry Biary Adder Full adder uits are chaied together i order to perform operatios o sigal vectors. out Adder i out i is the sum of ad 7

The role of i Let s play a game ubtractors Why ca t we just have a half-adder for the smallest (rightmost) bit? Because if we ca use it to do subtractio! out i 8. Pick two umbers betwee ad. overt both umbers to -bit biary form. Ivert each digit of the smaller umber. Add up the big biary umber ad the iverted small biary umber. Add to the result, keep the lowest digits. overt the result to a decimal umber What do you get? ou just did subtractio without doig subtractio! 9 ubtractors are a extesio of adders. ú Basically, perform additio o a egative umber. Before we ca do subtractio, eed to uderstad egative biary umbers. Two types: ú Usiged = a separate bit exists for the sig; data bits store the positive versio of the umber. ú iged = all bits are used to store a s complemet egative umber. Two s complemet Usiged subtractio (separate sig bit) Need to kow how to get s complemet: ú Give umber with bits, take ( -)- ú Negates each idividual bit (bitwise NOT). à à s complemet = ( s complemet + ) à à Kow this! Note: Addig a s complemet umber to the origial umber produces a result of zero. ( s complemet of A) + A =. The s complemet of A is like -A Geeral algorithm for A - B:. Get the s complemet of B (-B). Add that value to A. If there is a ed carry (out is high), the fial result is positive ad does ot chage.. If there is o ed carry (out is low), get the s complemet of the result (B-A) ad add a egative sig to it, or set the sig bit high (-(B-A) = A-B). Usiged subtractio example iged subtractio (easier) iged subtractio example (-bit) 7 carry bit - + 7 - o carry bit + s complemet tore egative umbers i s complemet otatio. ú ubtractio ca the be performed by usig the biary adder circuit with egative umbers. ú To compute A B, just do A + (-B) ú Need to get -B first (the s complemet of B) is is - is ( s complemet of ) - is which is - sig bit is low (positive) sig bit is - high (egative) -

iged additio example (-bit) Now you uderstad code better Trivia about sig umbers + is is +: This is -! The supposed result is exceedig the rage of -bit siged itegers. This is called a overflow. 7 #iclude <stdio.h> it mai() { } /* char is 8-bit iteger */ siged char a = ; siged char b = ; siged char s = a + b; pritf("%d\", s); 8 The largest positive 8-bit siged iteger? = 7 ( followed by all ) The smallest egative 8-bit siged iteger? = -8 ( followed by all ) The biary form 8-bit siged iteger -? (all oe) For -bit siged umber there are possible values - are egative umbers (e.g. 8 bit, - to -8) - - are positive umber (e.g. 8 bit, to 7) ad a zero 9 ubtractio circuit Decoders ub Ivert all the digits (if sub = ) -8: (siged) out i If sub =, = + If sub =, = Oe circuit, both adder or subtractor Add, so gettig s complemet What is a decoder? Decoders Demultiplexers Decoder umber umber umber umber rock! good job!.. Decoders are essetially traslators. ú Traslate from the output of oe circuit to the iput of aother. Example: Biary sigal splitter ú Activates oe of four output lies, based o a twodigit biary umber. Decoder A B D Related to decoders: demultiplexers. ú Does multiplexer operatio, i reverse. W -bit iput, ecoded origial iformatio The origial iformatio

7-segmet decoder Note ultiplexer: hoose oe from multiple iputs as output Demultiplexer: Oe iput chooses from multiple outputs ommo ad useful decoder applicatio. ú Traslate from a -digit biary umber to the seve segmets of a digital display. ú Each output segmet has a particular logic that defies it. ú Example: egmet Activate for values:,,,,, 7, 8, 9. I biary:,,,,,,,. ú First step: Build the truth table ad K-map. What we talk about here is NOT the same as what we do i Lab I labs we traslate umbers,,,,, to displayed letters such as (H, E, L, L, O, _, E, L, I) ú This is specially defied for the lab Here we are talkig about traslatig,,,,,, to displayed,,,,,... ú This is more commo use 7 8 7-segmet decoder For 7-seg decoders, turig a segmet o ivolves drivig it low. (active low) ú (I Lab, we treat it like active high. It s OK because Logisim does autocoversio to make it work). ú i.e. Assumig a -digit biary umber, segmet is low wheever iput umber is,,,,,, or, ad high wheever iput umber is or. ú This create a truth table ad map like the followig 9 7-segmet decoder HE rows missig! HE = + But what about iput values from to? ~ Do t care values ome iput values will ever happe, so their output values do ot have to be defied. ú Recorded as i the Karaugh map. These values ca be assiged to whatever values you wat, whe costructig the fial circuit. HE = + Boxes ca cover x s, or ot, whichever you like. Agai for segmet Agai for segmet The fial 7-seg decoder HE HE Decoders all look the same, except for the iputs ad outputs. Ulike other devices, the implemetatio differs from decoder to decoder. 7-seg decoder HE HE HE HE HE HE HE HE = + HE =

omparators (leftover from last week) omparators A circuit that takes i two iput vectors, ad determies if the first is greater tha, less tha or equal to the secod. How does oe make that i a circuit? Basic omparators osider two biary umbers A ad B, where A ad B are oe bit log. The circuits for this would be: ú A==B: ú A>B: ú A<B: A B + A B A B A B A B omparator A B A=B A>B A<B 7 Basic omparators AA BB Basic omparators AA BB omparig large umbers What if A ad B are two bits log? The terms for this circuit for have to expad to reflect the secod sigal. For example: omparator A=B A>B A<B What about checkig if A is greater or less tha B? ú A>B: omparator A B + (A B+A B) (A B) A=B A>B A<B The circuit complexity of comparators icreases quickly as the iput size icreases. For comparig large umber, it may make more sese to just use a subtractor. ú A==B: ake sure that the values of bit are the same (A B+A B) (A B+A B) ake sure that the values of bit are the same heck if first bit satisfies coditio ú A<B: If ot, check that the first bits are equal A B + (A B+A B) (A B) ad the do the -bit compariso ú ubtract ad the check the sig bit. A > B if ad oly if A > B or (A = B ad A > B) 8 9 Today we leared How a computer does followig thigs otrol the flow of sigal (mux ad demux) Arithmetic operatios: adder, subtractor Decoder comparators Next week: equetial circuits: circuits that have memories. 7