SlideShare a Scribd company logo
1 of 15
Download to read offline
DATA TYPES 
ANINDRA 
1
TYPES OF DATA TYPES…. 
 There are two groups of data types ….. 
I. Nets . 
II. Variable . 
 Verilog data types supports 4-state variables 0,1,X,Z. 
 These net data types are driven in the continuous assignment only . 
 Synthesizable. 
2 
12/11/2014
NET DATA TYPE ….. 
 What is net..? 
 The group of data types which are used for connections are known as net data types . 
 Net is the group of data types. 
 The default value of net data types is Z. 
3 
12/11/2014
NET DATA TYPES… 
 There are many data types in the net. 
 They are as follows :- 
 wire , tri , tri1, supply0 , wand , triand , tri0 , supply1 , wor , trior , trireg. 
 In these data types mostly we prefer wire data type . 
4 
12/11/2014
NET DATA TYPES… 
 WIRE :- 
 A wire net is typically used for nets that are driven by a single gate or continuous 
assignment. 
 Example : wire w1, w2; // declares 2 wires. 
 The default data type in declaration is wire . 
 TRI :- 
 A wire net is typically used for nets that are driven by multiple drivers drive a net . 
 Logical conflicts from multiple sources on a wire or a tri net result in unknown values 
unless the net is controlled by logic strength. 
5 
12/11/2014
NET DATA TYPES… 
 Example : tri [15:0] busa; // a tri-state 16-bit bus . 
 WIRED NETS :- 
 Wired nets are of type wor , wand , trior , and triand . 
 These are used to model wired logic configurations . 
 These will resolve the conflicts that result when multiple drivers drive the same net. 
 The wor and trior nets create wired or configurations, such that when any of the drivers is 
1, the net is 1. 
 The wand and triand nets create wired and configurations, such that if any driver is 0, the 
net is 0. 
6 
12/11/2014
NET DATA TYPES… 
 EXAMPLES : wor w1 ,w2 ; // or operation . 
 Wand x,y ; // and operation . 
 Trior [2:0] bus ; //or operation. 
 Triand [3:0] bus ; // and operation. 
7 
12/11/2014
NET DATA TYPES… 
 TRIREG :- 
 The trireg net stores a value and is used to model charge storage nodes. A trireg can be one 
of two states: 
 The Driven State :- When at least one driver of a trireg has a value of 1, 0, or x, that value 
propagates into the trireg and is the trireg’s driven value. 
 Capacitive State :- When all the drivers of a trireg net are at the high impedance value (z), 
the trireg net retains its last driven value; the high impedance 
 value does not propagate from the driver to the trireg. 
 This is only data type in net which is used to store. 
 EXAMPLE : trireg [2:0] bus ; // a charge storage node . 
8 
12/11/2014
NET DATA TYPES … 
 TRI0 AND TRI1 :- 
 The tri0 and tri1 nets model nets with resistive pulldown and resistive pullup devices on them. 
 When no driver drives a tri0 net, its value is 0. 
 When no driver drives a tri1 net, its value is 1. 
 These data types are use in the switch level modeling . 
 SUPPLY0 AND SUPPLY1 :- 
 These data types are used to strength the data types . 
 If one or more drivers drives the input the there is a chance of getting unknown value for 
output. In order to avoid that we these strengthen levels. 
 Where supply0(gnd) and 1(vdd) are part of the strength levels. 
9 
12/11/2014
VARIABLE DATA TYPES … 
 It is used to represent the data storage element. 
 The default value of variable data type is X. 
 Data types under the variable data type… 
 Reg , integer , real , time . 
 REG :- 
 This data type is used to represent the data storage element . 
 It holds the value , Until the a new value is assigned to it . 
 This reg is used when the variables are declared in the procedural blocks only (always and 
initial block). 
 Example :- reg [2:0] out ; //where the out is used in the procedural block . 
10 
12/11/2014
VARIABLE DATA TYPES… 
 Integer :- 
 It is used to declare integers. 
 Example :- integer count ; //assume that count is an integer value. 
 It is signed. 
 It is synthesizable . 
 Default size is 32 bit. 
 Real :- 
 Used to declare the real values. 
 Default size is 64 bit. 
 Not synthesizable . 
11 
12/11/2014
VARIABLE DATA TYPES … 
 EXAMPLE :- real x; 
 initial 
 begin 
 x=4.47; 
 #10 x=3.2; 
 end 
12 
12/11/2014
VARIABLE DATA TYPES… 
 Time :- 
 This is used to record the simulation time . 
 Default size is 64 bit . 
 Not synthesizable . 
 Example :- time snapshot ; 
13 
12/11/2014
IMPORTANT POINTS … 
 Net is not a keyword. 
 Reg is same not as hardware register . 
 The default data type is wire. 
 The rules for using nets and registers in ports of modules and primitives: 
14 
12/11/2014 
Data type input output inout 
wire yes yes yes 
Reg No Yes no
THANK YOU….. 
15 
12/11/2014

More Related Content

What's hot (20)

Delays in verilog
Delays in verilogDelays in verilog
Delays in verilog
 
Crash course in verilog
Crash course in verilogCrash course in verilog
Crash course in verilog
 
Serial Peripheral Interface(SPI)
Serial Peripheral Interface(SPI)Serial Peripheral Interface(SPI)
Serial Peripheral Interface(SPI)
 
Verilog
VerilogVerilog
Verilog
 
Verilog operators.pptx
Verilog  operators.pptxVerilog  operators.pptx
Verilog operators.pptx
 
Pass Transistor Logic
Pass Transistor LogicPass Transistor Logic
Pass Transistor Logic
 
Verilog Tasks and functions
Verilog Tasks and functionsVerilog Tasks and functions
Verilog Tasks and functions
 
FPGA
FPGAFPGA
FPGA
 
Asic design
Asic designAsic design
Asic design
 
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)
 
ANALOG TO DIGITAL CONVERTOR
ANALOG TO DIGITAL CONVERTORANALOG TO DIGITAL CONVERTOR
ANALOG TO DIGITAL CONVERTOR
 
VHDL-PRESENTATION.ppt
VHDL-PRESENTATION.pptVHDL-PRESENTATION.ppt
VHDL-PRESENTATION.ppt
 
APB protocol v1.0
APB protocol v1.0APB protocol v1.0
APB protocol v1.0
 
Day2 Verilog HDL Basic
Day2 Verilog HDL BasicDay2 Verilog HDL Basic
Day2 Verilog HDL Basic
 
Verilog tutorial
Verilog tutorialVerilog tutorial
Verilog tutorial
 
Shift Registers
Shift RegistersShift Registers
Shift Registers
 
Introduction to System verilog
Introduction to System verilog Introduction to System verilog
Introduction to System verilog
 
Modules and ports in Verilog HDL
Modules and ports in Verilog HDLModules and ports in Verilog HDL
Modules and ports in Verilog HDL
 
PLDs
PLDsPLDs
PLDs
 
Actel fpga
Actel fpgaActel fpga
Actel fpga
 

Similar to Data types in verilog

Performance evaluation of least disruptive topology repair algorithm (ledir) ...
Performance evaluation of least disruptive topology repair algorithm (ledir) ...Performance evaluation of least disruptive topology repair algorithm (ledir) ...
Performance evaluation of least disruptive topology repair algorithm (ledir) ...ijwmn
 
International Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentInternational Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentIJERD Editor
 
New Scheme for Secured Routing in MANET
New Scheme for Secured Routing in MANET New Scheme for Secured Routing in MANET
New Scheme for Secured Routing in MANET IJCSEA Journal
 
Financial Networks IV. Analyzing and Visualizing Exposures
Financial Networks IV. Analyzing and Visualizing ExposuresFinancial Networks IV. Analyzing and Visualizing Exposures
Financial Networks IV. Analyzing and Visualizing ExposuresKimmo Soramaki
 
Sv data types and sv interface usage in uvm
Sv data types and sv interface usage in uvmSv data types and sv interface usage in uvm
Sv data types and sv interface usage in uvmHARINATH REDDY
 
Implementation of Spanning Tree Protocol using ns-3
Implementation of Spanning Tree Protocol using ns-3Implementation of Spanning Tree Protocol using ns-3
Implementation of Spanning Tree Protocol using ns-3Naishil Shah
 
Administrator&trust based routing protocol
Administrator&trust based routing protocolAdministrator&trust based routing protocol
Administrator&trust based routing protocolNinad Samel
 
Game based TDMA MAC protocol for vehicular network
Game based TDMA MAC protocol for vehicular networkGame based TDMA MAC protocol for vehicular network
Game based TDMA MAC protocol for vehicular networkankit panigrahy
 
UNET: Massive Scale DNN on Spark
UNET: Massive Scale DNN on SparkUNET: Massive Scale DNN on Spark
UNET: Massive Scale DNN on SparkZhan Zhang
 
Energy Efficient Routing Strategies for Large Scale Wireless Sensor in Hetero...
Energy Efficient Routing Strategies for Large Scale Wireless Sensor in Hetero...Energy Efficient Routing Strategies for Large Scale Wireless Sensor in Hetero...
Energy Efficient Routing Strategies for Large Scale Wireless Sensor in Hetero...ijtsrd
 
Lecture 6: IoT Data Processing
Lecture 6: IoT Data Processing Lecture 6: IoT Data Processing
Lecture 6: IoT Data Processing PayamBarnaghi
 
Final Report(Routing_Misbehavior)
Final Report(Routing_Misbehavior)Final Report(Routing_Misbehavior)
Final Report(Routing_Misbehavior)Ambreen Zafar
 
CISSP Week 7
CISSP Week 7CISSP Week 7
CISSP Week 7jemtallon
 
study-of-network-simulator.pdf
study-of-network-simulator.pdfstudy-of-network-simulator.pdf
study-of-network-simulator.pdfJayaprasanna4
 
Snmp by akhilesh verma
Snmp by akhilesh vermaSnmp by akhilesh verma
Snmp by akhilesh vermaAkki Verma
 
Verilog data types -For beginners
Verilog data types -For beginnersVerilog data types -For beginners
Verilog data types -For beginnersDr.YNM
 
Node Legitimacy Based False Data Filtering Scheme in Wireless Sensor Networks
Node Legitimacy Based False Data Filtering Scheme in Wireless Sensor NetworksNode Legitimacy Based False Data Filtering Scheme in Wireless Sensor Networks
Node Legitimacy Based False Data Filtering Scheme in Wireless Sensor NetworksEswar Publications
 
Efficient use of Energy in WSN using H-LEACH
Efficient use of Energy in WSN using H-LEACHEfficient use of Energy in WSN using H-LEACH
Efficient use of Energy in WSN using H-LEACHdbpublications
 
OSMC 2017 | SNMP explained by Rob Hassing
OSMC 2017 | SNMP explained by Rob HassingOSMC 2017 | SNMP explained by Rob Hassing
OSMC 2017 | SNMP explained by Rob HassingNETWAYS
 

Similar to Data types in verilog (20)

Performance evaluation of least disruptive topology repair algorithm (ledir) ...
Performance evaluation of least disruptive topology repair algorithm (ledir) ...Performance evaluation of least disruptive topology repair algorithm (ledir) ...
Performance evaluation of least disruptive topology repair algorithm (ledir) ...
 
class 6
class 6class 6
class 6
 
International Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentInternational Journal of Engineering Research and Development
International Journal of Engineering Research and Development
 
New Scheme for Secured Routing in MANET
New Scheme for Secured Routing in MANET New Scheme for Secured Routing in MANET
New Scheme for Secured Routing in MANET
 
Financial Networks IV. Analyzing and Visualizing Exposures
Financial Networks IV. Analyzing and Visualizing ExposuresFinancial Networks IV. Analyzing and Visualizing Exposures
Financial Networks IV. Analyzing and Visualizing Exposures
 
Sv data types and sv interface usage in uvm
Sv data types and sv interface usage in uvmSv data types and sv interface usage in uvm
Sv data types and sv interface usage in uvm
 
Implementation of Spanning Tree Protocol using ns-3
Implementation of Spanning Tree Protocol using ns-3Implementation of Spanning Tree Protocol using ns-3
Implementation of Spanning Tree Protocol using ns-3
 
Administrator&trust based routing protocol
Administrator&trust based routing protocolAdministrator&trust based routing protocol
Administrator&trust based routing protocol
 
Game based TDMA MAC protocol for vehicular network
Game based TDMA MAC protocol for vehicular networkGame based TDMA MAC protocol for vehicular network
Game based TDMA MAC protocol for vehicular network
 
UNET: Massive Scale DNN on Spark
UNET: Massive Scale DNN on SparkUNET: Massive Scale DNN on Spark
UNET: Massive Scale DNN on Spark
 
Energy Efficient Routing Strategies for Large Scale Wireless Sensor in Hetero...
Energy Efficient Routing Strategies for Large Scale Wireless Sensor in Hetero...Energy Efficient Routing Strategies for Large Scale Wireless Sensor in Hetero...
Energy Efficient Routing Strategies for Large Scale Wireless Sensor in Hetero...
 
Lecture 6: IoT Data Processing
Lecture 6: IoT Data Processing Lecture 6: IoT Data Processing
Lecture 6: IoT Data Processing
 
Final Report(Routing_Misbehavior)
Final Report(Routing_Misbehavior)Final Report(Routing_Misbehavior)
Final Report(Routing_Misbehavior)
 
CISSP Week 7
CISSP Week 7CISSP Week 7
CISSP Week 7
 
study-of-network-simulator.pdf
study-of-network-simulator.pdfstudy-of-network-simulator.pdf
study-of-network-simulator.pdf
 
Snmp by akhilesh verma
Snmp by akhilesh vermaSnmp by akhilesh verma
Snmp by akhilesh verma
 
Verilog data types -For beginners
Verilog data types -For beginnersVerilog data types -For beginners
Verilog data types -For beginners
 
Node Legitimacy Based False Data Filtering Scheme in Wireless Sensor Networks
Node Legitimacy Based False Data Filtering Scheme in Wireless Sensor NetworksNode Legitimacy Based False Data Filtering Scheme in Wireless Sensor Networks
Node Legitimacy Based False Data Filtering Scheme in Wireless Sensor Networks
 
Efficient use of Energy in WSN using H-LEACH
Efficient use of Energy in WSN using H-LEACHEfficient use of Energy in WSN using H-LEACH
Efficient use of Energy in WSN using H-LEACH
 
OSMC 2017 | SNMP explained by Rob Hassing
OSMC 2017 | SNMP explained by Rob HassingOSMC 2017 | SNMP explained by Rob Hassing
OSMC 2017 | SNMP explained by Rob Hassing
 

More from Nallapati Anindra

digital logic design number system
digital logic design number systemdigital logic design number system
digital logic design number systemNallapati Anindra
 
Synchronous and asynchronous reset
Synchronous and asynchronous resetSynchronous and asynchronous reset
Synchronous and asynchronous resetNallapati Anindra
 
Synchronous and asynchronous clock
Synchronous and asynchronous clockSynchronous and asynchronous clock
Synchronous and asynchronous clockNallapati Anindra
 
Sequential circuits in digital logic design
Sequential circuits in digital logic designSequential circuits in digital logic design
Sequential circuits in digital logic designNallapati Anindra
 
Functions and tasks in verilog
Functions and tasks in verilogFunctions and tasks in verilog
Functions and tasks in verilogNallapati Anindra
 

More from Nallapati Anindra (6)

digital logic design number system
digital logic design number systemdigital logic design number system
digital logic design number system
 
Synchronous and asynchronous reset
Synchronous and asynchronous resetSynchronous and asynchronous reset
Synchronous and asynchronous reset
 
Synchronous and asynchronous clock
Synchronous and asynchronous clockSynchronous and asynchronous clock
Synchronous and asynchronous clock
 
Sequential circuits in digital logic design
Sequential circuits in digital logic designSequential circuits in digital logic design
Sequential circuits in digital logic design
 
Metastability
MetastabilityMetastability
Metastability
 
Functions and tasks in verilog
Functions and tasks in verilogFunctions and tasks in verilog
Functions and tasks in verilog
 

Recently uploaded

result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 

Recently uploaded (20)

result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 

Data types in verilog

  • 2. TYPES OF DATA TYPES….  There are two groups of data types ….. I. Nets . II. Variable .  Verilog data types supports 4-state variables 0,1,X,Z.  These net data types are driven in the continuous assignment only .  Synthesizable. 2 12/11/2014
  • 3. NET DATA TYPE …..  What is net..?  The group of data types which are used for connections are known as net data types .  Net is the group of data types.  The default value of net data types is Z. 3 12/11/2014
  • 4. NET DATA TYPES…  There are many data types in the net.  They are as follows :-  wire , tri , tri1, supply0 , wand , triand , tri0 , supply1 , wor , trior , trireg.  In these data types mostly we prefer wire data type . 4 12/11/2014
  • 5. NET DATA TYPES…  WIRE :-  A wire net is typically used for nets that are driven by a single gate or continuous assignment.  Example : wire w1, w2; // declares 2 wires.  The default data type in declaration is wire .  TRI :-  A wire net is typically used for nets that are driven by multiple drivers drive a net .  Logical conflicts from multiple sources on a wire or a tri net result in unknown values unless the net is controlled by logic strength. 5 12/11/2014
  • 6. NET DATA TYPES…  Example : tri [15:0] busa; // a tri-state 16-bit bus .  WIRED NETS :-  Wired nets are of type wor , wand , trior , and triand .  These are used to model wired logic configurations .  These will resolve the conflicts that result when multiple drivers drive the same net.  The wor and trior nets create wired or configurations, such that when any of the drivers is 1, the net is 1.  The wand and triand nets create wired and configurations, such that if any driver is 0, the net is 0. 6 12/11/2014
  • 7. NET DATA TYPES…  EXAMPLES : wor w1 ,w2 ; // or operation .  Wand x,y ; // and operation .  Trior [2:0] bus ; //or operation.  Triand [3:0] bus ; // and operation. 7 12/11/2014
  • 8. NET DATA TYPES…  TRIREG :-  The trireg net stores a value and is used to model charge storage nodes. A trireg can be one of two states:  The Driven State :- When at least one driver of a trireg has a value of 1, 0, or x, that value propagates into the trireg and is the trireg’s driven value.  Capacitive State :- When all the drivers of a trireg net are at the high impedance value (z), the trireg net retains its last driven value; the high impedance  value does not propagate from the driver to the trireg.  This is only data type in net which is used to store.  EXAMPLE : trireg [2:0] bus ; // a charge storage node . 8 12/11/2014
  • 9. NET DATA TYPES …  TRI0 AND TRI1 :-  The tri0 and tri1 nets model nets with resistive pulldown and resistive pullup devices on them.  When no driver drives a tri0 net, its value is 0.  When no driver drives a tri1 net, its value is 1.  These data types are use in the switch level modeling .  SUPPLY0 AND SUPPLY1 :-  These data types are used to strength the data types .  If one or more drivers drives the input the there is a chance of getting unknown value for output. In order to avoid that we these strengthen levels.  Where supply0(gnd) and 1(vdd) are part of the strength levels. 9 12/11/2014
  • 10. VARIABLE DATA TYPES …  It is used to represent the data storage element.  The default value of variable data type is X.  Data types under the variable data type…  Reg , integer , real , time .  REG :-  This data type is used to represent the data storage element .  It holds the value , Until the a new value is assigned to it .  This reg is used when the variables are declared in the procedural blocks only (always and initial block).  Example :- reg [2:0] out ; //where the out is used in the procedural block . 10 12/11/2014
  • 11. VARIABLE DATA TYPES…  Integer :-  It is used to declare integers.  Example :- integer count ; //assume that count is an integer value.  It is signed.  It is synthesizable .  Default size is 32 bit.  Real :-  Used to declare the real values.  Default size is 64 bit.  Not synthesizable . 11 12/11/2014
  • 12. VARIABLE DATA TYPES …  EXAMPLE :- real x;  initial  begin  x=4.47;  #10 x=3.2;  end 12 12/11/2014
  • 13. VARIABLE DATA TYPES…  Time :-  This is used to record the simulation time .  Default size is 64 bit .  Not synthesizable .  Example :- time snapshot ; 13 12/11/2014
  • 14. IMPORTANT POINTS …  Net is not a keyword.  Reg is same not as hardware register .  The default data type is wire.  The rules for using nets and registers in ports of modules and primitives: 14 12/11/2014 Data type input output inout wire yes yes yes Reg No Yes no
  • 15. THANK YOU….. 15 12/11/2014