Professional Documents
Culture Documents
Digital System Designs and Practices Using Verilog HDL and FPGAs @ 2008~2010, John Wiley
2-1
Syllabus
Objectives
Switch primitives
Delay specifications
Signal strengths
Digital System Designs and Practices Using Verilog HDL and FPGAs @ 2008~2010, John Wiley
2-2
Objectives
After completing this chapter, you will be able to
Describe what is the structural modeling
Describe how to instantiate switch primitives
Describe how to model a design in switch
primitives
Describe how to specify delays in switches
Describe other features of switch primitives
Digital System Designs and Practices Using Verilog HDL and FPGAs @ 2008~2010, John Wiley
2-3
Syllabus
Objectives
Switch primitives
MOS switches
CMOS switch
Bidirectional switches
Delay specifications
Signal strengths
Digital System Designs and Practices Using Verilog HDL and FPGAs @ 2008~2010, John Wiley
2-4
Switch Primitives
Ideal switches without a prefixed letter r
Resistive switches with a prefixed letter r
MOS switches
nmos
pmos
cmos
Bidirectional switches
tran
tranif0
tranif1
Power and ground nets
supply1
supply0
Resistive switches
rnmos
rpmos
rcmos
Resitive bidirectional switches
rtran
rtranif0
rtranif1
Pullup and pulldown
pullup
pulldown
Digital System Designs and Practices Using Verilog HDL and FPGAs @ 2008~2010, John Wiley
2-5
Syllabus
Objectives
Switch primitives
MOS switches
CMOS switch
Bidirectional switches
Delay specifications
Signal strengths
Digital System Designs and Practices Using Verilog HDL and FPGAs @ 2008~2010, John Wiley
2-6
Digital System Designs and Practices Using Verilog HDL and FPGAs @ 2008~2010, John Wiley
2-7
2-8
Digital System Designs and Practices Using Verilog HDL and FPGAs @ 2008~2010, John Wiley
2-9
Digital System Designs and Practices Using Verilog HDL and FPGAs @ 2008~2010, John Wiley
2-10
Syllabus
Objectives
Switch primitives
MOS switches
CMOS switch
Bidirectional switches
Delay specifications
Signal strengths
Digital System Designs and Practices Using Verilog HDL and FPGAs @ 2008~2010, John Wiley
2-11
CMOS Switch
To instantiate CMOS switches
cmos [instance_name]
(output, input, ncontrol, pcontrol);
The instance_name
is optional
Digital System Designs and Practices Using Verilog HDL and FPGAs @ 2008~2010, John Wiley
2-12
Digital System Designs and Practices Using Verilog HDL and FPGAs @ 2008~2010, John Wiley
2-13
Syllabus
Objectives
Switch primitives
MOS switches
CMOS switch
Bidirectional switches
Delay specifications
Signal strengths
Digital System Designs and Practices Using Verilog HDL and FPGAs @ 2008~2010, John Wiley
2-14
Bidirectional Switches
2-15
Syllabus
Objectives
Switch primitives
Delay specifications
MOS/CMOS switches
Bidirectional switches
Signal strengths
Digital System Designs and Practices Using Verilog HDL and FPGAs @ 2008~2010, John Wiley
2-16
2-17
Syllabus
Objectives
Switch primitives
Delay specifications
MOS/CMOS switches
Bidirectional switches
Signal strengths
Digital System Designs and Practices Using Verilog HDL and FPGAs @ 2008~2010, John Wiley
2-18
Digital System Designs and Practices Using Verilog HDL and FPGAs @ 2008~2010, John Wiley
2-19
Syllabus
Objectives
Switch primitives
Delay specifications
Signal strengths
Signal strengths
trireg examples
Digital System Designs and Practices Using Verilog HDL and FPGAs @ 2008~2010, John Wiley
2-20
Signal Strengths
Can be weakened or attenuated by the resistance of
the wires
Digital System Designs and Practices Using Verilog HDL and FPGAs @ 2008~2010, John Wiley
2-21
Digital System Designs and Practices Using Verilog HDL and FPGAs @ 2008~2010, John Wiley
2-22
Syllabus
Objectives
Switch primitives
Delay specifications
Signal strengths
Signal strengths
trireg nets
Digital System Designs and Practices Using Verilog HDL and FPGAs @ 2008~2010, John Wiley
2-23
trireg Nets
Driven state
Capacitive state
Digital System Designs and Practices Using Verilog HDL and FPGAs @ 2008~2010, John Wiley
2-24
a, b, and c = 1
x=0
y -> 0
z -> driven state and = strong0
At simulation time 10
b=0
y -> a high-impedance
z -> capacitive state and = medium0
Digital System Designs and Practices Using Verilog HDL and FPGAs @ 2008~2010, John Wiley
2-25
At simulation time 10
b=0
y -> capacitive state and = large1
z -> driven state and = large1
Digital System Designs and Practices Using Verilog HDL and FPGAs @ 2008~2010, John Wiley
2-26
At simulation time 30
c = 1 again,
y and z share the charge
At simulation time 40
c=0
z -> capacitive state and = small1
Digital System Designs and Practices Using Verilog HDL and FPGAs @ 2008~2010, John Wiley
2-27