FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > FPGA

FPGA comp.arch.fpga newsgroup (usenet)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-24-2009, 05:05 AM
chakra
Guest
 
Posts: n/a
Default cutting down opb_clk cycles while read-write BRAM-DDR in FPGA

Hello all,

I am working on a project which involves a simple BRAM, OPB-PLB,
Microblaze/PPC, and opb_ddr_sdram controller. I am reading 1280 bytes
of data from bram (32 bits each read, thus a total of 320 reads) and
writing it to DDR sdram. i am using Xilinx standalone OS. i use the
command XIo_in32(addr) to read from bram and use XIo_out32(addr,data)
to write to DDR sdram controller.

here is the c code i use to write to ddr.

for(p=0;p<320;p++) //number of reads from Bram = 320 (0:319)
{
a = XIo_In32(bram_addr);
XIo_Out32(ddr_addr+(p*4), a); //P*4 is to make sure we create room
for 32 bit data
}

I use chipscope pro to debug whats happenig inside.
stepa: It takes 3 opb clock cycles to read the value from bram
stepb: there is a 5 clock cycle delay (probably Processor is
calculating p*4),
stepc: it takes about 9 clock cycles to write to DDR sdram and
stepd: 7 clock cyles (no clue why it takes so long) to the next cycle
of read and write.

question 1: is there a way to cutdown the clock cycles (delay clock
cycles b and d) (i want to bring the total clock cycles for one
iteration down to about 15 or less)

question 2: is there a software way of reading from the bram and
writing to DDR sdram in burst mode (I know there is one in hardware
opb burst mode)

thanks,
with warm regards,
Chakra.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
verilog code for read write in bram block rajiv FPGA 1 07-08-2007 03:48 PM
verilog code for read write in Bram block rajiv FPGA 1 07-07-2007 11:24 PM
read/write in bram block [email protected] FPGA 2 07-04-2007 10:31 PM
Block RAM in VirtexE FPGA - 'Read-after-Write' and 'No-Read-on-Write' modes wojt FPGA 5 03-07-2007 07:41 PM
Re: New: read/write to D2SB fpga Phil Moore FPGA 1 06-23-2004 04:16 PM


All times are GMT +1. The time now is 03:17 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved