These Slides are just for reference, for the detailed study follow the text book. You can Refer Verilog HDL by Samir Palnitkar (Chapter-11)
instance name o pmos (out, data, control); //instantiate a pmos switch; no instance name
nmos switch conducts when its control signal is 1. If the control signal is 0, the output assumes a high impedance value. Similarly, a pmos switch conducts if the control signal is 0.
CMOS Switches
A cmos device can be modeled with a nmos and a pmos
device.
Instantiation without Instance Name: cmos (out, data, ncontrol, pcontrol); //no instance name given.
needed when transistor level circuits are designed. Power and ground sources are defined with keywords supply1 and supply0. Supply1 are equivalent to Vdd in circuits and place a logical 1 on a net. Supply0 are equivalent to ground or Vss and place a logical 0 on a net. supply1 vdd; supply0 gnd; assign a = vdd; //Connect a to vdd assign b = gnd; //Connect b to gnd
Bidirectional Switches
Switches that conduct in both directions.
Resistive Switches
Higher source-to-drain impedance than regular switches.
Reduce the strength of signals passing through them.
rnmos rpmos //resistive nmos and pmos switches rcmos //resistive cmos switch
Switch-Level Verilog Description of 2-to-1 Multiplexer //Define a 2-to-1 multiplexer using switches module my_mux (out, s, i0, i1); output out; input s, i0, i1; //internal wire wire sbar; //complement of s //create the complement of s
// use my_nor defined previously.
my_nor nt(sbar, s, s); //equivalent to a not gate //instantiate cmos switches cmos (out, i0, sbar, s); cmos (out, i1, s, sbar); endmodule
CMOS flip-flop
X= ((A.B)+(C.D))
And-Or-Invert Form
Practice
Design 4:1 Mux using CMOS Switches.
Memory Designs
Introduction
A memory unit is a device to which binary information
is transferred for storage and from which information is retrieved when needed for processing. There are two types of memories that are used in digital systems: random-access memory(RAM) and read-only memory(ROM). RAM can perform both Write and Read operations. ROM can perform Read operation.
Static RAM (SRAM) consists essentially of internal Latches that store the binary information. Dynamic RAM (DRAM) stores the binary information in the form of electric charges on capacitors provided inside the chip by MOS transistors (require refreshing).
literal minterms. Programmable OR Array with M outputs lines to form up to M sum of minterm expressions.
Electronics and Communication Engineering
26
28
Representation of Array
.
decoder with 3 inputs and 8 outputs implementing min-terms. The programmable "OR array uses a single line to A represent all inputs to an B C OR gate. An X in the array corresponds to attaching the min-term to the OR
D7 D6 D5 D4 A2 D3 D2 A1 D1 A0 D0
X X
X X X
X
X X X
F0
30
Solution
F3=ABC+ABC+ABC F2=ABC+ABC F1=ABC+ABC F0=ABC+ABC+ABC
31
Practice Problems:
Design Adders , Subtractor, Multiplexers etc.
Example
6T SRAM Cell
Contd..
Example