[eispice] Re: expanded ibis example?

Hi Galen,

See below of another example, you can pick the device with the optional device 
argument in the Ibis constructor, i.e.

ibs = eispice.Ibis('filename.ibs', 'device name')

If you don't add a device name it will just use the first device (Component) in 
the model file.

There is a bug though (just found it), the device name must be in all 
lower-case 
letters in the argument in the eispice command, it can be in any case in the 
model file. You can fix that bug by changing line 93 in ibis.py
from:
Ibis_Parser.__init__(self, filename, device)
to:
Ibis_Parser.__init__(self, filename, device.lower())

Or just wait for the next release and in the meantime type the name into your 
sims using lower case letters.

Let me know if that works for you, or if you have any more questions.

import eispice
ibs = eispice.Ibis('cdcv304.ibs' , 'cdcv304(3.3v_clock_driver)')
cct = eispice.Circuit('IBIS Test')
cct.Vx = eispice.V('vs',0, 10, eispice.Pulse(0, 2.5,
'0n','0.1n','0.1n','4n','8n'))
cct.Rt = eispice.R('vs', 'vi', 50)
cct.Tg = eispice.T('vi', 0, 'vo', 0, 50, '2n')
cct.Receiver = ibs['1']('vo')
cct.tran('0.01n', '18n')
eispice.plot(cct)

Cheers,
Charles

Galen Seitz wrote:
> Hi,
> 
> Is there a more extensive ibis example available?  Specifically I'd
> like to know how to select a particular model within a single ibis
> file.  For example, the ibis file for a TI SN74LVC04A has models for
> three different operating voltages.  How do I select my desired model?
> 
> http://www.ti.com/litv/ibs/scem008c
> 
> thanks,
> galen
> 
------------------------------------------------------------------
To unsubscribe from the eispice list send an email to:
eispice-request@xxxxxxxxxxxxx with 'unsubscribe' in the Subject field

Other related posts: