Digital Logic; 4 inputs if and only if

In summary: They just keep hyping this "space race" and I'm starting to get a little scared.In summary, the goal of this homework statement is to build a minimized circuit using only AND and OR gates that has an output only if any two inputs are true.
  • #1
moogull
86
0

Homework Statement



Using a truth table and a karnaugh map, build a minimized circuit (using only AND and OR gates) to have an output if and only if any two inputs A,B,C,D are true (let true = 1, false = 0).


Homework Equations



karnaugh maps.


The Attempt at a Solution



My only question about this is: will there be an output with more than two inputs being true (1) or will there only be an output when exclusively two inputs are true? Normally "if and only if" means if P then Q, and if Q then P. But, I'm tripping myself up with the language. Obviously, the two situations would have very different circuits.
 
Physics news on Phys.org
  • #2
Yeah, sounds to me like there's a 1 output where there are exactly 2 inputs that are 1

EDIT: OUCH ! ... that is one ugly kmap. I don't think that's going to simplify much at all.
 
  • #3
I know! but I'm not too worried about the kmap, its the logic! For example, if all inputs are true does this mean there is an output or is it exclusive to strictly two inputs?
 
  • #4
O sorry.. I misread your post, my k map seems to have 6 completely isolated outputs, no groups of two whatsoever. I think it comes out to like 14 gates or something :(
 
  • #5
moogull said:
O sorry.. I misread your post, my k map seems to have 6 completely isolated outputs, no groups of two whatsoever. I think it comes out to like 14 gates or something :(

Yep. Like I said, it's ugly
 
  • #6
Phinds, thank you for your input, I do have an unrelated question; I took a look at your profile and saw that you studied EE, did you work as an EE in the past? And if so, were karnaugh maps something that you did a lot? I'm interested in learning more about EE careers (I'm a physics major).
 
  • #7
moogull said:
Phinds, thank you for your input, I do have an unrelated question; I took a look at your profile and saw that you studied EE, did you work as an EE in the past? And if so, were karnaugh maps something that you did a lot? I'm interested in learning more about EE careers (I'm a physics major).

I designed digital computers for NASA for 15 years in the 60's and 70's and actually did occasionally use kmaps, although not all that much. When you are working with circuits that are simple enough to be analysed by a kmap, you pretty much get used to doing them in your head. OTHER than designing simple digital electronics, kmaps are of little use. OH, I guess they are useful for simple symbolic logic problems in the same way they are useful for simple digital circuits.
 
  • #8
That sounds really awesome, I actually really want to work at NASA (I really want a space-related career), and I'm applying for an internship there for the summer. Any tips?
 
  • #9
I haven't been there since 1978 so don't have a clue what might be helpful these days but I'm sure good grades help. I was basically "drafted" by NASA in 1962 as a "co-op" because Ga. Tech where I went to school had a co-op program w/ Goddard Space Flight Center and I got the highest score any Ga. Techie had ever gotten on the Civil Service exam at the time. Since this kept me out of the military after I finished colledge ANd gave me the most exciting job I could imagine, I was in 7th heaven.

By the mid-70's NASA had gone from being the most "can-do" organzation in the history of the world to just another govt agency, with managers playing CYA instead of getting good stuff done, so I left.

EDIT: by the way, I'm SURE there are lots of good folks still there, but it IS just another govt agency now in terms of policy and management style. It was pretty free-wheeling in the 60's.
 
  • #10
That's quite an accomplishment! Well done, but it is a shame that such an amazing organization can go to the dogs. Could I have your opinion on these smaller firms such as SpaceEx? I personally believe that space is a very important part our future and I don't want to watch it crash and burn.
 
  • #11
Just because NASA is just another old line gvt agency doesn't mean there isn't good work getting done there. I got used to it being more like a "startup" so got discouraged as it matured, but that doesn't make it necessarily wrong for you, ESPECIALLY as you start out and really don't have to interact with senior management.

I love it that we have private companies getting into space, but I'm very leery of their economic outlook. As I have posted elsewhere on this forum recently, I don't see ANY space activity other than tourism that has an ROI in anything like the near term. I want very much to be wrong about that because it is ONLY a decent ROI that will ultimately make space activity sustainable.

Look at all the OTHER stuff that governments have to worry about, especially these days.
 
  • #12
very good points, and I can definitely agree with you, I'm just longing for the future where we are (hopefully) out colonizing planets, manufacturing and mining out in space, but yes, that is very far off...

It would be interesting to see the predictions of an ROI on just space tourism, you are thinking much more realistically than I am.
 
  • #13
moogull said:
It would be interesting to see the predictions of an ROI on just space tourism, you are thinking much more realistically than I am.

Richard Branson thinks it will work and although I'm dubious, he's a very bright guy. I'm just not sure the extent to which he's in it just for the excitement and might be kidding himself about profits.

But, he's not the only one getting into it and one hopes they can't all be fooling themselves since space tourism is the ONLY way we're going to have a serious manned space presence in the near term (I'm thinking of the pilots, not the tourists).
 
  • #14
moogull said:

Homework Statement



Using a truth table and a karnaugh map, build a minimized circuit (using only AND and OR gates) to have an output if and only if any two inputs A,B,C,D are true (let true = 1, false = 0).

This task looks like that one - http://purefractalsolutions.com/show.php?a=xgktut/gktut6
 

1. What is digital logic?

Digital logic is the foundation of all digital electronics, including computers and other electronic devices. It is a system of logical operations and rules that govern the processing and manipulation of digital signals.

2. What are the four inputs in digital logic?

The four inputs in digital logic refer to the four variables that can be used in a logical statement: A, B, C, and D. These variables can represent any binary value, either 0 or 1.

3. What does "if and only if" mean in digital logic?

"If and only if" is a logical operator that indicates that both statements in a logical statement must be true for the entire statement to be true. In other words, if the first statement is true, then the second statement must also be true, and vice versa.

4. How is "if and only if" represented in digital logic?

In digital logic, "if and only if" is represented by the double arrow symbol, ⇔ or ↔. This symbol is used to connect two logical statements and indicate that they are equivalent.

5. What are some applications of "if and only if" in digital logic?

"If and only if" is commonly used in digital logic to indicate equality or equivalence between two statements. It is also used in the design of logical circuits and in the construction of computer programs and algorithms.

Similar threads

Replies
5
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
20
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
2
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
14
Views
4K
  • Engineering and Comp Sci Homework Help
Replies
6
Views
17K
  • Engineering and Comp Sci Homework Help
Replies
7
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
5
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
10
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
10
Views
2K
Back
Top