The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Design >> Mixed-Signal Design >> fstrobe for ADC testing
https://designers-guide.org/forum/YaBB.pl?num=1144669437

Message started by nijMcnij on Apr 10th, 2006, 4:43am

Title: fstrobe for ADC testing
Post by nijMcnij on 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

Title: Re: fstrobe for ADC testing
Post by Andrew Beckett on 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.

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