The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Simulators >> Circuit Simulators >> adding property to switched master of an instance
https://designers-guide.org/forum/YaBB.pl?num=1198222062

Message started by rajdeep on Dec 20th, 2007, 11:27pm

Title: adding property to switched master of an instance
Post by rajdeep on 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

Title: Re: adding property to switched master of an insta
Post by bernd on 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

Title: Re: adding property to switched master of an insta
Post by rajdeep on 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 :-(

Any suggestions??

RAjdeep

Title: Re: adding property to switched master of an insta
Post by rajdeep on 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

Title: Re: adding property to switched master of an instance
Post by gzatorre on 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


The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.