Escolar Documentos
Profissional Documentos
Cultura Documentos
http://pages.cs.wisc.edu/~sohi/cs252/Fall2011/handouts/hwk3_sol.html
Engineering
Fall 2011 Section 1 Instructor Guri Sohi TAs Newsha Ardalani and Rebecca Lam URL: http://www.cs.wisc.edu/~sohi/cs252/Fall2011/
Homework 3 // Due at lecture Mon, Sep 26 Primary contact for this homework: Rebecca Lam [rjlam@cs.wisc.edu] You must do this homework in groups of two. Please write the full name and the student id of each member on every pages and staple multiple pages together.
Problem 1 (2 points)
Computer Science Home Page Home Contact Info Lecture & Notes Schedule Computing Grading Examinations Homework
Write the decimal equivalents for these IEEE floating point numbers a. 00111111111000000000000000000000 1.75 b. 10111110110000000000000000000000 -0.375
Problem 2 (5 points)
Given the logic equation Z = A OR B OR (NOT C) a. Draw the transistor level circuit for Z Z = (A NOR B) NAND C
b. Draw the gate-level circuit for Z using a minimal number of NAND, NOT, and NOR gates
1 of 5
6/28/2012 6:08 PM
http://pages.cs.wisc.edu/~sohi/cs252/Fall2011/handouts/hwk3_sol.html
ABZ 000
2 of 5
6/28/2012 6:08 PM
http://pages.cs.wisc.edu/~sohi/cs252/Fall2011/handouts/hwk3_sol.html
Given the logic equation Z = (A AND B) OR (B AND C) OR (A AND C) a. Fill out the truth table
Problem 5 (4 points)
Given the logic equation Z = (A AND (NOT B)) OR ((NOT A) AND B) a. Fill out the truth table
3 of 5
6/28/2012 6:08 PM
http://pages.cs.wisc.edu/~sohi/cs252/Fall2011/handouts/hwk3_sol.html
b. Is there a logic gate that implements this function? Give reasons for your answer. Yes, the XOR gate.
Problem 6 (2 points)
Given an address size of 10 bits with 16 bits stored at each address, what is the total size of accessible memory(in bytes)? 2048 Bytes
Problem 7 (6 points)
Given the following truth table a. Draw the gate-level circuit using NOT gates and 3-input AND and OR gates.
b. Convert the circuit of part a into a circuit that uses only NAND gates. *Hint: Use DeMorgan's Law We use DeMorgan's Law on the OR gate and get the following:
4 of 5
6/28/2012 6:08 PM
http://pages.cs.wisc.edu/~sohi/cs252/Fall2011/handouts/hwk3_sol.html
Using ASCII 8-bit, null-terminated string patterns, represent each of the characters in the string "Last Question!" using the hexadecimal value. (Only represent the characters between the quotation marks.) 4C 61 73 74 1 51 75 65 73 74 69 6F 6E 21 00
Page last modified: Monday, 26-Sep-2011 11:29:23 CDT Feedback or content questions: send email to sohi@cs.wisc.edu Technical or accessibility issues: lab@cs.wisc.edu Copyright 2002, 2003 The Board of Regents of the University of Wisconsin System.
5 of 5
6/28/2012 6:08 PM