lab2

.docx

School

San Jose State University *

*We aren’t endorsed by this school

Course

147

Subject

Electrical Engineering

Date

Apr 3, 2024

Type

docx

Pages

4

Uploaded by ConstableOwlPerson1043

Lab: rock paper scissor Fall 2023 Install Logisim o http://www.cburch.com/logisim/download.html Logisim Tutorial o http://www.cburch.com/logisim/docs/2.1.0/guide/tutorial/index.html Design a rock‐paper‐scissor digital game. There are four inputs A, B, C, D and 3 outputs N, P1, P2. The input pair (A,B) encodes selection of player 1 (related to output P1). The input pair (C,D) encodes selection of player 2 (related to output P2)  The encoding of selection is as following. o If any player’s setting is ‘00’ output N is 0, P1 is 0 and P2 is 0. o For any other setting N is 1, and P1, P2 are 0 or 1 depending on who is winning. o If it is a draw, then both P1 and P2 are 1. Show all the design steps. o You should use multi-input basic logic gates (i.e., AND, OR, INV) only (no decoder or multiplexer) o [Review of rules: paper beats rock, rock beats scissor, scissor beats paper] Encoding Selection 00  None 01  Rock 10  Paper 11  Scissor 1. (5pt) Finish the following Truth Table for N, P1, and P2. Truth Table   A B C D N P1 P2 m0 0 0 0 0       m1 0 0 0 1       m2 0 0 1 0       m3 0 0 1 1       m4 0 1 0 0       m5 0 1 0 1       m6 0 1 1 0       m7 0 1 1 1       m8 1 0 0 0       m9 1 0 0 1      
m10 1 0 1 0       m11 1 0 1 1       m12 1 1 0 0       m13 1 1 0 1       m14 1 1 1 0       m15 1 1 1 1       The following are the logic equation, K-Map, and circuit diagram for the output N. Do the same work for the other two output function P1 and P2. o K-Map o Logic equation in POS from K-Map o Include the circuit design as a .circ file in the submission. You must use Logisim tool to design the circuits. o Circuit diagram in .png format taken from the .circ file above 1.K-Map for N=(5,6,7,9,10,11,13,14,15) AB CD 00 01 11 10 00 0 1 3 2 01 4         5 7 1   6 11 12        13        15      14 10 8          9 X       11      10 2. (4pt) Logic Equation N = BD + BC + AD + AC (SOP) = B(D+C) + A(D+C) = (A+B)(C+D) (POS) 3. (4pt) Circuit diagram 4. (4pt) Submit Logisim circuit design file. (See the attached file paper.scissor.rock.N.circ_ 1
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help