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)

flip flop circuits and its applications
flip flop circuits and its applicationsflip flop circuits and its applications
flip flop circuits and its applications
 
Verilog tutorial
Verilog tutorialVerilog tutorial
Verilog tutorial
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
 
UART
UARTUART
UART
 
Asic design
Asic designAsic design
Asic design
 
Verilog full adder in dataflow & gate level modelling style.
Verilog full adder in dataflow  & gate level modelling style.Verilog full adder in dataflow  & gate level modelling style.
Verilog full adder in dataflow & gate level modelling style.
 
Divide by N clock
Divide by N clockDivide by N clock
Divide by N clock
 
Sequential Logic Circuit
Sequential Logic CircuitSequential Logic Circuit
Sequential Logic Circuit
 
Latches and flip flop
Latches and flip flopLatches and flip flop
Latches and flip flop
 
Verilog lab manual (ECAD and VLSI Lab)
Verilog lab manual (ECAD and VLSI Lab)Verilog lab manual (ECAD and VLSI Lab)
Verilog lab manual (ECAD and VLSI Lab)
 
Delays in verilog
Delays in verilogDelays in verilog
Delays in verilog
 
Data Flow Modeling
Data Flow ModelingData Flow Modeling
Data Flow Modeling
 
Data flow model -Lecture-4
Data flow model -Lecture-4Data flow model -Lecture-4
Data flow model -Lecture-4
 
EC6601 VLSI Design Memory Circuits
EC6601 VLSI Design   Memory CircuitsEC6601 VLSI Design   Memory Circuits
EC6601 VLSI Design Memory Circuits
 
Convolutional codes
Convolutional codesConvolutional codes
Convolutional codes
 
Switch level modeling
Switch level modelingSwitch level modeling
Switch level modeling
 
Programmable logic devices
Programmable logic devicesProgrammable logic devices
Programmable logic devices
 
Verilog operators.pptx
Verilog  operators.pptxVerilog  operators.pptx
Verilog operators.pptx
 
Code conversion using verilog code VHDL
Code conversion using verilog code VHDL Code conversion using verilog code VHDL
Code conversion using verilog code VHDL
 
Verilog presentation final
Verilog presentation finalVerilog presentation final
Verilog presentation final
 

Similar to Hanbat National University Structural Modeling Static and Dynamic Hazards

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
 
tutorial_pscad.pptx
tutorial_pscad.pptxtutorial_pscad.pptx
tutorial_pscad.pptxdfddfdf5
 

Similar to Hanbat National University Structural Modeling Static and Dynamic Hazards (20)

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
 
tutorial_pscad.pptx
tutorial_pscad.pptxtutorial_pscad.pptx
tutorial_pscad.pptx
 

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
 
Finite state machines
Finite state machinesFinite state machines
Finite state machinesdennis 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 (19)

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
 
Finite state machines
Finite state machinesFinite state machines
Finite state machines
 
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

Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 

Recently uploaded (20)

Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 

Hanbat National University Structural Modeling Static and Dynamic 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