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.

has Anybody used"BUS PLOT" in Chipscope?

Status
Not open for further replies.

xtcx

Advanced Member level 1
Joined
Dec 22, 2007
Messages
493
Helped
65
Reputation
130
Reaction score
58
Trophy points
1,308
Location
Bangalore, India
Activity points
5,003
chipscope bus plot

I have a program for FPGA which sends 14-bit sine values to dac. I want to check the sine wave using chipscope's Bus plot. I'm able to see the IO lines output in Chipscop,but I can't really find anything about using bus plot it....If any experts ever have used it to plot the data wrt time,please help me.Also tell me if it's possible to plot the sine wave from the DAC values?....Thanks
 

chipscope export waveform

answering to point -2(Also tell me if it's possible to plot the sine wave from the DAC values?) yes its possible tap input to dac & export to an output file and just use matlab to plot it .
 

capturing data with chipscope matlab

yes its possible tap input to dac & export to an output file and just use matlab to plot it .
Buddy, what do you mean?....I'm talking about realtime. After all in chipscope we can view the output with discrete time basis. While I yesterday,I was just looking for a way to Bus-plot, I first selected the dac IOs and added it to a new bus. Then I selected that new bus containing 14-bit data(14-pins) and selected Bus-plot. By selecting the time-data, I was able to look at the output, great I plotted it!....but too bad I din't get the sine wave properly...It appeared jerky. Anyway, at present my intensions aren't to prove it,so could you do a bit more help to plot it in Matlab.Please elaborate a bit further what to do from the waveform point of view in Chipscope,which format to export!....After all I guess it couldbe useful for everybody...Thanks
 

how to check clock frequency using chipscope

Added after 15 minutes:

real time data said:
even if you plot the data using chipscope the plot is on some fixed set of samples collected from a buffer of size you have choosen . so you can go by this way that you export the data of output waveform(file -> export command in c-scope) in unsigned or signed format into an output file as per requirment and just plot it in mlab
 

export chipscope waveforms

Thanks! ya...I will see for it and post the results as soon as possible....

Added after 54 minutes:

Hi!, I tried like you have said...But in export option,it only gives three format (.vcd,.asc,.fbdh)....How can you export the file to Matlab format?...Please help!....I'm using chipscope 8.2 with xilinx 8.2i
 

export chipscope waveform

After you capture the waveform you change it to signed values and export it as ascii format . Now the exported file will have the signed values of wave form .This file you load it in mlab
 

matlab +chipscope

Yes, I did! already export using ascii format....The big issue is that I get the same waveform in chipscope,matlab and in excel. All waveforms don't look like a sine but having series of ups and downs....Samples are not correctly placed....But when I connect the CRO to dac, I get a pure sinewave at 2MHz. can the chipscope really capture\plot the data at such high speeds?....Have you ever done that before?......
 

chipscope how to exprot data

For sampling a 2 MHz sine wave hardly 4 MHz clock rate is sufficient .The problem is not with the c-scope . Is the sine wave is a generated one inside fpga (I mean have you hard-coded the values and than reading) .Can u paste the output wave which is wrong
 

chipscope export to matlab

Hey guys!, I have got the sine wave exactly as I expected....All you need to do is to first select your individual data pins and then add them to a new bus. Name it as you like. Then highlight it by clicking it. Now click the Bus Plot on the top left(double click). By clicking run button, you will be able to get some waveform. Now it won't look like a sine after all...Last correction is that you have to select "Reverse bus" option by right clicking the new bus created...Now no wonder if you get sine wave"...
To Kalyansrinivas,
It's so simple and easy step Kalyansrinivas.....I tried the ways as you have said...Now I'm able to plot the wave in matlab too...However it doesn't add the convinient of plotting the data in realtime as Chipscope does.!!!.Also capturing and plotting the wave doesn't really make any sense with frequency,because though at first I changed the frequency of my dac clock,I couldn't get any results familiar....All you need to do is to select "Reverse Bus option"Anyway thanks friend!...
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top