Altera_Forum
Honored Contributor
17 years agoMaking smart FIFO ?!
Hello all,
First, I wish you an happy new year! I need some help. For my project, I need to store data coming from external memory (DDR2) to internal memory (MRAM or M4K blocks). I have a 256 bits width interface with my DDR2 chips. With every single frame, I generate a 256 bits word who is anded with my DDR2 data bits. (it always mask the start or the end of my data bits, never the middle but width of mask change dynamically). I need to store this new data word in a ram memory, but only data bits who are not masked! But if I use a standard fifo, I must write data which have always the same bus width. Or datas what I have to write have different bus width. The first idea i'm thinking is to put my datas in a shift register (parallel to serial converter) and after write bit after bit in my internal ram. But in this case, I need too many cycle of clock to write all my data (max 256 clocks). It's too long. Ideally, I need a FIFO in which I can write datas from different width (at every clock rising edge) I think it's not possible. Isn't it ? Could you please help me to resolve my problem ? Have you got some ideas or just some hints which can help me ? Any help would be appreciate. Thank you very much! See you. Fabrice.