Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - special FIFO

 
Thread Tools Search this Thread
Old 12-08-2003, 07:23 PM   #1
Default special FIFO


Hello!

I want to build a FIFO for a special purpose:
I've got a microcontroller that interfaces to a SDRAM via an
SDRAM-interface. The microcontrollers data width is 16 bit while the
SDRAM-interface needs 32 bit (if i write something to the sdram, in the
first clock cycle, the interface needs the bank, row and column address (32
bit) and in the second clock cycle the data (only 16 bit, the upper 16bit
are just don't care)).
Now I need a FIFO that converts the 2x16 bit to one 32-bit word. Timing is
not important, only the 2 words of 32 bit have to be sent one clock cycle
after the other. (so i don't need a "doubling" of the clock rate, just a
method to combine the two incoming words) could it work with a kind of shift
register?

Thank you for your help!

Simone



Simone Winkler
  Reply With Quote
Old 12-11-2003, 12:04 AM   #2
NJ
 
Posts: n/a
Default Re: special FIFO
take two 16 bit fifo's stack them on top of each other and mux in your data
to each one using a T flop as a select/ff enable.


"Simone Winkler" <> wrote in message
news:...
> Hello!
>
> I want to build a FIFO for a special purpose:
> I've got a microcontroller that interfaces to a SDRAM via an
> SDRAM-interface. The microcontrollers data width is 16 bit while the
> SDRAM-interface needs 32 bit (if i write something to the sdram, in the
> first clock cycle, the interface needs the bank, row and column address

(32
> bit) and in the second clock cycle the data (only 16 bit, the upper 16bit
> are just don't care)).
> Now I need a FIFO that converts the 2x16 bit to one 32-bit word. Timing is
> not important, only the 2 words of 32 bit have to be sent one clock cycle
> after the other. (so i don't need a "doubling" of the clock rate, just a
> method to combine the two incoming words) could it work with a kind of

shift
> register?
>
> Thank you for your help!
>
> Simone
>
>





NJ
  Reply With Quote
Old 12-23-2003, 06:18 AM   #3
Bryce
 
Posts: n/a
Default Re: special FIFO
> > Now I need a FIFO that converts the 2x16 bit to one 32-bit word. Timing is
> > not important, only the 2 words of 32 bit have to be sent one clock cycle
> > after the other. (so i don't need a "doubling" of the clock rate, just a
> > method to combine the two incoming words) could it work with a kind of

> shift register?


Hi,

You may wish to consider making an arbiter (a type of FSM) that would
acquire two 16 bit words, then write them to the SDRAM when an entire
32-bit word is complete. This is a fairly simple FSM: Wait for
word1, store word1 to upper half of 32 bit word, wait for word 2,
store to lower half of 32 bit output, produce output, go idle. The
idea can be expanded to handle multiple ports and higher rate
dataflows.

As you mentioned, as long as the 16 data is being generated slower
than you store it, you may not need a FIFO. Or, if you have some sort
of flow-control, you would not need a FIFO. Note that SDRAM
controllers may allow 12-15 clocks between read or write operations,
so you're probably okay unless you are in a burst situation.

Bryce


Bryce
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Classic Original Broadcasts Trading List - Updated ( w/o/c ) porkys1982@sbcglobal.net DVD Video 0 12-05-2005 03:38 AM
Classic Original Broadcasts Trading List - Updated ( w/o/c ) porkys1982@sbcglobal.net DVD Video 0 11-19-2005 04:46 PM
New Releases: ROTK-X, Fox 2-Packs & Criterion: Updated complete downloadable R1 DVD DB & info lists Doug MacLean DVD Video 2 10-06-2004 05:31 AM
More New Silver Pressed DVDs Added.. SPW DVD Video 0 05-13-2004 12:30 AM
New releases: Fox two pack blitz, WB 3 packs: Updated complete downloadable R1 DVD DB & info lists Doug MacLean DVD Video 0 08-19-2003 05:39 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46