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.

[SOLVED] clarification in SPECMAN - E

Status
Not open for further replies.

ramesh.balaram

Newbie level 4
Joined
Dec 1, 2009
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
hyderabad
Activity points
1,311
can any body tell me the difference b/w "it" and "me ".....???????? where to use exactly?????
 
Last edited:

Hi,

when you do on the fly generation with gen
use the "it" keyword within the contraint-block to refere to the instance being generated

e.g.

gen_data_struct: example_s;
gen gen_data_struct keeping { it.xyz == 4; };
or

gen_data_struct: example_s;
gen gen_data_struct keeping {
it.kind in [ERR,OK];
it is a ERR example_s (s) => s.number_of_errors == 3;
};


you can use the "me" keyword to refer to the current struct-instance within the struct

e.g.

struct kkk_s {
post_generate() is also {
print me;
};
};
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top