Computer Sciences Dept.

CS/ECE 252 Introduction to Computer Engineering

Fall 2012 Section 3
Instructor Guri Sohi
TAs Pradip Vallathol and Junaid Khalid

URL: http://www.cs.wisc.edu/~sohi/cs252/Fall2012/

Homework 3 [Due at lecture on Wed,Oct 3]

Primary contact for this homework: Junaid Khalid [junaid AT cs D0T wisc D0T edu ]

You must do this homework in groups of two. Please write the full name and the student id of each member on every page and staple multiple pages together.

Problem 1 (2 points)

Convert the following string of bits into ASCII code.

  1. 01010000 01110010 01101111 01100010 01101100 01100101 01101101 00100000 00110001

Problem 2 (3 points)

Using 8-bit ASCII, represent the following null-terminated string in both binary and hexadecimal (Only convert the characters between the quotation marks.)

  1. "HomeWork 3"

Problem 3 (5 points)


Draw a logic circuit which corresponds to the following logic expression. Your circuit can only use 2-input AND, 2-input OR, and NOT gates.
  1. (NOT(A OR B )) AND (NOT(B) OR NOT(C)) AND (NOT(NOT(D) OR E ))

Problem 4 (5 points)

Given the logic equation Z = (A AND B) OR C

  1. Fill out the truth table for Z
  2. Draw the transistor level circuit for Z using minimum number of transistor (Hint: Use DeMorgan's Law)

Problem 5 (5 points)

Given the following transistor level circuit:

  1. Fill out the truth table for Z in terms of A and B
  2. Draw the gate level circuit for Z in terms of A and B

Problem 6 (5 points)

Given the logic circuit below

  1. Fill in the truth table for the output value Z
  2. Express Z in terms of A, B and C

Problem 7 (5 points)

Given the following truth table for function Z and inputs A, B, and C:

A B C Z
0 0 0 0
0 0 1 0
0 1 0 1
0 1 1 0
1 0 0 0
1 0 1 1
1 1 0 0
1 1 1 1

  1. Draw the gate-level circuit using NOT, 3-input AND and OR gates.
  2. Draw the gate-level circuit using NOT and NAND gates.

 
Computer Sciences | UW Home