E
erikwanta
Guest
I am trying to get instance nets to netlist as terminals in AMS. I
want to use the amsPrintIO function but I need to create an
amsobject. I have the terminal name that I want to use but don't know
how to create the amsobject. Any ideas?
*Error* amsPrintIO: argument #2 should be amsobject (type template =
"AA") - "gnd!"
(defun MYIONetProc ( formatterId cellViewId @optional xx)
foreach(inst cellViewId~>id~>instances
when(car(inst~>instTerms~>net~>name)
iostruct=car(inst~>instTerms~>net~>name)
amsPrintIO(formatterId iostruct )
) ; when
) ; foreach
;(foreach io (sort cellViewId->IOs (lambda (a b) (alphalessp a->name
b->name)))
; (amsPrintIO formatterId io)
; amsPrint(formatterId io~>attributes)
; ) ; foreach
t
) ; defun
;; Set up the custom netlist procedure
netId = amsGetNetlister()
vlog = netId->vlog
vlog->iosProc = 'MYIONetProc
want to use the amsPrintIO function but I need to create an
amsobject. I have the terminal name that I want to use but don't know
how to create the amsobject. Any ideas?
*Error* amsPrintIO: argument #2 should be amsobject (type template =
"AA") - "gnd!"
(defun MYIONetProc ( formatterId cellViewId @optional xx)
foreach(inst cellViewId~>id~>instances
when(car(inst~>instTerms~>net~>name)
iostruct=car(inst~>instTerms~>net~>name)
amsPrintIO(formatterId iostruct )
) ; when
) ; foreach
;(foreach io (sort cellViewId->IOs (lambda (a b) (alphalessp a->name
b->name)))
; (amsPrintIO formatterId io)
; amsPrint(formatterId io~>attributes)
; ) ; foreach
t
) ; defun
;; Set up the custom netlist procedure
netId = amsGetNetlister()
vlog = netId->vlog
vlog->iosProc = 'MYIONetProc