06-26-2008 12:06 AM
06-26-2008 03:51 PM
06-26-2008 06:25 PM
06-27-2008 02:55 AM
I'll try to find the time to create a simple schematic either tonight or this w/e. I uploaded the component to your website last night.
I created the model based on studying the models for a number of other analog switches supplied with Multisim, plus quite a bit of reading of the OrCad PSpice manual.
Why the Orcad manual? Because, for some reason I don't understand, NI don't appear to publish reference manuals and usage guides for their derivatives of Spice and XSPICE. So, for example, I couldn't find ANY documentation on (e.g.) aswitch, I just had to infer its usage from looking at other models in the library (e.g. 74hc4066). Similarly, I only found any detail of the adc_bridge and dac_bridge in one of the Co-Simulation tutorials on the web-site.
I guess I could have used a VSWITCH instead of an aswitch, but most of the models for analogue switches in the library that I could understand seemed to be using an aswitch. I didn't even contemplate basing my model on any of the analogue switches that were proper (or close to proper) models of the internal componentry of the ICs in question!
NI please publish a *complete* reference for people who need to create models. Don't assume that we all have years of experience of SPICE - I've only been creating models for components since about a month ago, and before then I had no SPICE knowledge at all, and I'm not working in a team where I can pick other folk's brains.
I also couldn't work out how to put a copyright (c) statement in the component I created.
Note that the model I created does what I need it for, but is by no means accurate, as it doesn't contain input caps, caps across each switch, clamping diodes, doesn't have any delay in either the digital section, or in the analogue switches (I don't even know if you can put that into an a_switch). I'm sure it wouldn't exhibit the same frequency response model, phase behaviour, jitter etc. as a real '4051 would.
If I had been feeling very masochistic, I could have taken the model of ONE of the internal switches used in the '4051 on the NXP website spice models for 74HC components, and used that to model the FETs in the switch section properly, but decided that for my purposes a naive model would suffice.
FWIW I've also created a bunch of 74AC components, a 74HC4017 Johnson Decade Counter, and have used the MAX999 model from the Maxim website to create a component for that.
As those are mostly based on the 74HC or 4000 series components shipped with Multisim, I think it very likely that NI will have a view on the copyright ownership of the derivate works ... so I'm loath to place them on your website without at least some form of "go ahead" nod from NI.
PS How do I mark this thread as having an answer???
Cheers
Dave
06-27-2008 04:51 PM
06-27-2008 09:37 PM