CPSC 121: Models of Computation Lab #2: Building Circuits

Similar documents
CPE 200L LABORATORY 2: DIGITAL LOGIC CIRCUITS BREADBOARD IMPLEMENTATION UNIVERSITY OF NEVADA, LAS VEGAS GOALS:

Your Summer Holiday Resource Pack: English

LAERSKOOL RANDHART ENGLISH GRADE 5 DEMARCATION FOR EXAM PAPER 2

Before Reading. Introduce Everyday Words. Use the following steps to introduce students to Nature Walk.

ECE 274 Digital Logic. Digital Design. Sequential Logic Design Controller Design: Laser Timer Example

Chapter 1: Introduction

SeSSION 9. This session is adapted from the work of Dr.Gary O Reilly, UCD. Session 9 Thinking Straight Page 1

ECE 274 Digital Logic. Digital Design. Datapath Components Registers. Datapath Components Register with Parallel Load

DRAFT. Vocal Music AOS 2 WB 3. Purcell: Music for a While. Section A: Musical contexts. How is this mood achieved through the following?

Unit 10: I don t feel very well

walking. Rhythm is one P-.bythm is as Rhythm is built into our pitch, possibly even more so. heartbeats, or as fundamental to mu-

Application Support. Product Information. Omron STI. Support Engineers are available at our USA headquarters from

The Official IDENTITY SYSTEM. A Manual Concerning Graphic Standards and Proper Implementation. As developed and established by the

Lecture 3: Circuits & Layout

What do these sentences describe? Write P for plants, A for animals or B for both next to each sentence below. They ve got roots.

THE MOSSAT COLLECTION BOOK SIX

Animals. Adventures in Reading: Family Literacy Bags from Reading Rockets

VISUAL IDENTITY GUIDE

Day care centres (ages 3 to 5) Kindergarten (ages 4 to 5) taken part in a fire drill in her building and started to beep.

Outline. Circuits & Layout. CMOS VLSI Design

Pitch I. I. Lesson 1 : Staff

PRACTICE FINAL EXAM T T. Music Theory II (MUT 1112) w. Name: Instructor:

1 --FORMAT FOR CITATIONS & DOCUMENTATION-- ( ) YOU MUST CITE A SOURCE EVEN IF YOU PUT INFORMATION INTO YOUR OWN WORDS!

Introduction. APPLICATION NOTE 712 DS80C400 Ethernet Drivers. Jun 06, 2003

Synchronising Word Problem for DFAs

Big Adventures. Why might you like to have an adventure? What kind of adventures might you enjoy?

Applications to Transistors

CMST 220 PUBLIC SPEAKING

SEA SHEET MUSIC. Grace. low voice and piano. Elizabeth Alexander. Seafarer Press

SEA SHEET MUSIC. Grace. medium voice and piano. Elizabeth Alexander. Seafarer Press

Chapter 3: Sequential Logic Design -- Controllers

SEA SHEET MUSIC. Grace. high voice and piano. Elizabeth Alexander. Seafarer Press

Reproducible music for 3, 4 or 5 octaves handbells or handchimes. by Tammy Waldrop. Contents. Performance Suggestions... 3

LOGICAL FOUNDATION OF MUSIC

GRABLINKTM. FullTM. - DualBaseTM. - BaseTM. GRABLINK Full TM. GRABLINK DualBase TM. GRABLINK Base TM

Operation Manual. Cutting Machine Product Code: 891-Z01

LOGOMANUAL. guidelines how to use Singing Rock logotype. Version 1.5 English. Lukáš Matěja

Homework 1. Homework 1: Measure T CK-Q delay

Corporate Logo Guidelines

Contents 2. Notations Used in This Guide 6. Introduction to Your Projector 7. Using Basic Projector Features 28. Setting Up the Projector 15

Engineer To Engineer Note

Chapter 5. Synchronous Sequential Logic. Outlines

Safety Relay Unit G9SB

A Guilder And A Half

Appendix A. Quarter-Tone Note Names

TACT2015 Staff ReCertification Test 2015 Please write ONLY on the answer sheet

style type="text/css".wpb_animate_when_almost_visible { opacity: 1; }/style

CPSC 121: Models of Computation Lab #5: Flip-Flops and Frequency Division

Star. Catch a. How. Teachers Pack. A starry moonlit adventure. Based on the beautiful picture book by Oliver Jeffers

Can you believe your eyes?

Explosion protected add-on thermostat

to London Waterloo Train times 20 May to 6 October 2018 Includes Great Western Railway services updated from June 2018 London Waterloo

Sequencer devices. Philips Semiconductors Programmable Logic Devices

lookbook Higher Education

4 Food, glorious food!

Contents 2. Notations Used in This Guide 7. Introduction to Your Projector 8. Using Basic Projector Features 34. Setting Up the Projector 17

CPSC 121: Models of Computation Lab #5: Flip-Flops and Frequency Division

DIGITAL ELECTRONICS: LOGIC AND CLOCKS

The wonders of the mind. The way we are. Making a difference. Around the world. Module 1. Module 2. Module 3. Module 4

Outline. Annual Sales. A Brief History. Transistor Types. Invention of the Transistor. Lecture 1: Circuits & Layout. Introduction to CMOS VLSI Design

WE SERIES DIRECTIONAL CONTROL VALVES

A New Concept of Providing Telemetry Data in Real Time

Panel-mounted Thermostats

DIGITAL EFFECTS MODULE OWNER'S MANUAL

Grammar & vocabulary revision 1

PIRELLI BRANDBOOK 4. IDENTITY DESIGN

Pro Series White Toner and Neon Range

4.1* Combinational logic circuits implement logic functions using a combination of logic gates. Recall

ASSEMBLING. the. ECEbot. Printed Circuit Board: Part Three. Due Date. The Part Three assembly steps must be completed prior to:

User's Guide. Downloaded from

VOCAL MUSIC I * * K-5. Red Oak Community School District Vocal Music Education. Vocal Music Program Standards and Benchmarks

Contents 2. Notations Used in This Guide 6. Introduction to Your Projector 7. Using Basic Projector Features 30. Setting Up the Projector 17

The Big Wide World. spices. harbour

Notations Used in This Guide

Contents. English. English. Your remote control 2

Contents 2. Notations Used in This Guide 6. Introduction to Your Projector 7. Using Basic Projector Features 29. Setting Up the Projector 16

Notations Used in This Guide

Contents 2. Notations Used in This Guide 6. Introduction to Your Projector 7. Using Basic Projector Features 29. Setting Up the Projector 16

Nice to meet you ENTRY TEST. Greetings and introductions. Countries and nationalities. The verb be. Complete the dialogue with the words in the box.

Brothers. The Iowa Review. Bret Lott. Volume 19 Issue 1 Winter. Article 35

Answers to Exercise 3.3 (p. 76)

Standard Databases for Recognition of Handwritten Digits, Numerical Strings, Legal Amounts, Letters and Dates in Farsi Language

92.507/1. EYR 203, 207: novaflex universal controller. Sauter Systems

Avaya P460. Quick Start Guide. Important Information. Unpack the Chassis. Position the Chassis. Install the Supervisor Module and PSU

Installation Instruction

Mapping Arbitrary Logic Functions into Synchronous Embedded Memories For Area Reduction on FPGAs

Digital Fundamentals. Lab 5 Latches & Flip-Flops CETT Name: Date:

Essential Question: How can you use transformations of a parent square root function to graph. Explore Graphing and Analyzing the Parent

DIGITAL TECHNICS. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute

Interactions of Folk Melody and Transformational (Dis)continuities in Chen Yi s Ba Ban

When it comes to creating music, composers like to push the limits. Get ready to hear how!

Safety Relay Unit G9SB

TAP 413-1: Deflecting electron beams in a magnetic field

Strange but true! Vocabulary 1 Prepositions. Reading 1. Listen and repeat the prepositions. their superstitions? down

A Proposed Keystream Generator Based on LFSRs. Adel M. Salman Baghdad College for Economics Sciences

NEW MEXICO STATE UNIVERSITY Electrical and Computer Engineering Department. EE162 Digital Circuit Design Fall Lab 5: Latches & Flip-Flops

The Media. Business. Sports. 1 Correct the labels on the webpage. 2 Look at Activity 1 again and complete. Rob: That s right. New Role for Hermione.

Efficient Building Blocks for Reversible Sequential

NEW CUTTING ELEMENTARY. with mini-dictionary STUDENTS BOOK. with frances eales

Predicted Movie Rankings: Mixture of Multinomials with Features CS229 Project Final Report 12/14/2006

Transcription:

CSC 121: Models of Computti L #2: Building Circuits Ojectives In this l, ou will get more eperience with phsicl logic circuits using The Mgic Bo. You will lso get our first eposure to Logisim, tool for simulting circuits. Aout mrking The ls in CS 121 hve stndrd mrking scheme. All ls re out of 10. Two of the mrks re for the pre-l. Si mrks re for the items mrked TODO: so, if ou complete the pre-l nd the sic l ctivities, ou will get 80%. To get 100%, there re further nlsis questis, denoted with TODO (further nlsis):. You cn dditill get us mrk for the Chllenge rolem. 1 re-l Like lst week, there re four pre-l questis for this l, which re to prepre ou for this week s l. In l this week, our TA will provide ou with two ICs. The lel oth ICs will e covered, ut the notch is visile (so ou know the orientti to plce them our redord!). One of these chips is he inverter, chip with si inverters. The other is e of: qud 2-input NAND gte, qud 2-input AND gte, qud 2-input OR gte, or qud 2-input XOR gte. Your jo is to identif these chips. Before getting to the l, ou ll need pln. Here re some hints to get ou strted. Rered Secti 4, Appendi B, nd Secti 2.1 s entr the proe in The Mgic Bo User s Mnul. Think out how ou could wire up the two mster gtes ou hve so tht ou could see which e is the inverter. And ce ou ve found the inverter, think out how ou could wire up the other gte to tell wht sort of gte it is. 1. TODO (pre-l): How will ou determine which of the two chips is the he inverter? Sketch our wiring pln nd the steps ou ll tke. 2. TODO (pre-l): Once ou ve de tht, how will ou determine which e of the qud chips ou hve? Agin, sketch our wiring pln nd our steps. 1

3. TODO (pre-l): If ou could revel the chips lels, how would ou verif our nswers? (We re looking for strightforwrd nswer here; no tricks. Think out wht ou hve een doing in clss!) 4. TODO (pre-l): Wh didn t we include the qud 2-input NOR gte s e of the possile qud chips? 2 Eperimenting with n Unknown Chip As ou know from the pre-l, our TA will e giving ou the two mster chips. Using our pln, wire up nd use e chip to test which chip is our inverter. Then, wire up nd use secd our qud chip to determine which of the quds it is. You hve room to keep oth circuits our redord t the sme time; so, keep them oth to demstrte to our TA s ou finish. Rememer to use pproprite power nd ground cnectis, or ou m dmge the ICs! TODO: Which e ws the he inverter? How did ou figure it out? TODO: Which qud chip did ou hve? How did ou figure it out? 3 rcticing Deugging with The Mgic Bo During this term, ou will e uilding more nd more complicted circuits. Deugging is n importnt skill in doing this, e ou will find vitl with more comple wiring. An importnt w to void lot of deugging is to test incrementll: rther thn uild everthing t ce nd then test, uild porti, test it, move to the net porti, test it, nd so. But even when ou re testing smller compent, deugging will still e necessr. Some comm issues re: improperl powering or grounding n IC 2

using the wrg tpe of IC roken pin n IC plcing wire in the wrg hole of the redord, or putting the IC in the wrg spot For this secti, ou nd our prtner re to find nother pir with Mgic Bo. On our Mgic Bo, pln to wire (A B) (C D) ut d t do it ectl. (An emple of doing this is in Appendi B) Intentill mke two errors in the circuit, like the es discussed ove. One cvet, however: d t intentill destro n of the l equipment. So, do not fr chips powering the ground pins, nor rek n of the pins the ICs! When oth groups re de, swp Mgic Boes. TODO: Deug ech other s circuits. Wht were the two errors in it? You re encourged to refer to the Mgic Bo User s Mnul nd the Mgic Bo Deugging Guide, oth of which our TA cn provide in pper cop. 4 Logisim 4.1 Your first simulti Log in to the Linu server using computer in the l. First, ou wnt to open up terminl (lso known s commnd prompt ). Find n ic tht looks like this, nd click it: If ou cnnot find such n ic, open up the min menu, nd find n entr clled Terminl. Once ou hve terminl open, tpe logisim nd hit the enter ke. This will run the progrm Logisim, which is the circuit simultor we will use in this clss. As seen in the imge elow, open the Help menu nd select Tutoril. 3

You will now get screen with the tutoril. It egins like this: TODO: Follow nd complete Steps 0 to 4 of the Logisim Tutoril. completed n XOR circuit. Show it to our TA when ou re de. B the end, ou will hve 4.2 A riorit Chin Circuit design is de much like softwre design. In code, we rek our progrms up into functis or methods: these cn then ct s self-ctined modules, which cn e reused esil. As such, modulrit is principle of good circuit design. Modules in Logisim re represented rectngles. Downlod the file priorit.circ from the CSC 121 wesite, nd open it in Logisim (File Open). You will see progrm tht hs si repeting, identicl modules wired up in chin: 4

Our gol with this ctivit is to edit the module to implement wht is clled priorit chin. In priorit chin, the l light tht will e turned is t the first module where is. This module of the chin is sid to hve the priorit. (We s tht stges to the left hve higher priorit thn stges to the right.) The chin lights the LED for the leftmost switch tht is in the positi, while ll other LEDs remin. Here is n emple: We see in this imge tht the first module with = TRUE hs illuminted, ut lter modules with do not. Also, note tht the first of the circuit is cnected to ground (FALSE). As such, we wnt circuit which hs the properties: is l if is nd is. is l if is or is. TODO: Fill in the module in our Logisim circuit so tht min hs working priorit chin like in the emple shown ove. To edit the module, right-click in the upper left-hnd menu (underneth min), nd select Edit Circuit Lout. You will get circuit like this: Once ou ve filled in this circuit, switch ck to the min module right-clicking it in the upper left-hnd menu nd selecting Edit Circuit Lout. Verif the priorit chin works s ou epected, nd then show it to our TA. 5

5 Further Anlsis TODO (further nlsis): We just showed ou circuit tht is roken up into modules nd told ou it ws good design. Wh do ou think tht is? Also, in this circuit, we fed outputs of the module into inputs of other modules hve ou seen nthing nlogous to this in progrmming? If so, wht? TODO (further nlsis): Getting to know our clssmtes will help ou succeed in this course s such, ou should lern their nmes. For this nlsis mrk, ou should e le to point out five of our clssmtes to our TA (without n written ids), identif their nmes, nd something out them. 6 End of L Surve TODO: To help us improve these ls oth this term nd for future erings, complete the surve t http://www.tinurl.com/cs121ls. 7 Chllenge rolem Chllenge prolems re optil, nd re worth us mrk. If ou hve time in the l, ou should complete this eercise. TODO (chllenge): In the Logisim tutoril, ou mde circuit tht outputs n XOR vlue. Tht circuit ws mde using OR, AND nd NOT. Now mke circuit which outputs n XOR vlue using l NAND gtes. A Mrking Scheme All ls re out of ten mrks, with two mrks for pre-ls, nd eight mrks for in-l work. In more detil: Two mrks - re-l questis 6

Five mrks - In-l questis. Two mrks re for Secti 2. One is for Secti 3. Two re for Secti 4. Two mrks - Further nlsis. TAs m t their discreti wrd e us mrk, such s for completing the chllenge prolem. It is epected tht most students to chieve 6-8. If ou feel ou re heding for 0-4, get immedite help from the TAs! B Wiring Digrm for Smple Circuit Imgine we were designing circuit to compute (A B) (C D), we might use 74LS32 IC (two OR gtes, using pins 1 3 nd 11 13) nd 74LS08 IC (e AND gte, using pins 1 3). To prepre for wiring the phsicl circuit, we could mrk up digrm s in Figure 1. A B 74LS32 1 3 2 1 (A OR B) AND (C OR D) 3 C 12 2 74LS08 D 13 11 74LS32 Figure 1: A circuit computing (A B) (C D), leled with IC prt nd pin numers. As we wire the circuit, our first wired gte might look like Figure 2. In the figure, we hve wired up the OR gte for C D ccording to Figure 1: 74LS32 IC wired (1) to power with red wire (pin 14 in the upper-right, using the colour reserved for power); (2) to ground with lck wire (pin 7 in the lower-left, using the colour reserved for ground); nd (3) to the inputs nd output with green nd ellow wires (pins 11 13 in the upper right, using ritrr colours tht distinguish inputs from outputs). This demstrtes the kind of creful circuit uilding methods tht cn mke our work with hrdwre smoother. Figure 2: A redord with the C D gte of (A B) (C D) wired ccording to Figure 1. 7