Quantcast
Channel: Cadence Functional Verification Forum
Viewing all articles
Browse latest Browse all 1069

Problem with user define net types resolution functions

$
0
0

Hi all,
I have defined a net in this way:
typedef struct{
real V;
real I;
} EEstruct;

function automatic EEstruct res_EE(input EEstruct driver[]);
foreach(driver[i]) begin
.....

to debug my resolution function I need to know which driver is driving the net. How can I know this information?
what kind of data structure driver is? Is there a name field in the driver element or somthing like that?

Another questione,
In the testbench I assign the net in the following way:

assign mynet = '{1.0,2.0}; // is this correct?
assign mynet2 = '{`wrealZState, `wrealZState};

Are this assignment correct?

Thanks,
Jack


Viewing all articles
Browse latest Browse all 1069

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>