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
It was a great fun way to introduce people to Verilog and basic digital design in general. You don't have to have done tons of FPGA stuff or be an expert at Verilog at all. If you’re interested in hardware in general I'd say it's accessible.