The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 16th, 2024, 4:31pm
Pages: 1
Send Topic Print
adding property to switched master of an instance (Read 1871 times)
rajdeep
Senior Member
****
Offline



Posts: 220
UK
adding property to switched master of an instance
Dec 20th, 2007, 11:27pm
 
Hi all,

I want to add hnlVerilogCDFdefparamList property on the switched master of the instance cell.
But I do not know how to add property to the switched master of an instance cell.

[This might solve the problem I'm facing otherwise of making the verilog cell understand that I have
declared a set of CDF properties for it.]

Plz help!
Rajdeep
Back to top
 
 

Design is fun, verification is a requirement.
View Profile   IP Logged
bernd
Senior Member
****
Offline



Posts: 229
Munich/Germany
Re: adding property to switched master of an insta
Reply #1 - Dec 21st, 2007, 1:10am
 
You can either do it through the library manger or through SKILL.

Lib. Mgr.:
- Right Mouse click over the desired view
- Properties
- [Edit -> Create...]
- View Property Editor
- Add
- hnlVerilogCDFdefparamList <dataType> <value>

SKILL:

d_cvId = dbOpenCellViewByType( t_libName t_cellName t_viewName nil "a" )
dbCreateProp( d_cvId "hnlVerilogCDFdefparamList" "<dataType>"  <value> )
dbSave( d_cvId )
dbClose( d_cvId )

Bernd
Back to top
 
 

Just another lonesome cad guy
View Profile WWW   IP Logged
rajdeep
Senior Member
****
Offline



Posts: 220
UK
Re: adding property to switched master of an insta
Reply #2 - Dec 21st, 2007, 2:28am
 
Hi Bernd,

Thanks a lot.

But my main problem is still not solved. I was trying to add this property to a verilog module so that it can understand that I have
decared some CDF properties for it. Unfortunately it is still not detecting that.

From Cadenc's online manual I got the hint that I need to add this parameter. It said to add hnlVerilogCDFdefparamList to the switched master of the instance. Its data Type should be List and the value is the name of the CDF parameter. In the data Type cyclic field I could not find List!!!!!!
So I chose string. May be that's why it is not working Sad

Any suggestions??

RAjdeep
Back to top
 
 

Design is fun, verification is a requirement.
View Profile   IP Logged
rajdeep
Senior Member
****
Offline



Posts: 220
UK
Re: adding property to switched master of an insta
Reply #3 - Dec 24th, 2007, 6:13am
 
Hi Bernd,

It worked!! I was not giving the dataValue, which in this case is a list type properly.

Thanks
Rajdeep
Back to top
 
 

Design is fun, verification is a requirement.
View Profile   IP Logged
gzatorre
New Member
*
Offline



Posts: 2

Re: adding property to switched master of an instance
Reply #4 - Jun 10th, 2009, 1:50am
 
Hello everybody,

Sorry for continuing so old post but I have the problems is derived in this and the solution you gave does not work for me. The link you mentioned are not working any more and I can find some other useful advise from Internet.

I created a verilog description of a 14bit register, now I want to add some parameters in order to pass some variables form the analog environment. I defined those variables as "parameter" inside the verilog code:

parameter step=1;
parameter set_value=16383;
parameter reset_value=0;

and I added those variables in cell CDF:

paramType --> String
parseAsNumber --> Yes
units --> don't use
parseAsCell --> yes
storeDefault --> no
name --> step
prompt --> step
defValue --> 1
I did not filled the rest of the boxes.

I added the property to the "symbol" and "verilog" views using the Lib. Mgr. steps that Bernd suggested:

Lib. Mgr.:
- Right Mouse click over the desired view
- Properties
- [Edit -> Create...]
- View Property Editor
- Add
- hnlVerilogCDFdefparamList <dataType> <value>

In the "Name" field I put, exactly "hnlVerilogCDFdefparamList <dataType> <value>"
Type --> string
Value --> 0
Possible Choices --> nothing

I have created a schematic view where the symbol of this cell is used. I can view the properties in the "Edit Object Properties" of this cell in the "CDF Parameter" section but, when I change the values there and run a spectreVerilog simulation, there are not any change in those variables and the netlister use the values defined as default inside the verilog code.

some questions:
- Which one is the "switch master instance"?
- There is onother solution to pass parameters to a verilog view from the "Analog Design Environment"
- Who can I run the skill commands thar Bernd suggested?

Thank you in advance.
Please, any advise will be appreciated.

Guillermo

Back to top
 
 
View Profile   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.