Docsity

CS 231 Midterm 1 Study Guide for Digital Circuits, Study notes of Computer Architecture and Organization

Toggle sidebar
bg1
Summer 2006 CS 231 Midterm 1 Study Guide
The first midterm exam for CS 231 will be in class on Tuesday, 27 June 2006. The exam
will cover material from the first six lectures (and associated reading) and HW 1-17. The
exam will count for 100 points, or 10% of your final grade for the class.
Topics
General Information
•The goal of this class is to help you learn how to analyze and design basic digital
circuits.
•A key characteristic of digital systems is the manipulation of discrete (as opposed to
continuous) elements of information.
Number systems
•Vocabulary: binary, decimal, hexadecimal, radix point
•Be able to convert between decimal, binary, hexadecimal, and octal numbers.
•Know the algorithms for converting from decimal to another base. To the left of the
radix point: repeatedly divide by the target base and collect the remainders starting at
the radix point and going left. To the right of the radix point: repeatedly multiply by
the target base and collect the integer values starting at the radix point and moving
right.
•If you need to convert between binary and either octal or hexadecimal, know how to
do it by grouping three or four binary digits into one octal or hex digit (or vice versa).
•Addition, subtraction, multiplication in binary and hexadecimal.
Gates
•Truth tables and symbols for these gates: AND, OR, NOT, XOR, NAND, NOR
•All Boolean functions can be implemented as a composition of AND, OR, and NOT.
•Likewise, all Boolean functions can be implemented using only NOR gates, or only
NAND gates, or only {AND, NOT}.
•Important properties of gates: cost, size, propagation delay. These properties are often
directly related to each other (i.e. the smaller a gate is, the cheaper it is, and the shorter
its propagation delay)
Boolean functions and expressions
•There are an infinite number of expressions for any Boolean function
•The truth table for a Boolean function is finite and unique.
•For a function of n variables, there are 2^n distinct combinations of inputs, and
therefore 2^n rows in the truth table.
•Given the description of a digital application, you should be able to identify how many
inputs and outputs there are, and how many rows and columns there should be in the
associated truth table.
pf3
pf4
pf5

Partial preview of the text

Download CS 231 Midterm 1 Study Guide for Digital Circuits and more Study notes Computer Architecture and Organization in PDF only on Docsity!

Summer 2006 CS 231 Midterm 1 Study Guide

The first midterm exam for CS 231 will be in class on Tuesday, 27 June 2006. The exam will cover material from the first six lectures (and associated reading) and HW 1 17. The exam will count for 100 points, or 10% of your final grade for the class.

Topics

General Information

  • The goal of this class is to help you learn how to analyze and design basic digital circuits.
  • A key characteristic of digital systems is the manipulation of discrete (as opposed to continuous) elements of information. Number systems
  • Vocabulary: binary, decimal, hexadecimal, radix point
  • Be able to convert between decimal, binary, hexadecimal, and octal numbers.
  • Know the algorithms for converting from decimal to another base. To the left of the radix point: repeatedly divide by the target base and collect the remainders starting at the radix point and going left. To the right of the radix point: repeatedly multiply by the target base and collect the integer values starting at the radix point and moving right.
  • If you need to convert between binary and either octal or hexadecimal, know how to do it by grouping three or four binary digits into one octal or hex digit (or vice versa).
  • Addition, subtraction, multiplication in binary and hexadecimal. Gates
  • Truth tables and symbols for these gates: AND, OR, NOT, XOR, NAND, NOR
  • All Boolean functions can be implemented as a composition of AND, OR, and NOT.
  • Likewise, all Boolean functions can be implemented using only NOR gates, or only NAND gates, or only {AND, NOT}.
  • Important properties of gates: cost, size, propagation delay. These properties are often directly related to each other (i.e. the smaller a gate is, the cheaper it is, and the shorter its propagation delay) Boolean functions and expressions
  • There are an infinite number of expressions for any Boolean function
  • The truth table for a Boolean function is finite and unique.
  • For a function of n variables, there are 2^n distinct combinations of inputs, and therefore 2^n rows in the truth table.
  • Given the description of a digital application, you should be able to identify how many inputs and outputs there are, and how many rows and columns there should be in the associated truth table.
  • A literal is either a standalone variable or an inverted variable
  • A sum of terms means that the terms are ORed together
  • A product of terms means that the terms are ANDed together
  • A minimal sum of products is an expression that has a minimum number of terms, and those terms have a minimum number of literals)
  • Know the terminology and notation related to minterms and maxterms
  • Know how to express a function and its complement as a sumo fmint erms or product ofm axterms
  • Know how to compute the dual of something. Know that if an equation holds, then the dual of the equation also holds.
  • Know how to compute the complement of a function using DeMorgan's law, or by using the principle of duality. Binary encoding of information Know that it takes ceil(log2(n)) bits to encode n distinct items. You should know the powers of 2 up to 10 or so (i.e. 2^0 = 1, ..., 2^5 = 32, ... , 2^10 = 1024). Circuit Analysis Be able to convert between any of the following
  • circuit diagram
  • Boolean expression
  • truth table Boolean Algebra Be able to use the laws of Boolean algebra to simplify a relatively complicated expression into an expression that has a minimum number of literals.

Tentative format

There may be some minor modifications to the point distribution, but you can count on it being pretty close to this. 10 True/False questions (10 pts) 510 multi ple choice/short answer questions (20 pts) Boolean Algebra simplification (10 pts) Karnaugh maps (20 pts) Combinatorial Circuit Analysis (10 pts) Combinatorial Circuit Design (20 pts) Multiplexers and Decoders (10 pts)

Sample questions

True/False

  • The dual of an expression is equal to the complement of the expression.
  • 100 binary > A2 hexadecimal
  • All Boolean functions can be implemented using only XOR gates.
  • An essential prime implicant can always be expressed as a product of literals. It is not my intention for these questions to be tricky. You should plan to answer them quickly. Multiple choice / short answer
  • Perform the following arithmetic operations: (addition, subtraction, multiplication in binary or hex)
  • Let f(x,y,z) = xy + y'z. Which of the following are true? (Circle all that apply.) And then the choices would be expressions that are in sumo fm interm, producto f maxterm, sum of products, product of sums, or circuit forms.
  • How many bits are required to encode all of the integers on the interval [0,99]? Boolean algebra simplification I'll give you a messy expression and ask you to simplify it using the laws of Boolean algebra. I will give you a list of the axioms and other rules that you can use. The rules that people tend to have the most problems with are (x + y)(x + z) = x + yz, and the consensus theorem: xy + x'z + yz = xy + x'z. You should spend a few minutes to just think about each of the rules and convince yourself that they are true. This is the kind of problem where you could almost certainly get the right answer if you had all day. But you will want to have practiced enough that you can do it quickly, so that you can spend more time on other problems. You should know that I don't like to give partial credit for these problems, because it is difficult to decide how much partial credit to give. So PLEASE do it 100% correctly.

Karnaugh Maps I will probably give you two Kma p problems, one with don't care terms and one without. I may give you a map with the 0s, 1s, and Xs already on it, or I may give you a function in another form (expression, circuit, truth table) and ask you to fill in the map yourself. I may ask you to list all of the prime implicants and/or essential prime implicants. I will definitely ask you to give the minimal sum of products expression. I may ask you whether there is a unique minimal SOP for the function. You will want to be able to quickly identify the expressions that correspond to the prime implicants you have identified on the map. Circuit Analysis I will give you a circuit and ask you to convert it to a Boolean expression and/or a truth table. Multiplexers and Decoders

  • Implement this function using a 3to 8 d ecoder and an OR gate.
  • Implement this function using a 4to 1 mul tiplexer and no other gates.
  • Implement a 2to 4 de coder using only NAND gates. Circuit Design These problems will be the emphasis of the exam and will require the most creativity and disciplined thinking on your part. Most likely, these problems will seem the hardest and take the most time.
  • Something along the lines of 3.113.19 in the book.
  • Implement a circuit that accepts as input two two bit numbers A and B and outputs 1 if and only if A is greater than B.
  • Implement a circuit that accepts as input two two bit numbers and outputs the product A x B.
  • Implement a circuit that accepts an binary encoded decimal value n and outputs n+ 2.
  • Something along the lines of the Braille example we did in class.
  • Something to do with multise gment displays (i.e., the LCD digits on your watch). Remember, you need one function for each segment of the display, and the number of inputs depends on how many different things you need to encode.