I need help with part 2.
CS 277 – Computer Architecture Digital Logic Project Value: 200 points Due: Monday, November 22 by 8:30 PM This project will have you use the Logisim or Circuitverse simulator to design four different circuits. General Rules I suggest working in a group on this project. You may work in groups of two or three. You can have partners from the other section. You can choose who you wish to work with. You may divide up the work among the group members as you see fit. But note that all team members will receive the same grade, so check each other’s work. Please choose people that you feel you can work with. You may choose to work alone if you wish. Note that there must be no collaboration between groups. Please email me by November 12 with the names of all group members. I would also appreciate such an email from those working alone. For each project, you should turn in any work you did to design the circuit. It includes truth tables you constructed, Karnaugh maps for the simplification, and the formula for the final circuit(s). You should also submit the.circ file from Logisim or a link to an online circuit in Circuitverse or some other system for the completed circuit. Make sure circuits are fully labeled using the textbox feature including the names of all team members. Zip all files into a single compressed folder for submission on Canvas. Only one member of a team needs to submit. Use the names given for each part. Part 1: [40 pts] (Name: part1) You have been hired by a home security company to design and implement a home alarm system. The logic of the system is as follows: once the alarm system has been armed, it is to sound if the front door is opened, the back door is opened or either of two windows is opened (you can assume there are only two windows). Design the necessary circuit using the simulator to implement the situation described above. Your circuit should have five inputs (A = alarm, F = front door, B = back door, W1 = window 1 and W2 = window 2). A = 1 means the system is armed; A = 0 means it is disarmed. F = 1 means the front door is open; F = 0 means it is closed. (Similarly for the back door and the windows.) There should be one output, S. When S = 1 the alarm should sound; S = 0 means the alarm is silent. Please use these letters to indicate the inputs and the output so all projects are consistent. Be VERY careful to get the correct function for your five inputs before simplifying and designing the circuit. You should minimize the circuit. Your inputs and output should be labeled (in the logic file, not by hand). Grading: 10 pts for input setup, 10 pts for working circuit, 10 pts for minimized circuit, 10 pts for output setup (pins) Part 2: [60 pts] (Name: part2) It is the year 2080 and you have been hired by the inhabitants of planet Foobar to create calculators (their technology is a little behind the times). The Foobarians only have two fingers and a thumb on each hand, and therefore, they count in something similar to base 6. Your part of the FBCP (Foobarian Calculator Project) is to design the necessary electronics to display the digits (the Foobarians call them "fidgets") of their number system. In the figure below, you will see the layout your design team has decided to use for the LED display device on the calculators, as well as the symbols that represent the equivalent of our numbers zero through five and the Foobarian symbol for "error." Design the necessary circuit to implement the LED as specified in the figure. Since we only have 6 fidgets to display, and you have decided to use binary numbers to represent values internally, three inputs will suffice. For consistency, please call the inputs X,Y, and Z (with Z representing the rightmost bit in the binary representation of the fidget). Use inputs to set these values. Since 3 inputs yields 8 possible fidgets (and the values 6 and 7 as inputs have no meaning), your circuit should display the Foobarian symbol for error (see figure) when those binary values are input into your circuit. In particular, this implies that you do not have “don’t care” conditions. Your circuit should have an output for each segment of the LED. You should end up with one large circuit that correctly "lights up" the LED when given the fidget value. You should arrange your outputs as the actual FBCP LED display. Unfortunately, the simulator does not have bar-shaped LEDs so you will have to use the output pins arranged in an approximate pattern. Be VERY careful to get the correct function for your inputs before simplifying and designing the circuit. You should minimize the circuit. You should investigate each output function AND its complement to determine the best combination of functions and terms ("best" defined to be minimal number). Your equations should all be left in "sum of products" form (factoring out terms in the equation results in an additional layer of circuits that requires more time to display the fidgets). Grading: 10 points for input/output setup, 10 pts for circuit for each LED Part 3: [50 pts] (Name: part3) Build a circuit that takes four bits as input: W, X, Y, Z. Treat WX as a 2-bit unsigned binary number, and treat YZ as a second 2-bit unsigned binary number. Your circuit should generate the output corresponding to the product of WX and YZ. You will need 4 bits of output for this problem. For example, if your input was 1011, your inputs correspond to 2 and 3. That product is 6, so your output will be 0110. Create a truth table for this problem, show all k-maps and minimizations, and build the corresponding (minimized) circuit. Use XOR, XNOR, NAND, and NOR as appropriate if it reduces the number of gates used. Grading: 10 points for setup, 10 points for each output Part 4: [50 pts] (Name: part 4) Build a circuit that takes four bits as input: W,X,Y,Z. Treat WXYZ as a 4-bit 2s complement number. Your circuit should generate the 4-bit output corresponding to the negative of that number (as represented in 2s complement). For example, if the input is 1011, that corresponds to -5. So your output should be positive 5 or 0101. Note that 1000 is -8, but we would need 5 bits to represent 8 in 2s complement (01000 for a 0 sign bit). So we will treat this input as not possible. Be sure to minimize your circuit accordingly. Create a truth table for this problem, show all k-maps and minimizations, and build the corresponding (minimized) circuit. Use XOR, XNOR, NAND, and NOR as appropriate if it reduces the number of gates used. Grading: 10 points for setup, 10 points for each output