16 Pages

lect33-engin112

Course: ECE 221, Fall 2009
School: UMass (Amherst)
Rating:
 
 
 
 
 

Word Count: 733

Document Preview

ENGIN 112 Intro to Electrical and Computer Engineering Lecture 33 <a href="/keyword/arithmetic-logic-unit/" >arithmetic logic unit</a> (ALU) ENGIN112 L33: <a href="/keyword/arithmetic-logic-unit/" >arithmetic logic unit</a> s November 21, 2003 Overvie w Main computation unit in most computer systems ALUs perform a vaiety...

Register Now

Unformatted Document Excerpt

Coursehero >> Massachusetts >> UMass (Amherst) >> ECE 221

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
ENGIN 112 Intro to Electrical and Computer Engineering Lecture 33 <a href="/keyword/arithmetic-logic-unit/" >arithmetic logic unit</a> (ALU) ENGIN112 L33: <a href="/keyword/arithmetic-logic-unit/" >arithmetic logic unit</a> s November 21, 2003 Overvie w Main computation unit in most computer systems ALUs perform a vaiety of different functions Add, subtract, OR, AND... Example: ALU chip (74LS382) Has data and control inputs Individual chips can be chained together to make larger ALUs ALUs are important parts of datapaths ROMs often are usd in the control path Build a data and control path ENGIN112 L33: <a href="/keyword/arithmetic-logic-unit/" >arithmetic logic unit</a> s November 21, 2003 ROM-based Moore Machine Timing What is the maximum clock frequency of this circuit? Does this circuit satisfy hold time constraints? ROM ROM ENGIN112 L33: <a href="/keyword/arithmetic-logic-unit/" >arithmetic logic unit</a> s November 21, 2003 <a href="/keyword/arithmetic-logic-unit/" >arithmetic logic unit</a> <a href="/keyword/arithmetic-logic-unit/" >arithmetic logic unit</a> functions Two multi-bit data inputs Function indicates action (e.g. add, subtract, OR...) Function DataA DataB ALU DataOut Conditions DataOut is same bit width as multi-bit inputs (DataA and DataB) ALU is combinational Conditions indicate special conditions of arithmetic activity (e.g. overflow). Think of ALU as a number of other arithmetic and logic blocks in a single box! Function selects the block Adder Subtract AND ... November 21, 2003 ENGIN112 L33: <a href="/keyword/arithmetic-logic-unit/" >arithmetic logic unit</a> s ALU Integrated Circuit Integrated circuit off-the-shelf components Examine the functionality of this ALU chip Performs 8 functions ENGIN112 L33: <a href="/keyword/arithmetic-logic-unit/" >arithmetic logic unit</a> s November 21, 2003 Exa mpl e Determine the 74HC382 ALU outputs for the following inputs: S2S1S0=010, A3A2A1A0=0100, B3B2B1B0=0001, and CN=1. Function code indicates subtract 0100 0001 = 0011 Change the select code to 101 and repeat. Function code indicates OR 0100 OR 0001 = 0101 Synchronize ALU with a clock DataA Function DataB ALU DataOut Conditions ENGIN112 L33: <a href="/keyword/arithmetic-logic-unit/" >arithmetic logic unit</a> s November 21, 2003 Exp and ing Multi-bit ALU created by connecting carry output of the low-order chip to carry in of high order ALU Eight-bit ALU formed from 2 four-bit ALUs ENGIN112 L33: <a href="/keyword/arithmetic-logic-unit/" >arithmetic logic unit</a> s November 21, 2003 Datapath components Tri-state buffer In Out If Enable asserted, Out = In Otherwise Out open-circuit Enable Loadable register Clk Load Data stored on rising edge if Load is asserted (e.g. Load = 1) ENGIN112 L33: <a href="/keyword/arithmetic-logic-unit/" >arithmetic logic unit</a> s November 21, 2003 Computation in a Typical Computer Control logic often implemented as a finite state machine (including ROMs) Datapath contains blocks such as ALUs, registers, tristate buffers, and RAMs In a processor chip often a 5 to 1 ratio of datapath to control logic ENGIN112 L33: <a href="/keyword/arithmetic-logic-unit/" >arithmetic logic unit</a> s November 21, 2003 Using a Datapath Consider the following computation steps 1. ADD A, B and put result in A 2. Subtract A, B and put result in B 3. OR A, B put result in A Repeat starting from step 1 Determine values for Function, LoadA, LoadB LoadA A B LoadB Function ALU ENGIN112 L33: <a href="/keyword/arithmetic-logic-unit/" >arithmetic logic unit</a> s November 21, 2003 Modeling Control as a State Machine Consider the following computation steps 1. ADD A, B and put result in A 2. Subtract A, B and put result in B 3. OR A, B put result in A Repeat starting from step 1 Determine values for Function, LoadA, LoadB Model control as a state machine. Determine control outputs for each state S0 S1 S2 ENGIN112 L33: <a href="/keyword/arithmetic-logic-unit/" >arithmetic logic unit</a> s November 21, 2003 Modeling Control as a State Machine Consider the following computation steps 1. ADD A, B and put result in A 2. Subtract A, B and put result in B 3. OR A, B put result in A Repeat starting from step 1 States S0 = 00 S1 = 01 S2 = 10 Present State 00 01 10 Next State 01 10 00 Function 011 010 101 LoadA 1 0 1 LoadB 0 1 0 We know how to implement this using an SOP. Can we use a ROM? ENGIN112 L33: <a href="/keyword/arithmetic-logic-unit/" >arithmetic logic unit</a> s November 21, 2003 ROM Implementation of State Machine Present State 00 01 10 ROM 0101110 1001001 0010110 PS Next State 01 10 00 Function 011 010 101 LoadA 1 0 1 LoadB 0 1 0 States S0 = 00 S1 = 01 S2 = 10 00 01 10 Note:...

Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

UMass (Amherst) - ECE - 221
ENGIN 112 Intro to Electrical and Computer EngineeringLecture 33Arithmetic Logic Unit (ALU)ENGIN112 L33: Arithmetic Logic UnitsNovember 21, 2003Overview Main computation unit in most computer systems ALUs perform a vaiety of different functi
UMass (Amherst) - ECE - 354
Overview Learning how to use interrupts. Interfacing to an external bus. State machines in a PLD. Data handshaking. Moving towards a full system.Lab Assignment 21Tasks to be Completed Improve on Lab 1Lab Assignment 2Ecient printing of
UMass (Amherst) - ECE - 354
MPLAB-ICD USERS GUIDEInformation contained in this publication regarding device applications and the like is intended by way of suggestion only. No representation or warranty is given and no liability is assumed by Microchip Technology Incorporated
UMass (Amherst) - ECE - 221
ENGIN 112 Intro to Electrical and Computer EngineeringSequential Circuits: LatchesLecture 19ENGIN112 L19: Sequential Circuits: LatchesOctober 17, 2003Overvie w Circuits require memory to store intermediate data Sequential circuits use a per
UMass (Amherst) - ECE - 636
ECE 636Reconfigurable ComputingLecture 3 Field Programmable Gate Arrays IILecture 3: Field Programmable Gate Arrays IIFebruary 3, 2009Overview Anti-fuse and EEPROM-based devices Contemporary SRAM devices - Wiring - Embedded New trends - Si
UMass (Amherst) - PS - 669
ECE669: Parallel Computer Architecture Fall 2004Handout #4Homework # 4Due: Novemeber 3Scalability and Interconnection NetworksEx 1: Scalability Q 1: Using the denition of scalability presented in class, compute the scalability of 1-D, 2-D, 3
UMass (Amherst) - ECE - 669
ECE 669 Parallel Computer ArchitectureLecture 27Course Wrap UpECE669 L27: Course Wrap-UpMay 13, 2004What is Parallel Architecture? A parallel computer is a collection of processing elements that cooperate to solve large problems fast Some
UMass (Amherst) - ECE - 221
ENGIN 112 Intro to Electrical and Computer EngineeringLecture 38Programmable LogicENGIN112 L38: Programmable LogicDecember 5, 2003Overvie w Programmable logic offers designers opportunity to customize chips Programmable logic devices have
UMass (Amherst) - ECE - 221
ENGIN 112 Intro to Electrical and Computer EngineeringLecture 30Random Access Memory (RAM)ENGIN112 L30: Random Access MemoryNovember 14, 2003Overvie w Memory is a collection of storage cells with associated input and output circuitry Possi
UMass (Amherst) - ECE - 221
ENGIN 112 Intro to Electrical and Computer EngineeringLecture 37Register Transfer LevelENGIN112 L37: Register Transfer LevelDecember 3, 2003Overvie w System design must be modular Easier to represent designs with system-level blocks Regi
UMass (Amherst) - ECE - 221
ENGIN 112 Intro to Electrical and Computer EngineeringLecture 5Boolean AlgebraENGIN112 L5: Boolean AlgebraSeptember 12, 2003Overvie w Logic functions with 1's and 0's Building digital circuitry Truth tables Logic symbols and waveforms
UMass (Amherst) - ECE - 221
ENGIN 112 Intro to Electrical and Computer EngineeringLecture 9More Karnaugh Maps and Dont CaresENGIN112 L9: More Karnaugh MapsSeptember 22, 2003Overvie w Karnaugh maps with four inputs Same basic rules as three input K-maps Understandin
UMass (Amherst) - K - 12
Nanomedicine Activity Materials List:1. FerroFluid display cell and magnet.ThesecanbeseenbysearchingforitemFF-200 at:http:/www.teachersource.com/catalog/index.html. Justthedisplaycellcosts$29.952. Magnets:Thefollowingmagnetsarealsoneededforthesyn
UMass (Amherst) - K - 12
Synthetic Opals1STEM ED /CHM Nanotechnology 2007 Synthetic &quot;Opals&quot;The National Center for Learning and Teaching in Nanoscale Science and Engineering (NCLT) is in the process of developing a curriculum entitled Manipulation of Light in the Nanowo
UMass (Amherst) - K - 12
Patricia Dean Senior Lecturer in Mathematics Mary Washington College 1301 College Ave. Fredericksburg, VA 22401 Panel pdean@mwc.edu Co-author: Debra Hydorn Associate Prof. of Mathematics Mary Washington College 1301 College Ave. Fredericksburg, VA 22
UMass (Amherst) - K - 12
Patricia Gordon High School Science Teacher/doctoral student Curriculum &amp; Instructional Technology Valdosta State University 1500 N. Patterson St. Valdosta, GA 31698 Long paper pgordon@friendlycity.net Co-authors: Dr. Brian L. Gerber Dr. Catherine Pr
UMass (Amherst) - K - 12
Sherry McCall Ross MESRP Coordinator CSME Towson University 8000 York Road Towson, MD 21252 smross@towson.edu Co-author: Katherine Denniston MCTP Co-PI CSME Towson University 8000 York Road Towson, MD 21252 Panel Research Internships for Teachers and
UMass (Amherst) - K - 12
Cindi Smith-Walters Professor/Director of MTSU Environmental Education Center Biology Department Middle Tennessee State University MTSU Box 60 Murfreesboro, TN 37132 csmithwa@mtsu.edu Co-author: Kim Cleary Sadler (same address as above) 1 hour worksh
UMass (Amherst) - TEI - 2005
The Climate Change Think Tank: Transportations Impacts and SolutionsKeynote Speaker: Congressman John Olver Chair, Appropriations Transportation SubcommitteeUniversity of Massachusetts Transportation CenterIN CONJUNCTION WITH:H B Mediathinkin
UMass (Amherst) - TEI - 2005
Environmental Information Portale TEI website serves as the environmental information portal for the UMass Amherst campus. Information that can be accessed online includes:Environmental ResearchLinks to research activities across campus On-line
UMass (Amherst) - WRRC - 2007
Ecohydrology and Water Resources of Monteverde, Costa Rica: Implications of a Changing ClimateAndrew J. GuswaPicker Engineering ProgramAmy L. RhodesDepartment of GeologySmith CollegeCollaboratorsEvelyn Kim 02 Sarah Katchpole 02 Annalee Wel
UMass (Amherst) - WRRC - 2009
April 7, 2009Lincoln Campus Center, University of Massachusetts AmherstAnnouncement and Call for PapersConference InformationThis year's conference will highlight interactions in water resources, including science, policy, management, and design
UMass (Amherst) - WRRC - 2007
Preparing for climate change: A small city's mid-century culvert drainage needsMAWRRC conference April 9, 2007, 12:30 p.m. Presenter: Latham Stack Project team: L. Stack, M. Simpson, T. Crosslin, S. Spearing, E. HagueSenior Researcher: G. Larson
UMass (Amherst) - WRRC - 2007
Rainwater Harvesting:The Relationship Between Water Supply Contamination and Community Participation in Rural Karnataka, IndiaPooja Singh KanwarM.S. Candidate: Resource Management and Administration Antioch New England UniversitySustainable Wat
UMass (Amherst) - WRRC - 2007
The Disputed Silala River Basin: A Catalyst for Cooperation?Joshua NewtonThe Fletcher School of Law &amp; Diplomacy, Tufts University MA WRRC Conference - Hydrodiplomacy April 9th, 2007Contents Question Global Context The Silala River Basin Hist
UMass (Amherst) - WRRC - 2004
SHARED WATERS &amp; COMMON GOALSEnhancing Partnerships in Water Quality Monitoring and Decision-makingReport on the Regional Conference November 2, 1993 Bedford, New HampshirebyPaul J. Godfrey Water Resources Research Center University of Massachu
UMass (Amherst) - WATER - 2003
PROGRAM AT A GLANCE8:00 - 9:00 9:00 - 9:20 9:20 - 9:50 9:50 - 10:00 10:00 - 11:30 am am am am am Continental Breakfast and Registration Welcome Chancellor John V. Lombardi and TEI Director David A. Reckhow Room 163 Keynote Address Congressman Joh
UMass (Amherst) - WATER - 2003
Conference RegistrationThe registration fee is $75 and includes lunch. Early registration is recommended as space is limited. Checks should be made payable to the University of Massachusetts and sent with the registration information below. Registra
UMass (Amherst) - MAY - 4
This file is for the final report on how Chime behaves in IE(e.g. from chimehow).Probably that report should be put on the web in a new Chime-IE sitealong with the modified chimehow interface for testing.
UMass (Amherst) - TEI - 2005
The Future of Food Systems: Global to LocalUniversity of Massachusetts-Amherst February 26, 2007 Molly D. Anderson, Food Systems Integrity, Arlington, MA 02474INTRODUCTIONIn agreeing to talk about the future of food systems, I'm venturing down a
UMass (Amherst) - TEI - 2005
Combating the Fossil Fuel Greenhouse Effect by Transforming the Global Energy SystemPresented atUniversity of Massachusetts Amherst, MAMonday, May 2, 2005 at 3:00-4:15 PMbyMarty Hoffert, Physics Department, New York University marty.hoffert@n
UMass (Amherst) - ECE - 221
ENGIN 112 Intro to Electrical and Computer EngineeringLecture 27CountersENGIN112 L27: CountersNovember 5, 2003Overvie w Counters are important components in computers The increment or decrement by one in response to input Two main types
UMass (Amherst) - ECE - 221
ENGIN 112 Intro to Electrical and Computer EngineeringLecture 27CountersENGIN112 L27: CountersNovember 5, 2003Overview Counters are important components in computers The increment or decrement by one in response to input Two main types o
UMass (Amherst) - ECE - 221
ENGIN 112 Intro to Electrical and Computer EngineeringLecture 28Timing AnalysisENGIN112 L28: Timing AnalysisNovember 7, 2003Overview Circuits do not respond instantaneously to input changes Predictable delay in transferring inputs to outpu
UMass (Amherst) - ECE - 221
Introduction to Computer Engineering12-10-03ENGIN112 - 1Professor Tessier - Career ChoicesAge 8 - astronaut l Age 12 - baseball player l Age 16 - computer scientist l Age 21 - computer engineer l Age 31 - computer engineer/professor l Age 41 -
UMass (Amherst) - ECE - 221
ENGIN 112 Intro to Electrical and Computer EngineeringLecture 38Programmable LogicENGIN112 L38: Programmable LogicDecember 5, 2003Overview Programmable logic offers designers opportunity to customize chips Programmable logic devices have a
UMass (Amherst) - ECE - 221
ENGIN 112 Intro to Electrical and Computer EngineeringLecture 21Analyzing Sequential CircuitsENGIN112 L21: Analyzing Sequential CircuitsOctober 22, 2003Overview Understanding flip flop state: Stored values inside flip flops Clocked seque
UMass (Amherst) - ECE - 636
ECE 636Reconfigurable ComputingLecture 1 Course IntroductionProf. Russell TessierLecture 1: Course IntroductionJanuary 27, 2009What is Reconfigurable Computing? Computation using hardware that can adapt at the logic level to solve specific
UMass (Amherst) - ECE - 221
ENGIN 112 Intro to Electrical and Computer EngineeringAnalyzing Sequential CircuitsLecture 21ENGIN112 L21: Analyzing Sequential CircuitsOctober 22, 2003Overvie w Understanding flip flop state: Stored values inside flip flops Clocked seque
UMass (Amherst) - ECE - 636
ECE 636Reconfigurable ComputingLecture 1 Course IntroductionProf. Russell TessierLecture 1: Course IntroductionJanuary 27, 2009What is Reconfigurable Computing? Computation using hardware that can adapt at the logic level to solve specific
UMass (Amherst) - ECE - 221
ENGIN 112 Intro to Electrical and Computer EngineeringFinite State Machine Design ProcedureLecture 23ENGIN112 L23: Finite State Machine Design ProcedureOctober 27, 2003Overvie w Design of systems that input flip flops and combinational logic
UMass (Amherst) - EDUC - 870
Conflict Prevention and Reconstruction UnitSocial Development Department Dissemination NotesChild Soldiers:May 2002Prevention, Demobilization and ReintegrationNumber 3Demobilization and reintegration of child soldiers is difficult, but count
UMass (Amherst) - EDUC - 870
Conflict Prevention and Post-Conflict Reconstruction: Perspectives and Prospects April 20-21, 1998 Contents PREFACE AND ACKNOWLEDGMENTS .2 INTRODUCTION ..3 TOWARD A NEW TYPE OF DEVELOPMENT: BRIDGING RELIEF AND RECONSTRUCTION.4 POST-CONFLICT RECONSTRU
Cal Poly Pomona - CS - 200604
Program 1CS 264 Fall 2006 Craig A. Rich1 Visit the Jasmin home page at http:/jasmin.sourceforge.net/, click on the Download link and download version 2.2 of Jasmin, which is contained in a zip le named jasmin-2.2.zip. Unzip the zip le, creating a
Cal Poly Pomona - CS - 264
Program 1CS 264 Fall 2006 Craig A. Rich1 Visit the Jasmin home page at http:/jasmin.sourceforge.net/, click on the Download link and download version 2.2 of Jasmin, which is contained in a zip le named jasmin-2.2.zip. Unzip the zip le, creating a
Cal Poly Pomona - CS - 200604
Computer Organization and Assembly ProgrammingComputer Science 264 Fall 2006 Lecture NotesCraig A. Rich California State Polytechnic University, Pomona
Cal Poly Pomona - CS - 264
Computer Organization and Assembly ProgrammingComputer Science 264 Fall 2006 Lecture NotesCraig A. Rich California State Polytechnic University, Pomona
Cal Poly Pomona - CS - 200604
Small.j -.class Small .super java/lang/Object .method public static main([Ljava/lang/String;)V .limit locals 1 .limit stack 3 bipush 100 bipush 9 imul iconst_5 idiv bipush 32 iadd return .end methodSmall.class -ca fe ba be 312 376 272 276 61 a 01 0
UMass (Amherst) - EDUC - 512
Name _ Class _ Topic: Reference to MA Science Framework and/or NSES: Reflective Introduction: Global and Curricular objectives for students: Brief description of lesson (include start, middle, and end) Timing: Time Teacher activityDate _Student a
UMass (Amherst) - EDUC - 512
From petroleum to tomatoesAvi Hofstein; Rachel Mamlok The Science Teacher; Feb 2001; 68, 2; Wilson Education Abstracts pg. 46Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.Reproduced with pe
UMass (Amherst) - EDUC - 512
Mary Annarella Educ 512 November 3, 2003 Lesson Plan #2: Constructing the Need for the Periodic Table Reference to MA Framework: The MA Chemistry Framework devotes an entire learning standard to the broad concept of periodicity: Periodicity of physic
UMass (Amherst) - LIN - 380
Syntax 380L Expletives October 16, 19991 ExpletivesEnglish has two expletive pronouns: there and it. (1) a. There is a Norwegian in the garden. b. It is true that the Dutch are very tall. there and it also have non-expletive usages. (2) a. I saw h
UMass (Amherst) - AY - 9899
Meeting time and location: Wednesday, April 14, 10:30 - 12:00, CC 903Preliminary agenda1. Approval of minutes (available athttp:/www.bio.umass.edu/biology/kunkel/fsucecc/)2. Announcements3. Old business Subcommittee on Mandatory Compute
UMass (Amherst) - AY - 9798
Date: Tue, 11 Mar 1997 16:46:48 -0500 (EST)Subject: Report of Subcommittee on Future Needs0: The &quot;Unmet Needs&quot; subcommittee met on 1-13-97 withD. Chesley, E. Cutting, B. DeLong, B. McCandless &amp; N. Sims inattendance.1: The consensus of the su
UMass (Amherst) - MGT - 314
MGT314 Human Resource Management Spring 2006Professor M. Cecilia McMillenCourse DescriptionIntroduction to the CourseThis course is an introduction to human resource management, and will provide the necessary background for students to understan
UMass (Amherst) - FIN - 745
Mila Getmansky Sherman SOM308C msherman@som.umass.eduFinancial Models SCH-MGMT 745Lab Exercise Topic: Portfolio Model Analysis Part 1 Download monthly prices for the following companies from http:/finance.yahoo.com: Dell Computers, Pfizer Inc, an
UMass (Amherst) - FIN - 301
Name: _ Finance 301 Exam 2 November 18, 2004 Mila Getmansky Sherman The exam is from 2:30 pm to 3:45 pm The exam consists of four questions. Please answer 3 of them. Write down clearly which 3 questions you are answering. If you have time
UMass (Amherst) - SOM - 322
ACCT322 FinancialAccountingII Spring2008 ProfessorRichardAsebrook Office: SOM341 TuesThur10:0011:30&amp;2:304:00 Fri9:3011:30andbyappointment Phone: 5455651 Email: RAsebrook@aol.com Coursedescription: ThecourseisacontinuationofACCT321.Majortopi
UMass (Amherst) - SOM - 631
SOM 631 MANAGERIAL ACCOUNTING Spring 2006Professor Richard Asebrook Office: SOM 341 Mon-Wed 9:00 10:00 and 2:00 4:00 Fri 9:00 11:00 and by appointment 545-5651 (Office) RAsebrook@aol.comPhone: E-mail:Course description: The course focuses on
UMass (Amherst) - SOM - 739
UMass (Amherst) - SOM - 631
SOM 631 MANAGERIAL ACCOUNTING Spring 2008Professor Richard Asebrook Office: SOM 341 Tues-Thur 10:00 11:30 and 2:30 4:00 Fri 9:00 11:00 and by appointment 545-5651 (Office) RAsebrook@aol.comPhone: E-mail:Course description: The course focuses