How to understand design layout (VLSI)

In summary, the SR latch is a basic circuit that is used in many different applications. The layout is a helpful way to understand the schematic.
  • #1
dafaq
35
0
i am a beginner and i am learning cmos design technique .. i found this layout (attached) and i am not sure how to decompose and understand it - like what function is it implementing and how.. if anyone can help -----
 

Attachments

  • Capture.PNG
    Capture.PNG
    54.7 KB · Views: 675
Engineering news on Phys.org
  • #2
It's an SR NOR latch - the schematic is shown at this site. Are you familiar with MOS transistors at all? If not, this youtube tutorial should explain the basics. In this layout, the following colors are used:

Red - Poly gate
Orange - P+ Diffusion
Green - N+ Diffusion
Blue - Metal-1
Filled Aqua squares - contacts that connect the Metal-1 to the poly and diffusion layers.

Try tracing out the layout and matching it to the schematic of the SR latch. If you have more questions, ask!
 
  • #3
Phyzguy is right. This latch would be used, for example, as the sense amp in an SRAM.

Tracing it out is the way to go. Start by following the gates (red lines) and see where they cross diffusions to create transistors. Keeping in mind that two devices often share a diffusion.

Also, the dotted blue line around the top devices is a N-Well. This is a p-substrate process (I know that because the nmos devices on the bottom of the layout are implemented in the substrate and not in a well).

The square near the VDD label is a well contact and the square near the GND label is a substrate contact. These are needed to reduce the resistance between the circuit and the well/substrate to mitigate latch-up.

Good luck! This is a good circuit to get started on!
 
  • #4
@phyzguy :) yep i know about mos ... but i am not familiar with layout designing :( i know the basics but i don't know how to back trace it ! let me go through the materials u provided and then i will ask again..
@analogdesign :: i absolutely second you :) tracing is the way.. but that's where i am weak at. i am learning..

can any of you please show me the transistor design ?? just simple handsketch will do. so that i can compare with this layout..
 
  • #5
phyzguy said:
It's an SR NOR latch - the schematic is shown at this site. Are you familiar with MOS transistors at all? If not, this youtube tutorial should explain the basics. In this layout, the following colors are used:

Red - Poly gate
Orange - P+ Diffusion
Green - N+ Diffusion
Blue - Metal-1
Filled Aqua squares - contacts that connect the Metal-1 to the poly and diffusion layers.

Try tracing out the layout and matching it to the schematic of the SR latch. If you have more questions, ask!

analogdesign said:
Phyzguy is right. This latch would be used, for example, as the sense amp in an SRAM.

Tracing it out is the way to go. Start by following the gates (red lines) and see where they cross diffusions to create transistors. Keeping in mind that two devices often share a diffusion.

Also, the dotted blue line around the top devices is a N-Well. This is a p-substrate process (I know that because the nmos devices on the bottom of the layout are implemented in the substrate and not in a well).

The square near the VDD label is a well contact and the square near the GND label is a substrate contact. These are needed to reduce the resistance between the circuit and the well/substrate to mitigate latch-up.

Good luck! This is a good circuit to get started on!

here is what i was able to figure out of the circuit ... can you guys have a look and tell me whether i am right or wrong?? the PUN is of pmos and PDN is of nmos.. sorry for the bad sketch.. :(
 

Attachments

  • Capture.PNG
    Capture.PNG
    8.7 KB · Views: 484
  • #6
I think you got it! Good job. Try to draw it a bit more in the standard way and how it works will be more clear to you.
 
  • #7
Looks good to me, too. You might try learning how to use a schematic editor to draw the schematics. There are several free open-source ones to choose from.
 
  • #8
analogdesign said:
I think you got it! Good job. Try to draw it a bit more in the standard way and how it works will be more clear to you.

:) if its not a big trouble then can u please show me the standard model of it ? i want to compare and learn .. a hand drawn one like me will be good enough...
EDIT: please have a look at it.. is this how the standard diagram should be?
 

Attachments

  • Capture.PNG
    Capture.PNG
    21.2 KB · Views: 480
Last edited:
  • #9
phyzguy said:
Looks good to me, too. You might try learning how to use a schematic editor to draw the schematics. There are several free open-source ones to choose from.

please tell me the names..i will download and start working on them... i have access to cadence in my uni but that i am absolutely noob at (maybe i will be able to handle it by the end of this term)!
 
  • #10
Question: does one require a good background in digital electronics to do this type of design? There is a graduate class at my university that offers a course in this, but the description never indicated that such was necessary.
 
  • #11
dafaq said:
please tell me the names..i will download and start working on them... i have access to cadence in my uni but that i am absolutely noob at (maybe i will be able to handle it by the end of this term)!

If you have access to Cadence, you should use that. Everyone starts off as a beginner. Try entering the schematic you drew, and then you will be less of a beginner.
 
  • Like
Likes 1 person
  • #12
sandy.bridge said:
Question: does one require a good background in digital electronics to do this type of design? There is a graduate class at my university that offers a course in this, but the description never indicated that such was necessary.

No. Physical layout in industry is often done by people with AA degrees (or a BS at most). It's important designers know how to do it and what's important however.

I do my own layout because my organization is not large enough to have dedicated layout staff.
 
  • Like
Likes 1 person
  • #13
dafaq said:
:) if its not a big trouble then can u please show me the standard model of it ? i want to compare and learn .. a hand drawn one like me will be good enough...
EDIT: please have a look at it.. is this how the standard diagram should be?

Looks good! You got it.

I agree 100% if you have Cadence Virtuoso use it. It completely dominates the industry. I have it open in another window right now. :)
 
  • Like
Likes 1 person
  • #15
I one had a picture of me drawn on a chip (long story). One company I worked with had a policy against signing chips so the designers put their initials in metal with voltages such that it would show up on an e-beam prober.

Cadence has a steep learning curve in that you have to almost be an expert to do anything. Don't let that frustrate you since the end result is a very rich toolset. Just pray you never have to learn their SKILL programming language.
 
  • Like
Likes 1 person
  • #16
phyzguy said:
If you have access to Cadence, you should use that. Everyone starts off as a beginner. Try entering the schematic you drew, and then you will be less of a beginner.

analogdesign said:
Looks good! You got it.

I agree 100% if you have Cadence Virtuoso use it. It completely dominates the industry. I have it open in another window right now. :)

thank you both for helping me :) seems like you guys are professionals in this field :) (one doesn't simply keeps cadence open in next window :D )
one last question - how did you guys know it was SR (nor)latch? is it pure experience or there's some technique to quickly understand the underlying functions ?
 
  • #17
My transistor level layout skills are zip. I couldn't have drawn the schematic. But once the schematic is drawn, the circuit topology is familiar.
 
  • #18
dafaq said:
thank you both for helping me :) seems like you guys are professionals in this field :) (one doesn't simply keeps cadence open in next window :D )
one last question - how did you guys know it was SR (nor)latch? is it pure experience or there's some technique to quickly understand the underlying functions ?

I have a lot of design and layout experience (I'm a professional IC designer). As you study more, you'll find that there are only a relatively small number of primitive circuit structures and you will learn to recognize them. More complex structures are made by connecting simpler structures (like NOR latches).

I knew it was a NOR latch by tracing the circuit visually. I have enough experience that I didn't have to draw it on paper.
 
  • #19
meBigGuy said:
I one had a picture of me drawn on a chip (long story). One company I worked with had a policy against signing chips so the designers put their initials in metal with voltages such that it would show up on an e-beam prober.

Cadence has a steep learning curve in that you have to almost be an expert to do anything. Don't let that frustrate you since the end result is a very rich toolset. Just pray you never have to learn their SKILL programming language.

Cool about the picture! Most companies have policies against signing chips.

Cadence certainly does have a steep learning curve. It's a complete train wreck. SKILL isn't *that* bad, since it is based on Lisp. I prefer the Mentor tools for simulation (but Cadence for design entry). One benefit of Mentor tools is they can be scripted using TCL which is a little less crazy-making than SKILL.
 
  • #20
dafaq said:
one last question - how did you guys know it was SR (nor)latch? is it pure experience or there's some technique to quickly understand the underlying functions ?

I used to work in IC process development, so I have a lot of experience reading and drawing physical layout. I knew it was a pair of NOR gates, since the PMOS were in series and the NMOS in parallel, so from there it was clear it was an SR latch, Also, the node names (S,R,Q,Q') were a dead giveaway.
 
  • #21
@analogdesign & @phyzguy ::
here am i with a few more questions i hope you will be kind enough to help me with. i believe you both have understood by now that i am taking the vlsi design course because of my previous questions :) the problem is professor is super busy and the TAs are not helpful enough :( so i feel like asking you guys...
here it is,
i have attached the screenshot of my 2:1 MUX using 3nand and 1inverter. now , i am quoting the exact question "The circuit given has three inputs. Both the delay and power consumed by the circuit
depends on the input pattern you apply at the input. What is the worst case pattern for delay?
For power?" ---- i am absolutely confused... if you guys could help me then it will be really great..
regards
 

Attachments

  • Capture.PNG
    Capture.PNG
    13.8 KB · Views: 384
  • #22
Hi dafaq,

I'll give you two thoughts. First, for delay, look at your circuit and think about the paths the signals have to go through. If S_IN switches, for instance, to get to the output the signal has to go through the inverter and then the NAND gate i2 and finally the NAND gate i3. So it must propagate through an inverter and two NAND gates. If S_IN is constant and A_IN changes instead, before the output changes the signal must go through I1 and I2 only. Do you see the difference? The delay from the A_IN input to the output is less than S_IN to the delay. Therefore, patterns that do not include S_IN switching will be faster (they will have less delay).

As for power, a CMOS gate ideally only consumes power when it is switching, so this is similar to delay. THe patterns that make the most gates switch their states will consume the most power.

In practice, your standard cell library documentation would have typical and worst case delays for different temperatures and you could add them up to find the worst case delay for your mux. The documentation would have similar information for power.
 
  • #23
The trick about power is that some patterns will glitch the output when the selector switches (depends on the input state), thereby consumming extra power because of the extra switching. I'll let you discover the pattern.
 
  • #24
@both big guys :: considering the delay -- umm.. as far i know - multiplexers are used to select the input lines only. the input values are already available in the input ports and we don't really change them, we just vary the select patter (S) to check which input will go to the output. in my diagram, let's assume i have 0 in A and 1 in B and the S' is connected to the bottom NAND gate. if i assume logic 1 is true and s'=0.. in that scenario if i want to select line 1 for the output then i will simply provide 1 as select value and if i want line 2 for output then i will have to change select value to 0 so that s'=1 and the lower NAND is active. so how i see is - my worst delay will be then when i am to use the network which contains more number of logic elements. am i right? so the worst delay patter will be when i switch my select from 1 to 0 for selecting the lower input as the final output of the mux. is my answer correct?
 
  • #25
The longest path is certainly the path through the inverter, but whether H-L or L-H is the slowest depends on the characteristics of the gates (H/L vs L/H propagation) and the input values.
 
  • #26
Also, multiplexers are used a lot of different ways. In some logic styles the select input is used as a data input, so taking it into account is important.

meBigGuy is correct about the non-symmetric rise and fall times of CMOS logic.
 
  • #27
:) thanks to all of you for the last question answers... i did find the pattern of input that will cause the worst delay..
here i am back again with something similar to this thread, i need help understanding this layout..
what is it implementing? i will try to iterate like last time and finally get to the schematic level diagram (like S-R NOR latch) i am a bit confused, since so much turning and so many contacts !
 

Attachments

  • Capture.JPG
    Capture.JPG
    50.6 KB · Views: 342
  • #28
bigguys :) here is my first input, please correct me if i am wrong ---
 

Attachments

  • Capture2.JPG
    Capture2.JPG
    30.7 KB · Views: 366
Last edited:
  • #29
@phyzguy , @analogdesign , @meBigGuy ,
is there an option to tag people?
 
  • #30
dafaq said:
bigguys :) here is my first input, please correct me if i am wrong ---

This looks right. Note that the two transistors on the left are an inverter, so they generate Sbar from S. The two transistors on the right are an inverter that buffers the output. So what do the 8 transistors in the middle do? What happens when S is high? What about when S is low?
 
  • #31
@phyzguy: i think the PUN is implementing (B+S).(A+S')
is it so?
 
  • #32
but i have no idea what this circuit implements ! i mean what's this circuit actually is (definitely not multiplexer or adder or things like that) ..
 
  • #33
dafaq said:
@phyzguy: i think the PUN is implementing (B+S).(A+S')
is it so?

I think this is wrong. Try making a truth table and comparing it to the truth table of some of the common 2-input functions you mentioned.
 
  • #34
@phyzguy
i made the truth table.. have a look.. but i can't really match this with something i remember.. can you please remind me? :( besides, what will be the worst case delay input transition ?
 

Attachments

  • IMAG0019.jpg
    IMAG0019.jpg
    12.3 KB · Views: 383
  • #35
dafaq said:
@phyzguy
i made the truth table.. have a look.. but i can't really match this with something i remember.. can you please remind me? :( besides, what will be the worst case delay input transition ?

When S = 1, Out = A. When S = 0, Out = B, so S selects A or B. What would you call this?
 

Similar threads

  • Engineering and Comp Sci Homework Help
Replies
11
Views
923
  • Electrical Engineering
Replies
11
Views
1K
Replies
39
Views
3K
  • Electrical Engineering
Replies
32
Views
3K
  • Electrical Engineering
Replies
4
Views
1K
Replies
55
Views
3K
  • Electrical Engineering
Replies
6
Views
893
  • Electrical Engineering
Replies
5
Views
939
  • Electrical Engineering
Replies
18
Views
2K
  • Electrical Engineering
Replies
28
Views
2K
Back
Top