FPGA Intellectual Property
PCI Express*, Networking and Connectivity, Memory Interfaces, DSP IP, and Video IP
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.

Altera Dual Port RAM

Altera_Forum
Honored Contributor II
1,031 Views

Hi Guys, 

 

I've written a program in VHDL to access CIS and get data and transfer the data over USB using cypress USB transceiver CY7C68013A. 

 

CIS : 1728 Pixels/Line, Output in three parts of 576 bytes.  

CIS clock speed : 6.25Mhz, Max 8 Mhz. 

 

FPGA : Cyclone III-EP3C25Q240C8N. 

 

ADC : AD9200, 1st sample appears on the 5th clock hence first 4 clocks cycles are skipped for every line read. 

 

Am using altera Dual Port RAM to get datas from the three outputs simultaneously and storing the datas in to 3 DPRAMs once this operation is done then I read the datas from DPRAM sequentially 1, 2, 3 and write the datas into cypress USB transceiver. 

 

Problem: 

When the image is created in the GUI, last four bytes (573,74,75,76) of the output is shifted to the first four bytes(1, 2, 3, 4). This four byte shift happens in all the three outputs.  

 

I couldn't figure out what is the problem in my code. 

 

Please Help. Thanks in advance.
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
177 Views

your problem needs simulation to find out where data is shifted. It is several stages and I wouldn't suspect the ram to do that.

Reply