The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 20th, 2024, 9:21am
Pages: 1
Send Topic Print
Stiumlus for a thermometer encoder using Spectre (Read 3598 times)
ywguo
Community Fellow
*****
Offline



Posts: 943
Shanghai, PRC
Stiumlus for a thermometer encoder using Spectre
Apr 06th, 2007, 7:53am
 
Hi, Guys,

I simulate a thermormeter encoder using Spectre. I wonder if there is any convenient solution to apply stimulus to the unit under test (UUT). The UUT is a thermormeter encoder for a current-steering encoder.

I want to apply a sinusoidal signal or a triangular signal to check the function of the UUT using Analog Design Environment or standalone spectre simulator.


Thanks
Yawei
Back to top
 
 
View Profile   IP Logged
Andrew Beckett
Senior Fellow
******
Offline

Life, don't talk to
me about Life...

Posts: 1742
Bracknell, UK
Re: Stiumlus for a thermometer encoder using Spect
Reply #1 - Apr 11th, 2007, 7:39am
 
You didn't really say what the inputs to your encoder look like - I'm guessing they are some kind of bus? You could use something like a verilog-a model of an ADC to convert the sine wave to a bus (e.g. adc_8bit_ideal in ahdlLib). I did this for writing my instructions for my response to your create bus question just now:

Code:
//
R0 (vd0 0) resistor r=1k
R1 (vd1 0) resistor r=1k
R2 (vd2 0) resistor r=1k
R3 (vd3 0) resistor r=1k
R4 (vd4 0) resistor r=1k
R5 (vd5 0) resistor r=1k
R6 (vd6 0) resistor r=1k
R7 (vd7 0) resistor r=1k
Vclk (vclk 0) vsource type=pulse val0=0 val1=5 rise=1n fall=1n width=50n period=
100n
Vsin (vin 0) vsource type=sine freq=1/30u ampl=0.5 dc=0.5
I1 (vd7 vd6 vd5 vd4 vd3 vd2 vd1 vd0 vin vclk) adc_8bit_ideal

tran tran stop=30u

ahdl_include "adc_8bit_ideal.va"
 



Regards,

Andrew.
Back to top
 
 
View Profile WWW   IP Logged
Andrew Beckett
Senior Fellow
******
Offline

Life, don't talk to
me about Life...

Posts: 1742
Bracknell, UK
Re: Stiumlus for a thermometer encoder using Spect
Reply #2 - Apr 11th, 2007, 7:39am
 
Whoops, the Vclk line got wrapped when I cut and paste it - you'd have spotted that, I'm sure  :-/

Andrew.
Back to top
 
 
View Profile WWW   IP Logged
ywguo
Community Fellow
*****
Offline



Posts: 943
Shanghai, PRC
Re: Stiumlus for a thermometer encoder using Spect
Reply #3 - Apr 12th, 2007, 3:40am
 
Hi, Andrew,

Thank you. I am not familiar with the verilog-A language. However, I instantiated an adc_8bit_ideal in ahdlLib in the schematic and simulated using Spectre in Analog Artist. It's great.


Yawei
Back to top
 
 
View Profile   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.