-1
\$\begingroup\$

I'm having trouble wrapping my head around the following layout. I can't understand what logic function it is implementing.

enter image description here

For what I understand the rightmost side implements a CMOS inverter with input "a". The leftmost one is also a CMOS inverter with input y1 and output y2. Finally at the middle we have a NMOS and PMOS with both gates connected to "b", source connected to "~a" (is it though? the NMOS is missing a contact), and drain connected to y1. I can't understand what logic function it implements. Can someone help me?

EDIT: My attempt on schematics enter image description here

\$\endgroup\$
10
  • \$\begingroup\$ is this a school assignment? \$\endgroup\$
    – jsotola
    Commented Feb 8, 2021 at 3:54
  • 1
    \$\begingroup\$ I'm exactly having trouble doing that but I will try and upload a new pic in a minutes, of my attempt on doing the schematics. Just give me 10 minutes! \$\endgroup\$ Commented Feb 8, 2021 at 12:41
  • 1
    \$\begingroup\$ @uriyaba schematics done! \$\endgroup\$ Commented Feb 8, 2021 at 12:53
  • 1
    \$\begingroup\$ Can you tell us where you found this layout? Surely the source provides some explanation for what this is to represent. It seems strange that you would find some random bit of layout with no other information. \$\endgroup\$ Commented Feb 8, 2021 at 13:22
  • 1
    \$\begingroup\$ @GrangerObliviate What is the name of the book and who is the author? \$\endgroup\$ Commented Feb 8, 2021 at 13:27

1 Answer 1

1
\$\begingroup\$

Since the only parameter we're missing in order to find the boolean function this circuit implements is y1, let us look at the CMOS in the rightmost diagram that you have drawn, since it is a fair simplification of the circuit.

Suppose that a = '0'; The PMOS will enter the cutoff region, since its Vsg will be less than |Vt|, no matter what b's logical value is equal to. However, the NMOS will always be at either the saturation region (when b = '0') or the linear region (when b = '1'), so in this case where a = '0', the PMOS will be cutoff, and the NMOS will conduct, such as that its drain voltage will be equal to its source voltage (a, in this case, which is again, equal to 0). An example circuit for one of the mentioned cases:

schematic

simulate this circuit – Schematic created using CircuitLab

Figure 1: a = '0' and b = '0'. Simulation shows y1='0'.

Now that you (hopefully) understood what I've explained so far, ask yourself these questions - what happens to the MOSFETs in the other cases, where a='1'? What will y1 logical value be equal to in these cases? And finally, after arriving at some conclusions, it will be possible to construct a truth table in order to find y1, which in turn would help you find y2.

Oh, and you could also simulate the circuit if you get stuck, and then try to explain to yourself why the simulation shows that specific value for y1 :)

\$\endgroup\$
3
  • \$\begingroup\$ Thank you very much, it definitely helped, specially the simulation! when a=1 the PMOS always conducts and my guess is that the NMOS might conduct or not (b=0, does not conduct, b=1 conducts), and the output y1=1. We shall conclude the logic function is y1=a and y2=~a. Is that correct? So overall this is a NOT gate. I wonder why the inclusion of input b. Is it just to implement a transmission gate with these two transistors and has no practical meaning? \$\endgroup\$ Commented Feb 8, 2021 at 15:12
  • \$\begingroup\$ I'm glad to have helped! I'd appreciate it if you accepted my answer and upvoted it, since this is common practice around here when an answer is helpful. As for your conclusions, you almost got it right - you're only wrong about one thing, when a = '1' the NMOS never conducts; it's in its cutoff region since its Vgs < |Vt|, no matter what b's logical value is. \$\endgroup\$
    – uriyabsc
    Commented Feb 8, 2021 at 15:22
  • 1
    \$\begingroup\$ I will do so! Oh you are right because since y1 is 1 the source always has a voltage bigger or equal than the gate, therefore the NMOS won't conduct! Thank you again! \$\endgroup\$ Commented Feb 8, 2021 at 15:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.