The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Aug 16th, 2024, 3:19pm
Pages: 1
Send Topic Print
fstrobe for ADC testing (Read 2555 times)
nijMcnij
New Member
*
Offline



Posts: 1

fstrobe for ADC testing
Apr 10th, 2006, 4:43am
 
hello all,

i have modelled a 10 bit charge redistribution SAR ADC in verilog A, the thing works fine.....but until now i have only been checking the output values using the waveform editor......i would like to use the fstrobe function to record the digital outputs to a file for later analysis.

but here is the catch, the digital outputs are either 3.3V (for a digital 1) or a 0 for a digital 0......how to do use the fstrobe function to record a value of 1 for a 3.3V and a 0 for a 0.....i tried the %B formating code but i get a compilation error "not supported yet"....i am using spectre


many thanks for your assistance
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: fstrobe for ADC testing
Reply #1 - Apr 11th, 2006, 9:49pm
 
Well, at the point you're strobing, why not do something like:

Code:
integer digOut;

if (V(out)>1.7) digOut=1;
else digOut=0;
$fstrobe("...",digOut);
 



Andrew.
Back to top
 
 
View Profile WWW   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.