NMOS
NMOS logic refers to building the standard cells we need for our IC out of only N-type MOSFETs. This is a form of resistor-transistor logic, where the pulldown path uses an N type transistor, and the pullup path uses a resistor.
Here is how we can build an inverter from only N-type MOSFETS.
Input | Output |
---|---|
0 | 1 |
1 | 0 |
If the input is low, the gate is not charged and current doesn’t flow through the MOSFET. The resistor pulls up the output to make it high.
If the input is high, the gate is charged and the MOSFET conducts. This pulls the output low.
NMOS logic has the advantage that we don’t need to manufacture P type transistors and so the processing is cheaper and quicker to perform.
The disadvantage with NMOS logic is that the pullup resistors waste a tiny bit of current when the transistor is on. If you have millions of these then you are wasting electricity as heat and your chips get hot and slow down. CMOS was invented to solve this shortcoming. Another disadvantage is that the pulldown and pullup strengths are not well matched, leading to asymmetric waveforms. If we make the resistor smaller, so it pulls up more quickly, this wastes even more power.
To explore how this works for yourself, try my online SiliWiz tool - there’s a lesson about NMOS here.
Course feedback
The Zero To ASIC course took me on a fantastic journey from drawing and simulating a MOSFET, formal verification leading up to implementing a custom design with an open PDK and completely open source tools. The course is crammed full of interesting material with great pacing and support from Matt, and it's been a fantastic opportunity to meet other folks with shared interests and different backgrounds. The course has left me excited with opportunities for new projects and optimism for some working silicon!
Jamie Iles (digital course)