I'm trying to add a dynamic spec to one of my outputs in "outputs setup" in adexl with a ocean script(see below). The reason is simply that my circuit spec will vary with supply. So, when adding the spec using axlAddSpecToOutput, it will use the same spec value on all runs instead of resfreshing the spec with new supply.
/*Get wave from sim*/
v_vih_new = value(VT("/i33in") cross(VT("/o2_new") (value(VT("/Anapower") 0) / 2) 1 "rising" nil nil))
session = axlGetWindowSession()
sdb = axlGetMainSetupDB(session)
axlAddSpecToOutput(sdb "Hyst" "Vih_new" ?gt value(VT("/Anapower") 0)*0.7)
You can't do this. What you want is the ability to have parameterized specs, which we talked about in your other post.