In my ADE enviroment, I tend to end up with many variables and outputs. ADE does not these lists and when you have a lot of variables and outputs it gets hard to find the one you are looking for. So I wrote a small script to sort the lists, but in order to see the results I have either: Save state and reload it to see sorted variables and outputs. Or create and then delete a dummy variable or output to update variables and outputs lists. Does anyone know how to update those lists in the ADE windows without doing the work around I mentioned?
Here is my code for sorting:
cs=window(30)->sevSession ; Get session by using its window numberqq=copy(cs->variables) ; Get copy of variables; Sort the variablesrr=sort( qq 'lambda( ( a b ) ( strcmp( a->name b->name ) <= 0 ) ) ); Renumber the variable indexcntr=1foreach( x rr x->index=cntr cntr++)cs->variables=rrqq2=copy(cs->outputs) ; Get copy of outputs; Sort the outputsrr2=sort( qq2 'lambda( ( a b ) ; use non-nil fields for strcmp if( a~>name != nil then name1 = a~>name else if( a~>signal != nil then name1 = a~>signal else name1 = expression ) ) if( b~>name != nil then name2 = b~>name else if( b~>signal != nil then name2 = b~>signal else name2 = expression ) ) ( strcmp( name1 name2 ) <= 0 ) ) ); Renumber the output indexcntr=1foreach( x2 rr2 x2->index=cntr cntr++)cs->outputs=rr2
In reply to Andrew Beckett:
I am using IC51. It's unfortunate, that IC51 functions are still being kept private. We won't be using IC6 for a while, we are too heavily entrenched with IC51.
In reply to edogd:
It's not a matter of the functions being "kept private". The vast majority of SKILL that runs in IC5141 will also work in IC61 too. If we make a function public in IC5141, it puts the onus on Cadence to ensure that the function continues to be supported in IC61X releases as well. This means that we cannot change those functions, we need to document all those functions, and so on.
So it's a practical trade off, I'm afraid.
That said, I'm happy to provide the code to you as an individual, provided that it is used with care and not used beyond its expected life (i.e. no need to use it in IC614). Please log a service request via support.cadence.com and ask the AE to contact me and I'll provide the code. I just don't want to post it here as it's then effectively documenting the functions for all.