


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



Detailed Lecture Notes for CIT 120 – Week 3: Computer Arithmetic Duration: 4 Hours Topic: Computer Arithmetic (Addition, Multiplication, Booth’s Algorithm) Lab Activity: Hands-on Arithmetic Operations
Objective: Link Week 2 (Data Representation) to Week 3. Quick Quiz (5 mins): o Convert decimal 15 to binary and hexadecimal. o What is the IEEE 754 representation of 0.75? Key Points: o Explain how binary arithmetic underpins ALU operations in CPUs (ties to Week 4). o Highlight real-world applications: CPU performance, gaming hardware, cryptography.
Objective: Master binary addition and carry propagation. Lecture (15 mins): o Rules of binary
o Overflow detection in fixed-bit systems.
Activity 1 – Pair Work (20 mins):
o Discuss overflow in 4-bit systems. Live Demo (10 mins): o Use an online binary calculator (e.g., RapidTables) to verify answers. Q&A (15 mins): o Address common errors (e.g., missing carries).
Objective: Perform binary multiplication and compare it to decimal. Lecture (15 mins): o Method: Shift-and-add (similar to decimal multiplication).
o Limitations: Inefficient for large numbers/signed integers. Activity 2 – Group Competition (25 mins):
small prize. Discussion (10 mins): o Why is binary multiplication time-consuming? How do CPUs optimize this?
Objective: Apply Booth’s Algorithm for signed integer multiplication. Lecture (20 mins): o Why Booth’s? Efficient for signed numbers, reduces multiplication steps. o Algorithm Steps:
Step-by-Step Demo (25 mins):
Stallings Textbook: Chapter 4 (Computer Arithmetic). Patterson & Hennessy: Section 3.3 (ALU Design). End of Session: Remind students to complete the post-lab reflection (e.g., "What surprised you about Booth’s Algorithm?").