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

Reply

VHDL - 4 stage register or fifo

 
Thread Tools Search this Thread
Old 02-18-2004, 09:00 PM   #1
Default 4 stage register or fifo


Hello,

I need a vhdl entity that allows me to write four x-bit values on a
periodic write signal and then read them out sequentially (in 4 clock
cycles) base on a read signal.

So you would have a diagram like something like this:

_ _ _ _
write _| |______| |______| |______| |________

value a b c d
_
read _____________________________________| |_______

value a b c d


Is this best implemented in a single small 4 word fifo or is there
another better approache?

Salman


salman sheikh
  Reply With Quote
Old 02-19-2004, 07:47 AM   #2
Francisco Camarero
 
Posts: n/a
Default Re: 4 stage register or fifo
salman sheikh wrote:
>
> Hello,
>
> I need a vhdl entity that allows me to write four x-bit values on a
> periodic write signal and then read them out sequentially (in 4 clock
> cycles) base on a read signal.
>
> So you would have a diagram like something like this:
>
> _ _ _ _
> write _| |______| |______| |______| |________
>
> value a b c d
> _
> read _____________________________________| |_______
>
> value a b c d
>
>
> Is this best implemented in a single small 4 word fifo or is there
> another better approache?
>


Do you need al the features of a FIFO? i.e:
Do you need to make use of 'empty' or 'full' flags ?
Do you always write _exactly_ four values before reading them out ?
Or may it happen that you write 6, then read out 4, then write in 2, then read
out 4...
basically,
What is the environment really requesting from your device ?

I definetly can help you, but you need to provide more info,

TechConSoul.


Francisco Camarero
  Reply With Quote
Old 02-19-2004, 03:45 PM   #3
salman sheikh
 
Posts: n/a
Default Re: 4 stage register or fifo
Thanks for your reply. I have posted on this and other newsgroups with
questions that never go answered or replied to. I appreciate your time.

Don't need a empty or full flag. I just need to store four 35-bit words
somewhere and then, after waiting for another process to complete with
a valid signal, read them out sequentially in four consecutive clock
cycles, the first value written read out first. Maybe a fifo is overkill?

Salman

Francisco Camarero wrote:
> salman sheikh wrote:
>
>>Hello,
>>
>>I need a vhdl entity that allows me to write four x-bit values on a
>>periodic write signal and then read them out sequentially (in 4 clock
>>cycles) base on a read signal.
>>
>>So you would have a diagram like something like this:
>>
>> _ _ _ _
>>write _| |______| |______| |______| |________
>>
>>value a b c d
>> _
>>read _____________________________________| |_______
>>
>>value a b c d
>>
>>
>>Is this best implemented in a single small 4 word fifo or is there
>>another better approache?
>>

>
>
> Do you need al the features of a FIFO? i.e:
> Do you need to make use of 'empty' or 'full' flags ?
> Do you always write _exactly_ four values before reading them out ?
> Or may it happen that you write 6, then read out 4, then write in 2, then read
> out 4...
> basically,
> What is the environment really requesting from your device ?
>
> I definetly can help you, but you need to provide more info,
>
> TechConSoul.



salman sheikh
  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
"Pink" stage wash opinions please dh@. DVD Video 3 01-10-2008 05:31 PM
Writing Register code in vhdl amirster Hardware 2 06-11-2007 03:22 PM
NEW DVD "Embedded": Actor enters stage left and takes aim at the lying politicians and their lapdog media JAS DVD Video 8 07-29-2005 03:27 AM
DVD Register Beta Testers Needed Tom Orlofsky DVD Video 1 12-22-2003 02:21 AM
Re: Vouchers in Toronto area and where/when to register? Techie A+ Certification 0 09-14-2003 02:50 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