Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

ADC simulation testing using Verilog model for a block

Status
Not open for further replies.

nijMcnij

Full Member level 1
Full Member level 1
Joined
Dec 6, 2005
Messages
97
Helped
5
Reputation
10
Reaction score
4
Trophy points
1,288
Activity points
2,167
ADC simulation testing

hello all,

i am designing an ADC, and i was told that there is a way to create a verilog model for a block which can be connected to the ADC digital outputs.

the verilog block can then write the digital codes from the ADC to a file.

how can i do this

many thanks
 

willyboy19

Full Member level 3
Full Member level 3
Joined
Feb 15, 2004
Messages
152
Helped
12
Reputation
24
Reaction score
2
Trophy points
1,298
Activity points
1,705
Re: ADC simulation testing

Try use $fstrobe function and it will do the job.
 

    nijMcnij

    Points: 2
    Helpful Answer Positive Rating

swicap

Member level 5
Member level 5
Joined
Apr 4, 2004
Messages
86
Helped
14
Reputation
28
Reaction score
3
Trophy points
1,288
Activity points
637
ADC simulation testing

VerilogA model can do that,
it is easy to write this va block, check veriloga reference.
 

    nijMcnij

    Points: 2
    Helpful Answer Positive Rating

nijMcnij

Full Member level 1
Full Member level 1
Joined
Dec 6, 2005
Messages
97
Helped
5
Reputation
10
Reaction score
4
Trophy points
1,288
Activity points
2,167
Re: ADC simulation testing

i have created a verilog A model that uses the $fstrobe function.

hwoever the outputs of the ADC are 3.3V for a digital 1 and 0 for a digital 0....how can i use $fstrobe inorder to save a 1 for every 3.3V on the digital outputs.

many thanks
 

swicap

Member level 5
Member level 5
Joined
Apr 4, 2004
Messages
86
Helped
14
Reputation
28
Reaction score
3
Trophy points
1,288
Activity points
637
ADC simulation testing

$fstrobe can export data to a file.
use matlab to analysize the data.
It will be very easy to solve the problem u met.
 

    nijMcnij

    Points: 2
    Helpful Answer Positive Rating

redswat

Newbie level 6
Newbie level 6
Joined
Dec 20, 2002
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
66
ADC simulation testing

maybe you can use a ideal DAC in analog netlist to test your ADC outputs
 

chenliy

Junior Member level 2
Junior Member level 2
Joined
Mar 9, 2005
Messages
20
Helped
5
Reputation
10
Reaction score
1
Trophy points
1,283
Activity points
1,608
Re: ADC simulation testing

You could connect the input of DAC with the output of ADC.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top