SlideShare a Scribd company logo
1 of 31
Hanbat
Hanbat
National
National
University
University
Structural ModelingStructural Modeling
Gookyi Dennis A. N.Gookyi Dennis A. N.
SoC Design Lab.SoC Design Lab.
June.03.2014
ContentsContents
 Hazards
 Static Hazards
 Dynamic Hazards
 Switch Primitives
 Signal Strengths
2
HazardsHazards
 Outputs of combinational logic consists of many
signals propagated from different paths
 Due to propagation delays of these paths, the
output signal must experience an amount of time
during which fluctuations occurs
 This duration is called transient time of the
output signal and it results in several short
pulses called glitches
 A hazard is raised when fluctuation occur during
the transient time
 Hazards can be divided into:
Static hazards
Dynamic hazards
3
Static HazardsStatic Hazards
 This is a situation when the output produces a “0”
when its stable value is “1” and a “1” glitch when
its stable value is “0”
 Static hazard can be divided into:
static-0 hazard
Static-1 hazard
 Consider the logic circuit shown below
4
Static HazardStatic Hazard
 code
 Testbench
5
Waveform of Static HazardWaveform of Static Hazard
6
Eliminating Static HazardsEliminating Static Hazards
 Consider the K-map shown below:
7
WaveformWaveform
 Waveform
8
Dynamic HazardDynamic Hazard
 Dynamic hazard is a situation where the output of a
circuit changes from 0 to 1 and to 0 (or 1 to 0 and
then to 1)
 The output changes three or more times
 Because three or more signal changes are required
for dynamic hazard, a signal must arrive at the
output at three different times
 Consider the logic circuit shown below:
9
Dynamic HazardDynamic Hazard
 Code
 Testbench
10
Waveform of Dynamic HazardWaveform of Dynamic Hazard
11
Switch-Level ModelingSwitch-Level Modeling
 All MOS transistors in switch level modeling can be
grouped into two groups:
 Ideal switches
 Non-ideal switches
 In ideal switches, there is no signal degradation
when turned on
 In non-ideal switches, there is a finite amount of
signal degradation
 All non-ideal switches are prefix with the letter
“r” in Verilog
12
MOS SwitchesMOS Switches
 There are two MOS switches:
 nmos/rnmos
 pmos/rpmos
 The figure show nmos and pmos and their truth table
 To instantiate switch elements
switch_name [instance_name] (output, input, 13
CMOS inverterCMOS inverter
 Circuit and logic symbol
 Code
14
NOT WaveformNOT Waveform
 Testbench
 Waveform
15
CMOS NAND GateCMOS NAND Gate
 Circuit diagram and code
16
NAND WaveformNAND Waveform
 Testbench
 Waveform
17
CMOS SwitchCMOS Switch
 The cmos and rcmos switches consists of a data
input, a data output and two control inputs
 Truth table and block diagram:
18
CMOS SwitchCMOS Switch
 To instantiate CMOS switches
cmos [instance_name] (output, input, ncontrol,
pcontrol);
 This is actually equivalent to:
nmos (output, input, ncontrol);
pmos (output, input, pcontrol);
19
CMOS SwitchesCMOS Switches
 Below is he block diagram and code for 2-to-1
multiplexer constructed by using CMOS switches
20
WaveformWaveform
 Testbench
 Waveform
21
Signal StrengthSignal Strength
 Signal strength represents the ability of the
source device to supply energy to drive the signal
 There are two kinds of signal strength:
Driving strength
Charge storage strength
 Signals with driving strengths propagate from gate
outputs and continuous assignment outputs
 There are four driving strengths: supply, strong,
pull and weak
 Signals with charge strength originates from trireg
nets
 There are three charge storage strengths: large,
medium, small
22
Signal StrengthSignal Strength
 Strength level for scalar signal values
 Scale of strengths
23
Signal StrengthSignal Strength
 A strength specification has two components:
(strength0, strength1) or (strength1, strength0)
 The default strength specification is:
(strong0, strong1)
 An output port of a gate primitive with drive
strength has the syntax below:
gate_name (strength1,strength0) [delay]
[instance_name]
(port_list);
24
Signal ContentionSignal Contention
 When multiple drivers drive a net at the same time,
contention occurs on the net
 Some of the rules for resolving contention is as
below:
 If two signals of unequal strength combine, the
stronger signal is the results
25
Signal ContentionSignal Contention
 When two signals of equal strength and opposite
value combine, the result has a value of x and the
strength level of both signals and all smaller
strength levels
26
Signal ContentionSignal Contention
 Block diagram, code and testbench:
27
y
a
b
WaveformWaveform
28
Trireg NetTrireg Net
 The trireg net stores a value and it is used to
model charge storage nodes
 It can be in one of the two states below:
 Driven state: At least one driver drives a value of
1, 0 or x on the net. The value is retained on the
net. It takes the strength of the driver. The
strength could be supply, strong, pull or weak
 Capacitive state: When all the drivers to a trireg
net are at the high-impedance (z), the net retains
its last driven value. The strength could be small,
medium (default) or large
29
Trireg NetsTrireg Nets
 Block diagram and code:
30
Simulation ResultsSimulation Results
 run
#0 a=St1 b=St1 c=St1 x=St0 y=St0 z=St0
#10 a=St1 b=St0 c=St1 x=St0 y=HiZ z=Me0
#40 a=St1 b=St1 c=St1 x=St0 y=St0 z=St0
#50 a=St1 b=St0 c=St1 x=St0 y=HiZ z=Me0
 Waveform
31

More Related Content

What's hot

What's hot (20)

VHDL Behavioral Description
VHDL Behavioral DescriptionVHDL Behavioral Description
VHDL Behavioral Description
 
VERILOG HDL :: Blocking & NON- Blocking assignments
VERILOG HDL :: Blocking & NON- Blocking assignments VERILOG HDL :: Blocking & NON- Blocking assignments
VERILOG HDL :: Blocking & NON- Blocking assignments
 
Verilog hdl
Verilog hdlVerilog hdl
Verilog hdl
 
Finite state machines
Finite state machinesFinite state machines
Finite state machines
 
Encoder and decoder
Encoder and decoderEncoder and decoder
Encoder and decoder
 
5. convolution and correlation of discrete time signals
5. convolution and correlation of discrete time signals 5. convolution and correlation of discrete time signals
5. convolution and correlation of discrete time signals
 
Verilog HDL
Verilog HDLVerilog HDL
Verilog HDL
 
Fpga architectures and applications
Fpga architectures and applicationsFpga architectures and applications
Fpga architectures and applications
 
Decimation in time and frequency
Decimation in time and frequencyDecimation in time and frequency
Decimation in time and frequency
 
I2C Protocol
I2C ProtocolI2C Protocol
I2C Protocol
 
Synchronous and asynchronous reset
Synchronous and asynchronous resetSynchronous and asynchronous reset
Synchronous and asynchronous reset
 
Behavioral modelling in VHDL
Behavioral modelling in VHDLBehavioral modelling in VHDL
Behavioral modelling in VHDL
 
Verilog HDL Training Course
Verilog HDL Training CourseVerilog HDL Training Course
Verilog HDL Training Course
 
FIR and IIR system
FIR and IIR systemFIR and IIR system
FIR and IIR system
 
Router 1X3 – RTL Design and Verification
Router 1X3 – RTL Design and VerificationRouter 1X3 – RTL Design and Verification
Router 1X3 – RTL Design and Verification
 
Crash course in verilog
Crash course in verilogCrash course in verilog
Crash course in verilog
 
Verilog Tasks and functions
Verilog Tasks and functionsVerilog Tasks and functions
Verilog Tasks and functions
 
Synchronous and asynchronous clock
Synchronous and asynchronous clockSynchronous and asynchronous clock
Synchronous and asynchronous clock
 
axi protocol
axi protocolaxi protocol
axi protocol
 
Convolutional codes
Convolutional codesConvolutional codes
Convolutional codes
 

Similar to structural modeling, hazards

Lecture 2 verilog
Lecture 2   verilogLecture 2   verilog
Lecture 2 verilogvenravi10
 
AUTOMATIC GRID ON SENSING BAD VOLTAGE OR FREQUENCY
AUTOMATIC GRID ON SENSING BAD VOLTAGE OR FREQUENCYAUTOMATIC GRID ON SENSING BAD VOLTAGE OR FREQUENCY
AUTOMATIC GRID ON SENSING BAD VOLTAGE OR FREQUENCYGaurav Singh
 
File 1389427052
File 1389427052File 1389427052
File 1389427052Aman_preet
 
Pipelining approach
Pipelining approachPipelining approach
Pipelining approachGopinathD17
 
Logic families
Logic familiesLogic families
Logic familiesDaudRaza2
 
2 marks DPCO.pdf
2 marks DPCO.pdf2 marks DPCO.pdf
2 marks DPCO.pdfVhhvf
 
power grid synchronization failure detection
power grid synchronization failure detectionpower grid synchronization failure detection
power grid synchronization failure detectionJay Hind
 
B sc cs i bo-de u-iv logic families
B sc cs i bo-de u-iv logic familiesB sc cs i bo-de u-iv logic families
B sc cs i bo-de u-iv logic familiesRai University
 
Digital logic-formula-notes-final-1
Digital logic-formula-notes-final-1Digital logic-formula-notes-final-1
Digital logic-formula-notes-final-1Kshitij Singh
 
Library Characterization Flow
Library Characterization FlowLibrary Characterization Flow
Library Characterization FlowSatish Grandhi
 
Hardware combinational
Hardware combinationalHardware combinational
Hardware combinationalDefri Tan
 
Cse iii-logic design [10 cs33]-notes
Cse iii-logic design [10 cs33]-notesCse iii-logic design [10 cs33]-notes
Cse iii-logic design [10 cs33]-notesOmprakash BV
 
Design of CMOS operational Amplifiers using CADENCE
Design of CMOS operational Amplifiers using CADENCEDesign of CMOS operational Amplifiers using CADENCE
Design of CMOS operational Amplifiers using CADENCEnandivashishth
 
8051 MMD Chapter 1.ppt
8051 MMD Chapter 1.ppt8051 MMD Chapter 1.ppt
8051 MMD Chapter 1.pptnotagain0712
 
Roy aeroVerifying Power Domains in AeroFONE
Roy aeroVerifying Power Domains in AeroFONERoy aeroVerifying Power Domains in AeroFONE
Roy aeroVerifying Power Domains in AeroFONEDVClub
 

Similar to structural modeling, hazards (20)

Lecture 2 verilog
Lecture 2   verilogLecture 2   verilog
Lecture 2 verilog
 
Combinational logic circuit by umakant bhaskar gohatre
Combinational logic circuit by umakant bhaskar gohatreCombinational logic circuit by umakant bhaskar gohatre
Combinational logic circuit by umakant bhaskar gohatre
 
AUTOMATIC GRID ON SENSING BAD VOLTAGE OR FREQUENCY
AUTOMATIC GRID ON SENSING BAD VOLTAGE OR FREQUENCYAUTOMATIC GRID ON SENSING BAD VOLTAGE OR FREQUENCY
AUTOMATIC GRID ON SENSING BAD VOLTAGE OR FREQUENCY
 
File 1389427052
File 1389427052File 1389427052
File 1389427052
 
Pipelining approach
Pipelining approachPipelining approach
Pipelining approach
 
Logic families
Logic familiesLogic families
Logic families
 
2 marks DPCO.pdf
2 marks DPCO.pdf2 marks DPCO.pdf
2 marks DPCO.pdf
 
power grid synchronization failure detection
power grid synchronization failure detectionpower grid synchronization failure detection
power grid synchronization failure detection
 
B sc cs i bo-de u-iv logic families
B sc cs i bo-de u-iv logic familiesB sc cs i bo-de u-iv logic families
B sc cs i bo-de u-iv logic families
 
Uv CBPSD lab
Uv CBPSD labUv CBPSD lab
Uv CBPSD lab
 
Digital logic-formula-notes-final-1
Digital logic-formula-notes-final-1Digital logic-formula-notes-final-1
Digital logic-formula-notes-final-1
 
Library Characterization Flow
Library Characterization FlowLibrary Characterization Flow
Library Characterization Flow
 
File 1389425159
File 1389425159File 1389425159
File 1389425159
 
Hardware combinational
Hardware combinationalHardware combinational
Hardware combinational
 
Cse iii-logic design [10 cs33]-notes
Cse iii-logic design [10 cs33]-notesCse iii-logic design [10 cs33]-notes
Cse iii-logic design [10 cs33]-notes
 
Design of CMOS operational Amplifiers using CADENCE
Design of CMOS operational Amplifiers using CADENCEDesign of CMOS operational Amplifiers using CADENCE
Design of CMOS operational Amplifiers using CADENCE
 
8051 MMD Chapter 1.ppt
8051 MMD Chapter 1.ppt8051 MMD Chapter 1.ppt
8051 MMD Chapter 1.ppt
 
Roy aeroVerifying Power Domains in AeroFONE
Roy aeroVerifying Power Domains in AeroFONERoy aeroVerifying Power Domains in AeroFONE
Roy aeroVerifying Power Domains in AeroFONE
 
M3488 datasheet
M3488 datasheetM3488 datasheet
M3488 datasheet
 
Assembler4
Assembler4Assembler4
Assembler4
 

More from dennis gookyi

Verilog hdl design examples
Verilog hdl design examplesVerilog hdl design examples
Verilog hdl design examplesdennis gookyi
 
Verilog HDL Verification
Verilog HDL VerificationVerilog HDL Verification
Verilog HDL Verificationdennis gookyi
 
System design methodology
System design methodologySystem design methodology
System design methodologydennis gookyi
 
Wishbone classic bus cycle
Wishbone classic bus cycleWishbone classic bus cycle
Wishbone classic bus cycledennis gookyi
 
Design options for digital systems
Design options for digital systemsDesign options for digital systems
Design options for digital systemsdennis gookyi
 
Wishbone interface and bus cycles
Wishbone interface and bus cyclesWishbone interface and bus cycles
Wishbone interface and bus cyclesdennis gookyi
 
Advanced modeling techniques
Advanced modeling techniquesAdvanced modeling techniques
Advanced modeling techniquesdennis gookyi
 
Hierachical structural modeling
Hierachical structural modelingHierachical structural modeling
Hierachical structural modelingdennis gookyi
 
faults in digital systems
faults in digital systemsfaults in digital systems
faults in digital systemsdennis gookyi
 
basic concepts of reliability
basic concepts of reliabilitybasic concepts of reliability
basic concepts of reliabilitydennis gookyi
 

More from dennis gookyi (18)

Verilog hdl design examples
Verilog hdl design examplesVerilog hdl design examples
Verilog hdl design examples
 
Wishbone tutorials
Wishbone tutorialsWishbone tutorials
Wishbone tutorials
 
Verilog HDL Verification
Verilog HDL VerificationVerilog HDL Verification
Verilog HDL Verification
 
Synthesis
SynthesisSynthesis
Synthesis
 
System design methodology
System design methodologySystem design methodology
System design methodology
 
Wishbone classic bus cycle
Wishbone classic bus cycleWishbone classic bus cycle
Wishbone classic bus cycle
 
Design options for digital systems
Design options for digital systemsDesign options for digital systems
Design options for digital systems
 
Wishbone interface and bus cycles
Wishbone interface and bus cyclesWishbone interface and bus cycles
Wishbone interface and bus cycles
 
Encoder decoder
Encoder decoderEncoder decoder
Encoder decoder
 
Advanced modeling techniques
Advanced modeling techniquesAdvanced modeling techniques
Advanced modeling techniques
 
4 bit add sub
4 bit add sub4 bit add sub
4 bit add sub
 
Hierachical structural modeling
Hierachical structural modelingHierachical structural modeling
Hierachical structural modeling
 
Behavioral modeling
Behavioral modelingBehavioral modeling
Behavioral modeling
 
Biosensors
BiosensorsBiosensors
Biosensors
 
Verilog hdl
Verilog hdlVerilog hdl
Verilog hdl
 
test generation
test generationtest generation
test generation
 
faults in digital systems
faults in digital systemsfaults in digital systems
faults in digital systems
 
basic concepts of reliability
basic concepts of reliabilitybasic concepts of reliability
basic concepts of reliability
 

Recently uploaded

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 

Recently uploaded (20)

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 

structural modeling, hazards

  • 1. Hanbat Hanbat National National University University Structural ModelingStructural Modeling Gookyi Dennis A. N.Gookyi Dennis A. N. SoC Design Lab.SoC Design Lab. June.03.2014
  • 2. ContentsContents  Hazards  Static Hazards  Dynamic Hazards  Switch Primitives  Signal Strengths 2
  • 3. HazardsHazards  Outputs of combinational logic consists of many signals propagated from different paths  Due to propagation delays of these paths, the output signal must experience an amount of time during which fluctuations occurs  This duration is called transient time of the output signal and it results in several short pulses called glitches  A hazard is raised when fluctuation occur during the transient time  Hazards can be divided into: Static hazards Dynamic hazards 3
  • 4. Static HazardsStatic Hazards  This is a situation when the output produces a “0” when its stable value is “1” and a “1” glitch when its stable value is “0”  Static hazard can be divided into: static-0 hazard Static-1 hazard  Consider the logic circuit shown below 4
  • 5. Static HazardStatic Hazard  code  Testbench 5
  • 6. Waveform of Static HazardWaveform of Static Hazard 6
  • 7. Eliminating Static HazardsEliminating Static Hazards  Consider the K-map shown below: 7
  • 9. Dynamic HazardDynamic Hazard  Dynamic hazard is a situation where the output of a circuit changes from 0 to 1 and to 0 (or 1 to 0 and then to 1)  The output changes three or more times  Because three or more signal changes are required for dynamic hazard, a signal must arrive at the output at three different times  Consider the logic circuit shown below: 9
  • 10. Dynamic HazardDynamic Hazard  Code  Testbench 10
  • 11. Waveform of Dynamic HazardWaveform of Dynamic Hazard 11
  • 12. Switch-Level ModelingSwitch-Level Modeling  All MOS transistors in switch level modeling can be grouped into two groups:  Ideal switches  Non-ideal switches  In ideal switches, there is no signal degradation when turned on  In non-ideal switches, there is a finite amount of signal degradation  All non-ideal switches are prefix with the letter “r” in Verilog 12
  • 13. MOS SwitchesMOS Switches  There are two MOS switches:  nmos/rnmos  pmos/rpmos  The figure show nmos and pmos and their truth table  To instantiate switch elements switch_name [instance_name] (output, input, 13
  • 14. CMOS inverterCMOS inverter  Circuit and logic symbol  Code 14
  • 15. NOT WaveformNOT Waveform  Testbench  Waveform 15
  • 16. CMOS NAND GateCMOS NAND Gate  Circuit diagram and code 16
  • 17. NAND WaveformNAND Waveform  Testbench  Waveform 17
  • 18. CMOS SwitchCMOS Switch  The cmos and rcmos switches consists of a data input, a data output and two control inputs  Truth table and block diagram: 18
  • 19. CMOS SwitchCMOS Switch  To instantiate CMOS switches cmos [instance_name] (output, input, ncontrol, pcontrol);  This is actually equivalent to: nmos (output, input, ncontrol); pmos (output, input, pcontrol); 19
  • 20. CMOS SwitchesCMOS Switches  Below is he block diagram and code for 2-to-1 multiplexer constructed by using CMOS switches 20
  • 22. Signal StrengthSignal Strength  Signal strength represents the ability of the source device to supply energy to drive the signal  There are two kinds of signal strength: Driving strength Charge storage strength  Signals with driving strengths propagate from gate outputs and continuous assignment outputs  There are four driving strengths: supply, strong, pull and weak  Signals with charge strength originates from trireg nets  There are three charge storage strengths: large, medium, small 22
  • 23. Signal StrengthSignal Strength  Strength level for scalar signal values  Scale of strengths 23
  • 24. Signal StrengthSignal Strength  A strength specification has two components: (strength0, strength1) or (strength1, strength0)  The default strength specification is: (strong0, strong1)  An output port of a gate primitive with drive strength has the syntax below: gate_name (strength1,strength0) [delay] [instance_name] (port_list); 24
  • 25. Signal ContentionSignal Contention  When multiple drivers drive a net at the same time, contention occurs on the net  Some of the rules for resolving contention is as below:  If two signals of unequal strength combine, the stronger signal is the results 25
  • 26. Signal ContentionSignal Contention  When two signals of equal strength and opposite value combine, the result has a value of x and the strength level of both signals and all smaller strength levels 26
  • 27. Signal ContentionSignal Contention  Block diagram, code and testbench: 27 y a b
  • 29. Trireg NetTrireg Net  The trireg net stores a value and it is used to model charge storage nodes  It can be in one of the two states below:  Driven state: At least one driver drives a value of 1, 0 or x on the net. The value is retained on the net. It takes the strength of the driver. The strength could be supply, strong, pull or weak  Capacitive state: When all the drivers to a trireg net are at the high-impedance (z), the net retains its last driven value. The strength could be small, medium (default) or large 29
  • 30. Trireg NetsTrireg Nets  Block diagram and code: 30
  • 31. Simulation ResultsSimulation Results  run #0 a=St1 b=St1 c=St1 x=St0 y=St0 z=St0 #10 a=St1 b=St0 c=St1 x=St0 y=HiZ z=Me0 #40 a=St1 b=St1 c=St1 x=St0 y=St0 z=St0 #50 a=St1 b=St0 c=St1 x=St0 y=HiZ z=Me0  Waveform 31