Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

What are the types of New & Virtual in SV ?

Status
Not open for further replies.

carrot

Full Member level 3
Joined
Feb 23, 2004
Messages
182
Helped
9
Reputation
18
Reaction score
4
Trophy points
1,298
Location
Bangalore, India
Activity points
1,532
Hi All,

I heard a couple of questions on system verilog very recently......

1. What are the types of new ? ( the hint given was, there are 4 types of new )
Is there really 4 types of new in system verilog?

2. What are the different types of Virtual ?

I'am really unaware of these 4 types of new and types of Virtulal.
Anyone aware of it, Can you please share it?

Thanks,
Carrot
 

Re: New & Virtual in SV !

Is this an interview trivia question?

Did you mean what is the use of the new and virtual keywords in SystemVerilog?

new is used to construct a class or covergroup, as well as allocate a dynamic array. Not sure what the 4th usage is.

virtual is used as a modifier to a method declaration, an abstract class declaration, and to declare a variable that can hold a handle to an interface.
 
  • Like
Reactions: carrot

    carrot

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top