The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Simulators >> Circuit Simulators >> How to generayte uramp usingSpectreRF??
https://designers-guide.org/forum/YaBB.pl?num=1107336662

Message started by fchirouf on Feb 2nd, 2005, 1:31am

Title: How to generayte uramp usingSpectreRF??
Post by fchirouf on Feb 2nd, 2005, 1:31am

Hello all!
I need to use uramp function in spectreRF, so I don't know who to generate it. So, as well know that uramp is a specifique function to SPICE (berkeley).  
Can any body tel me how to generate this function by SpectreRF.
Advance thinks

Title: Re: How to generayte uramp usingSpectreRF??
Post by Andrew Beckett on Feb 2nd, 2005, 10:02am

I did some searching on google, having never come across uramp before. As far as I can see from http://www.beigebag.com/case_logical_3.htm it is simply:

uramp(f(a)) == f(a) if f(a)>0, else 0.

http://www.anasoft.co.uk/Spice3F5Manual.html says the same thing.

So in spectre, that would be:


Code:
// model of what I think uramp does
//

v1 (1 0) vsource type=sine freq=1M ampl=1
v2 (2 0) bsource v=v(1)>0?v(1):0

tran tran stop=5u maxstep=10n


Regards,

Andrew.

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.