top of page

12.2.1. NMOS and PMOS Behavior​

 

NMOS Switch Example

Verilog

Circuit Diagram:

Screenshot (726).png

Operation:

​

- control = 0: NMOS OFF → y = Z (floating)

​

- control = 1: NMOS ON → y = 0 (pulled to ground)

​

PMOS Switch Example

Verilog

Circuit Diagram:

Screenshot (727).png

Operation:

​

- control = 0: PMOS ON → y = 1 (pulled to VDD)

​

- control = 1: PMOS OFF → y = Z (floating)

​

Complete NMOS and PMOS Testbench

Verilog

Switch level primitives

CMOS Logic Gates

© Copyright 2025 VLSI Mentor. All Rights Reserved.©

Connect with us

  • Instagram
  • Facebook
  • Twitter
  • LinkedIn
  • YouTube
bottom of page