Oscilloscope with Dragon and Flash boards ?

Dragon

Oscilloscope with Dragon and Flash boards ?

Postby Lan Tran » Fri Dec 15, 2006 9:07 pm

Hi,

I just got the Dragon v. J 100K and Flash board ( 2 A/D ).
I run FPGA configuartor and load use USB cable.
It work ok with led samples.
I try the oscilloscope by load
C:\FPGA-AD\Sample files\Dragon 100K Flashy.bit

Then use tool Flash oscilloscope
Use option Flashy J and 100 MHz but cannot any signal.

My signal is 1 dBm connect to one of the BNC input.

Please advice.

Thank
Tran
Lan Tran
 
Posts: 9
Joined: Thu Dec 22, 2005 4:27 pm

Postby fpga4fun » Sat Dec 16, 2006 3:12 am

What is the amplitude (in volts)?
Do you get a signal if you just touch the BNC input (Flashy is very sensitive, just touching the input signal will make the trace move).
fpga4fun
Site Admin
 
Posts: 837
Joined: Thu Sep 18, 2003 6:47 am

Postby Lan Tran » Tue Dec 19, 2006 3:55 pm

Hi,

Signal is sine wave and amplitude around 1V.
Touch BNC input see not thing change.
Try both Flashy FPGA versions ( H and and other ) but still
problem. Did the Flashy is implemented the DAC control coding ?

Thanks.

Lan Tran
Tran
Lan Tran
 
Posts: 9
Joined: Thu Dec 22, 2005 4:27 pm

Postby fpga4fun » Tue Dec 19, 2006 5:56 pm

You're right, I had forgotten to update the startup kit for Flashy rev. J.
Please get it again, I just updated it.
fpga4fun
Site Admin
 
Posts: 837
Joined: Thu Sep 18, 2003 6:47 am

Postby Lan Tran » Tue Dec 19, 2006 9:54 pm

Hi,

After down load the new version it work now.
How I can down load the FPGA code for this oscilloscope?

Thanks.

Lan Tran
Tran
Lan Tran
 
Posts: 9
Joined: Thu Dec 22, 2005 4:27 pm

Postby fpga4fun » Wed Dec 20, 2006 3:58 am

Happy to hear that.
The Flashy source code is not public, sorry.
fpga4fun
Site Admin
 
Posts: 837
Joined: Thu Sep 18, 2003 6:47 am

ucf file for Oscilloscope

Postby Lan Tran » Fri Dec 22, 2006 5:16 pm

Hi ,

On your web site has a FPGA code for oscilloscope. Did this code really work or just a general idea? If it is good code, what else I need to do so
I can generate bit file-config FPGA and see the signal on oscillosope. ( like ucf file ...)

Following is the copy of the code from your web site.

// Complete design
// Our first working oscilloscope design, isn't that nice?

module oscillo(clk, TxD, clk_flash, data_flash);
input clk;
output TxD;

input clk_flash;
input [7:0] data_flash;

reg [7:0] data_flash_reg; always @(posedge clk_flash) data_flash_reg <= data_flash;

wire [7:0] q_fifo;
fifo myfifo(.data(data_flash_reg), .wrreq(wrreq), .wrclk(clk_flash), .wrfull(wrfull), .wrempty(wrempty), .q(q_fifo), .rdreq(rdreq), .rdclk(clk), .rdempty(rdempty));

// The flash ADC side starts filling the fifo only when it is completely empty,
// and stops when it is full, and then waits until it is completely empty again
reg fillfifo;
always @(posedge clk_flash)
if(~fillfifo)
fillfifo <= wrempty; // start when empty
else
fillfifo <= ~wrfull; // stop when full

assign wrreq = fillfifo;

// the manager side sends when the fifo is not empty
wire TxD_busy;
wire TxD_start = ~TxD_busy & ~rdempty;
assign rdreq = TxD_start;

async_transmitter async_txd(.clk(clk), .TxD(TxD), .TxD_start(TxD_start), .TxD_busy(TxD_busy), .TxD_data(q_fifo));

endmodule
Tran
Lan Tran
 
Posts: 9
Joined: Thu Dec 22, 2005 4:27 pm

Postby fpga4fun » Fri Dec 22, 2006 5:19 pm

Yes, the code works but is targeted for RS232 (Pluto boards). Also the code lacks some features that have been added after the publication.
fpga4fun
Site Admin
 
Posts: 837
Joined: Thu Sep 18, 2003 6:47 am

Postby Lan Tran » Fri Dec 22, 2006 5:30 pm

Hi,

With dragon board what I need to chage to make the code work for oscilloscope? ( I think USB code instead RS232)and I need the ucf file for the dragon. I can look the circuit diagram and build one from there but cost me time. Can you send me one?

Thank.

Lan Tran
Tran
Lan Tran
 
Posts: 9
Joined: Thu Dec 22, 2005 4:27 pm

Postby fpga4fun » Fri Dec 22, 2006 5:37 pm

Here's the assignment for the Flashy portion. The USB portion is in the startupkit.

NET "ADC_dataA[0]" LOC = "p86";
NET "ADC_dataA[1]" LOC = "p87";
NET "ADC_dataA[2]" LOC = "p93";
NET "ADC_dataA[3]" LOC = "p95";
NET "ADC_dataA[4]" LOC = "p94";
NET "ADC_dataA[5]" LOC = "p96";
NET "ADC_dataA[6]" LOC = "p99";
NET "ADC_dataA[7]" LOC = "p100";
NET "ADC_dataB[0]" LOC = "p75";
NET "ADC_dataB[1]" LOC = "p76";
NET "ADC_dataB[2]" LOC = "p77";
NET "ADC_dataB[3]" LOC = "p78";
NET "ADC_dataB[4]" LOC = "p79";
NET "ADC_dataB[5]" LOC = "p83";
NET "ADC_dataB[6]" LOC = "p80";
NET "ADC_dataB[7]" LOC = "p84";
NET "clk" LOC = "P18";
NET "clk_ADC" LOC = "p91";
NET "clk_PO" LOC = "p88";
NET "DAC_out" LOC = "p85" ;
fpga4fun
Site Admin
 
Posts: 837
Joined: Thu Sep 18, 2003 6:47 am

Postby Lan Tran » Fri Dec 22, 2006 6:50 pm

Hi,

Thank so lot for information.
On your web, you develop FIFO from Altera.
The dragon board use Xilink. Do you have any advise for this. I use command "coregen" . I choice the Asyn FIFO deep 1023 and 16 bit wide ( 2 A/D each 8 bit ). Please correct if I were wrong.

Thanks.

Tran
Tran
Lan Tran
 
Posts: 9
Joined: Thu Dec 22, 2005 4:27 pm

Postby fpga4fun » Fri Dec 22, 2006 8:57 pm

You should use a synchronous FIFO (not asynchronous).
fpga4fun
Site Admin
 
Posts: 837
Joined: Thu Sep 18, 2003 6:47 am

Postby Lan Tran » Fri Dec 22, 2006 9:25 pm

Hi Jean,

Thank for the advise.

You have a nice Holiday season :lol:

Lan
Tran
Lan Tran
 
Posts: 9
Joined: Thu Dec 22, 2005 4:27 pm


Return to PCI FPGA board