S
Svenn Are Bjerkem
Guest
Hi,
about a year ago, I asked how to switch a sp*tswicth from analogLib and got
an answer with a workaround from Andrew.
I now write an OCEAN script which is supposed to be started from icfb so I
can use some of the icfb specific functions described.
Now I have been playing with some cdf* Skill functions and wonder if it is
possible to change the value of a CDF field. What I have done so far is:
design( "lib_bjerkem" "circuit_tb" "schematic")
target = ddGetObj( "analogLib" "sp1tswitch" )
user = cdfGetBaseCellCDF(target)
now I can see some data about the switch with
user->?? in CIW
There is a property called
user->position->choises
that I have been playing around with by setting it to 0 and 1 with
user->position->choises = 1 or 0
and then do another
createNetlist( ?recreateAll t ?display t )
The "position" in the netlist is always what I set in the schematic.
I don't seem to be able to propagate the changes I do on the CIW back to the
design.
I would guess that I need to have a reference to one of the instances in my
schematic in order to be able to manipulate the cdf value directly. It
could also happen that the way I try to solve this problem is leading into
nowhere. Any Idea how to progress?
I could follow the work-around and copy the switch from analogLib to
lib_bjerkem, but I am trying to make an ocean-script that is supposed to be
very general and easy to modify for other purposes. I could also use the
electrically controlled switch and use a design variable. That will be the
end of this story if I don't succeed.
--
Svenn
about a year ago, I asked how to switch a sp*tswicth from analogLib and got
an answer with a workaround from Andrew.
I now write an OCEAN script which is supposed to be started from icfb so I
can use some of the icfb specific functions described.
Now I have been playing with some cdf* Skill functions and wonder if it is
possible to change the value of a CDF field. What I have done so far is:
design( "lib_bjerkem" "circuit_tb" "schematic")
target = ddGetObj( "analogLib" "sp1tswitch" )
user = cdfGetBaseCellCDF(target)
now I can see some data about the switch with
user->?? in CIW
There is a property called
user->position->choises
that I have been playing around with by setting it to 0 and 1 with
user->position->choises = 1 or 0
and then do another
createNetlist( ?recreateAll t ?display t )
The "position" in the netlist is always what I set in the schematic.
I don't seem to be able to propagate the changes I do on the CIW back to the
design.
I would guess that I need to have a reference to one of the instances in my
schematic in order to be able to manipulate the cdf value directly. It
could also happen that the way I try to solve this problem is leading into
nowhere. Any Idea how to progress?
I could follow the work-around and copy the switch from analogLib to
lib_bjerkem, but I am trying to make an ocean-script that is supposed to be
very general and easy to modify for other purposes. I could also use the
electrically controlled switch and use a design variable. That will be the
end of this story if I don't succeed.
--
Svenn