Overclockers Australia Forums
OCAU News - Wiki - QuickLinks - Pix - Sponsors  

Go Back   Overclockers Australia Forums > Specific Hardware Topics > Electronics & Electrics

Notices


Sign up for a free OCAU account and this ad will go away!
Search our forums with Google:
Reply
 
Thread Tools
Old 30th May 2011, 2:25 PM   #1
Maverik Thread Starter
Member
 
Join Date: May 2011
Posts: 15
Default XOR circuit

Hey,

Couldn't really find a forum for this question, so I figured that this would be the best place.

The following circuit computes A XOR B, but some information has been omitted from the diagram. Each
of the 8 transistors needs to be connected to either A, or to B, or to A^-1, or to B^-1.


Click to view full size!


I think I have a rough idea of what's happening, but if someone could give some advice, or point me somewhere (my searches turned up nothing) I'd appreciate it.

Cheers,

Mav
Maverik is offline   Reply With Quote

Join OCAU to remove this ad!
Old 30th May 2011, 3:14 PM   #2
darren42
Member
 
darren42's Avatar
 
Join Date: Aug 2010
Location: Fairfield Heights, Sydney
Posts: 139
Default

I am not sure what specific information about the circuit that you are after

I found a similar circuit here http://www.ece.mtu.edu/faculty/goel/...S-Circuits.pdf on page 22. the only difference is the type of mosfets used and the different inputs to the base of each mosfet.

Have a read of the entire pdf, it should give you a good idea about how mosfets work and in the end how the XOR circuit operates
__________________
Main: i7 920@4.03GHz|NH-U12P-SE2|GA-X58-UD5|6GB DDR3 Corsair|Gigabyte 5850 1GB|1TB WD Black-1TB Samsung-500GB WD-5x 2TB WD Green|Lian-Li PC-V2010
LAN: i7 2600K@4.7GHz|H100|GA-P67A-UD7-B3|8GB DDR3 G-Skill|Gigabyte 6950 2GB|1TB WD Black-5x 2TB WD Green|BitFenix Colossus
HTPC: E6600|P5G43T-M PRO|4GB DDR3|BFG 780GTX 512MB|300GB WD-320GB WD-1.5TB Segate|Silverstone LC20M

Last edited by darren42; 30th May 2011 at 4:05 PM.
darren42 is offline   Reply With Quote
Old 30th May 2011, 5:31 PM   #3
zero_velocity
Member
 
zero_velocity's Avatar
 
Join Date: Sep 2010
Location: Gold Coast
Posts: 1,501
Default

Ok so from how I understand this, all you need to do is get an input from A and B, then you also want to make a device that inverts the input, so when A = 5V, the output will be 0V, this can be done with something like this;
Code:
                       5V
                     __| 
               ___ || NPN J-FET
              |    ||__
              |        |
    Input ----|        |--------- Output
              |      __|
              |___ || PNP J-FET
                   ||__
                        |
                      Ground
This will inverse the input (Im not sure which way the transistors are placed, you may need to swap them around). and allow a value of A-1 to be created from A, and this will also have to be repeated for B to produce B-1. -This may seem irrelevant to the question, but you cant just not connect up one line.

Unfortunately without knowing if the transistors in the diagram are NPN or PNP types its impossible to deduce anything from it.
__________________
Steam OCAU Natural Selection 2
Quote:
Originally Posted by Agg View Post
I genuinely don't think anything about you at all, nor do I think you are some huge problem on the forums, nor do I particularly care if you feel insulted.
-----WTB Rackmount Equipment-----

Last edited by zero_velocity; 30th May 2011 at 5:41 PM.
zero_velocity is offline   Reply With Quote
Old 30th May 2011, 6:46 PM   #4
SLATYE
SLATYE, not SLAYTE
 
SLATYE's Avatar
 
Join Date: Nov 2002
Location: Canberra
Posts: 25,776
Default

I think they're just meant to be generic transistors, so that when the associated input (eg. "A", "!B", etc) is on the transistor passes current, and when the associated input is off the transistor blocks all current.

It's pretty simple to understand. Draw the truth table for a 2-input XOR gate. That'll have four lines. Each line corresponds to one of the 'arms' in your diagram.
__________________
Main system: Phenom II X4 920 | 8GB (4x 2GB) DDR2-800 | Gigabyte M57SLI-S4 v2.0 | Leadtek Geforce 9600GSO 384MB | Enermax Modu82+ 525W | 1TB Hitachi HDD | 3.5" + 5.25" FDD
Laptop: Compal EL80 | C2D T7200 | 320GB Fujistu HDD | 2GB DDR2-667 | GF Go 7600
SLATYE is offline   Reply With Quote
Old 30th May 2011, 7:39 PM   #5
Maverik Thread Starter
Member
 
Join Date: May 2011
Posts: 15
Default

Ah, thanks for your help everyone! Sorry I wasn't specific about what the question was asking, that's all the information I was given. Thanks slatye.
Maverik is offline   Reply With Quote
Old 31st May 2011, 9:22 AM   #6
darren42
Member
 
darren42's Avatar
 
Join Date: Aug 2010
Location: Fairfield Heights, Sydney
Posts: 139
Default

Quote:
Originally Posted by zero_velocity View Post
Unfortunately without knowing if the transistors in the diagram are NPN or PNP types its impossible to deduce anything from it.
The circuit symbol used to represent the mosfets mean that they would be the n-type. this means that when the input to the base is high, current can flow between the drain and the source.
__________________
Main: i7 920@4.03GHz|NH-U12P-SE2|GA-X58-UD5|6GB DDR3 Corsair|Gigabyte 5850 1GB|1TB WD Black-1TB Samsung-500GB WD-5x 2TB WD Green|Lian-Li PC-V2010
LAN: i7 2600K@4.7GHz|H100|GA-P67A-UD7-B3|8GB DDR3 G-Skill|Gigabyte 6950 2GB|1TB WD Black-5x 2TB WD Green|BitFenix Colossus
HTPC: E6600|P5G43T-M PRO|4GB DDR3|BFG 780GTX 512MB|300GB WD-320GB WD-1.5TB Segate|Silverstone LC20M
darren42 is offline   Reply With Quote
Old 31st May 2011, 9:24 AM   #7
zero_velocity
Member
 
zero_velocity's Avatar
 
Join Date: Sep 2010
Location: Gold Coast
Posts: 1,501
Default

Quote:
Originally Posted by darren42 View Post
The circuit symbol used to represent the mosfets mean that they would be the n-type. this means that when the input to the base is high, current can flow between the drain and the source.
Please elaborate? i.e. what in that circuit diagram suggests the fets are for one mosfets then how the diagram suggests they are all npn.... I'm just curious as to how this is shown, as by the diagram I would have presumed them be j-fets and NPN but it seems you can only make the assumption from my understanding...

Also, feel free to correct me if i am wrong, but a quick truth table i did showed that for the inputs, shorts and open circuits will be produced :S
__________________
Steam OCAU Natural Selection 2
Quote:
Originally Posted by Agg View Post
I genuinely don't think anything about you at all, nor do I think you are some huge problem on the forums, nor do I particularly care if you feel insulted.
-----WTB Rackmount Equipment-----

Last edited by zero_velocity; 31st May 2011 at 9:35 AM.
zero_velocity is offline   Reply With Quote
Old 31st May 2011, 10:16 AM   #8
darren42
Member
 
darren42's Avatar
 
Join Date: Aug 2010
Location: Fairfield Heights, Sydney
Posts: 139
Default

These are the schematic symbols i learnt to use for J-FETs and MOSFETs, so i believe that they are mosfets

J-FET



MOSFET



But i do agree that the cirucit in the op is incomplete as the output is always low
__________________
Main: i7 920@4.03GHz|NH-U12P-SE2|GA-X58-UD5|6GB DDR3 Corsair|Gigabyte 5850 1GB|1TB WD Black-1TB Samsung-500GB WD-5x 2TB WD Green|Lian-Li PC-V2010
LAN: i7 2600K@4.7GHz|H100|GA-P67A-UD7-B3|8GB DDR3 G-Skill|Gigabyte 6950 2GB|1TB WD Black-5x 2TB WD Green|BitFenix Colossus
HTPC: E6600|P5G43T-M PRO|4GB DDR3|BFG 780GTX 512MB|300GB WD-320GB WD-1.5TB Segate|Silverstone LC20M
darren42 is offline   Reply With Quote
Old 31st May 2011, 10:20 AM   #9
zero_velocity
Member
 
zero_velocity's Avatar
 
Join Date: Sep 2010
Location: Gold Coast
Posts: 1,501
Default

Ah see, when I went through, J-FET's were drawn the same as MOSFETS without the drain... and they were all drawn as seen in pic 2 in the bottom left, and it was up to labelling the component as necessary.... ill take note of those thanks man
__________________
Steam OCAU Natural Selection 2
Quote:
Originally Posted by Agg View Post
I genuinely don't think anything about you at all, nor do I think you are some huge problem on the forums, nor do I particularly care if you feel insulted.
-----WTB Rackmount Equipment-----
zero_velocity is offline   Reply With Quote
Old 5th June 2011, 5:17 AM   #10
2xCPU
Member
 
Join Date: Jan 2005
Location: melb
Posts: 2,395
Default

Quote:
Originally Posted by Maverik View Post
.. that's all the information I was given.
This isn't a homework question is it?

2.
__________________
If "building a computer" doesn't involve powertools, you're just assembling spare parts.
----
The universe is made up of atoms and empty space, the rest is mere opinion. Democritus, 400 BC.
2xCPU is offline   Reply With Quote
Old 7th June 2011, 3:46 AM   #11
Annirak
Member
 
Join Date: May 2004
Location: Canada
Posts: 130
Default

Quote:
Originally Posted by zero_velocity View Post
Ah see, when I went through, J-FET's were drawn the same as MOSFETS without the drain... and they were all drawn as seen in pic 2 in the bottom left, and it was up to labelling the component as necessary.... ill take note of those thanks man
As near as I can tell, the simplified MOSFETs there are only used in IC drawings. At least as I've gone through, the only classes where I've seen them are IC classes. The body connection is always shown on power devices and discretes, but seems to be optional in ICs. I believe that this is because of the complexity involved in drawing a connection between all the bodies on an IC (which is physically how they are connected).
Annirak is offline   Reply With Quote
Old 7th June 2011, 10:27 AM   #12
chrispychipS
Member
 
Join Date: Oct 2008
Location: 2165
Posts: 128
Default

Quote:
Originally Posted by Annirak View Post
As near as I can tell, the simplified MOSFETs there are only used in IC drawings. At least as I've gone through, the only classes where I've seen them are IC classes. The body connection is always shown on power devices and discretes, but seems to be optional in ICs. I believe that this is because of the complexity involved in drawing a connection between all the bodies on an IC (which is physically how they are connected).
False, the body connection is not shown only for simplicity, assumed to be connected to the most negative or positive supply.
Power devices and other discretes are all ICs, and IC design most definitely take into consideration of the body effect.
I believe this is out of the scope of what the OP needs to know.
What the OP needs to do is search up how to draw CMOS logic circuits.
(tip: really simple, made up of pull up and pull down networks, don't over think the difficulty)
Certain this is a homework question, hence I will not give a solution.
chrispychipS is offline   Reply With Quote
Old 8th June 2011, 11:13 PM   #13
Maverik Thread Starter
Member
 
Join Date: May 2011
Posts: 15
Default

Quote:
Originally Posted by 2xCPU View Post
This isn't a homework question is it?
2.
It was something briefly mentioned in a computing lecture at uni, but had nothing to do with the course. Our of interest I asked here, but thanks for all the help.
Maverik is offline   Reply With Quote
Reply

Bookmarks

Sign up for a free OCAU account and this ad will go away!

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +10. The time now is 7:20 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. -
OCAU is not responsible for the content of individual messages posted by others.
Other content copyright Overclockers Australia.
OCAU is hosted by Internode!