Rules: Closed book and notes. Any type of calculator is allowed (but not necessary). Show all your work for full credit, using the standard methods. Please draw and write NEATLY (If I cannot read it, I must mark it WRONG). Do all work and put all answers on YOUR paper, not this sheet. Give a single answer (enclosed in a box if it's a number, equation, or expression) to each question. Keep your work and the associated answer together, and carefully label them with the problem number and part number. Use only one side of the paper. Use the standard conventions and definitions that have been discussed in class.
1. [20 pts] Analyze this FSM circuit and supply the results as indicated below. Use the order "Q1 Q2" for the state codes, "S T" for the inputs, and "Y Z" for the outputs. Make it clear which answers go with which parts (a, b, c, or d).

2. [10 pts] Draw a ladder logic diagram for a PLC that will implement this function. As always for PLCs, "on" means a contact is closed and "off" means a contact is open. Output Y1 will be on when B is on and either A is on or C is off. Output Y2 will be on when D is on, E is off, and F is on. Output Z1 will be on when either Y1 or Y2 is on.
3. [30 pts] Design a combinational logic circuit that performs the following function, and give the results specified in parts (a) and (b) below. All values are 7-bit unsigned binary numbers, with bits labeled 6 (MSB) down to 0 (LSB). The output Z is the maximum of 2 values, X and S, where X is an input and S is an internal signal which is calculated as the 7-bit sum of inputs A and B.
4. [25 pts] After studying the description of a logic problem involving 4 inputs (A,B,C,D), a TTU digital engineer determined that the function F should be a logic one whenever this equation is true:
(A + B + C + D')' + A' · B · C' · D + ( (A' + B + D) · (B' + C + D') )' + A' · B' · (C' + C · D') = 1
She also decided that the value of F does not matter whenever this equation is true:
A' + B + D' = 0
Complete her design by giving the following results. Be sure to clearly show your work in the order that you performed it.
5. [15 pts] You must show all your calculation steps, by hand, for full credit on this problem.