|
System verilog object oriented concepts
|
What is Object oriented programming :
- OOP is object oriented programming
- Classes form the base of OOP programming
- Encapsulation - OOP binds data & function together
- Inheritance –extend the functionality of existing objects
- Polymorphism – wait until runtime to bind data with functions
- OOP breaks a testbench into blocks that work together to accomplish the verification goal
Why Object oriented programming :
- Highly abstract system level modelling
- Classes are intended for verification
- Classes are easily reused and extended
- Data security
- Classes are dynamic in nature
- Easy debugging, one class at a time
What is Inheritence :
- Inheritance is to reuse the existing codev
- Inheritance allows to add new
- Data members(properties)
- New Methods
- Inheritance is to share code between classes
What is Advantage of Inheritence :
- Common code can be grouped into one class
- No need to modify the existing classes
- Add new features to existing class by means of new derived classes
- Easy debug & easy to maintain the code base
|
|
This Articles is written/submitted by puneet (Puneet Aggarwal). You can also contribute to Asicguru.com. Click here to start
|
Prev << Classes
|
Next >> Inter process communication
|