CSC103 Homework 2 2012

From dftwiki3
Revision as of 09:47, 9 February 2012 by Thiebaut (talk | contribs) (moved CSC103 Homework to CSC103 Homework 2 2012)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

--D. Thiebaut 08:58, 9 February 2012 (EST)



This homework is due in class, on 2/15/12. You can work on it in pairs, in which case you should put both names on the work you turn in. If you work in pairs, you must do the work together, i.e. meet one or several time to accomplish all the work with your partner.

Logic Design Problem

CSC103SimpleSchematics.png



What is the truth table of this circuit? You can figure out the answer in several ways. One is to analyze the circuit "by hand" on a piece of paper and figure out the value of the different signals at the output of the different gates for all possible combinations of the inputs. The other one, longer but fool-proof, is to use the logic simulator we used in class, "wire-up" the circuit, and test its output for all combinations of the inputs.


Word Problem to Schematics

Here is a word problem. Design a circuit with boolean gates that has 3 inputs and 1 output. The inputs are called window1 (or w1 if you prefer a shorter name), window2 (or w2), and rain (or r). The output is called alarm (or a). The circuit should set alarm to 1 whenever the signal r is 1 (it's raining), and either window1 or window2 are 1 (i.e. one of them is open).
Go through the process we went through in class on Wednesday, starting with the word problem, then creating the truth table, and from that generating the boolean equation for alarm, and finally designing the circuit.
Wire up the circuit in the logic simulator. Verify that alarm is 1 only when it rains and one of the windows (or both) is open.
Take a screen capture of your logic circuit in the simulator and include it with the work you turn in.
Your answer to this problem should be:

  • the truth table for alarm
  • the boolean equation
  • the logic diagram, captured on the screen.