Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Need it in logical expression format which is explained below: Build a circuit that has the same behavior as a NOR gate (i.e. true only
Need it in logical expression format which is explained below:
Build a circuit that has the same behavior as a NOR gate (i.e. true only when all inputs are false) using only AND, OR, and not gates. Here is the truth table for the nor operator: in1 in2 inl nor in2 True True False False True False True False False False False True Save your expression to a text file. See Lab 5 for the format for submitting logical expressions to Gradescope. Translating Logical Circuits to Logical Expressions How do we represent this as a logical expression? Let's work backwards from the output light: oi O Our last gate is an or, so we will write down an or (lotsOfStuffl) or (lotsOfStuff2) We'll use parenthesis to keep things neat. Now, let's look at the left hand side (lotsofStuff1). It also has an or, so we can write it down: ((lotsofStuff3) or (lotsOfStuff4)) or (lotsofStuff2) Let's keep refining our expressions (lotsofStuff3) has an AND at the top, so, we will replace it with: (((lotsofStuff5) and (lotsofstuff6)) or (lotsofStuff4)) or (lotsofStuff2) (lotsofStuff5) is just a wire back to the first input, so, we can write that instead: ((in) and (lotsofStuff6)) or (lotsOfStuff4)) or (lotsofStuff2) and similarly, (lotsofStuff6) is just a wire back to the second input, so, we can write that instead: ((inl and in2) or (lotsofStuff4)) or (lotsofStuff2) That looks better! If look at lotsofStuff4, we see an AND gate with wires back to the first and third inputs: ((inl and in2) or (inl and in3)) or (lotsofStuff2) Similarly, we can replace lotsofstuff2 with: ((inl and in2) or (inl and in3)) or (in2 and in3) Double-check your parentheses to make sure they are balanced (every parenthesis that is opened is also closed and every internal operator is included in a set of parentheses). Save this line to a text file (you can use any text editor, just make sure to save it as plain text, with no formatting): #Name: Your name here #Email: Your email here #Date: 16 October 2017 #Program #23: Computes the majority of 3 inputs out = ((inl and in2) or (inl and in3)) or (in2 and in3) (your expression, preceded by out = ). For the logical expressions homework, you submit just a text file with the logical expressions. The grading script evaluates the expression, testing it with different inputs. See the Programming Problem ListStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started