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

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > VHDL

VHDL comp.lang.vhdl newsgroup / Usenet

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-14-2007, 06:49 PM
nfirtaps
Guest
 
Posts: n/a
Default Xilinx Asynchronous FIFO

I am trying to instantiate a Xilinx Asynchrouns FIFO with coregen and
am running into problems. Here is what I have for the control
signals

wr_clk is running at 6 MHz
rd_clk is running at 48 MHz

wr_en <= not almost_full;

process(rd_clk)
begin
if(rd_clk'event and rd_clk = '1')
rd_en <= not almost_empty;
end if;
end process;

The code is simple however, I can tranfer are 180K and the thing
dies. Anyone out there who has used the Async FIFO from Corgen and
gotten it to work?

Regards

Reply With Quote
  #2 (permalink)  
Old 03-14-2007, 10:37 PM
Brad Smallridge
Guest
 
Posts: n/a
Default Re: Xilinx Asynchronous FIFO

Try this:

> process(rd_clk, almost_empty)


Brad Smallridge


Reply With Quote
  #3 (permalink)  
Old 03-15-2007, 03:26 AM
KJ
Guest
 
Posts: n/a
Default Re: Xilinx Asynchronous FIFO


"Brad Smallridge" <[email protected]> wrote in message
news:[email protected]..
> Try this:
>
>> process(rd_clk, almost_empty)

>

Don't bother to try this, it is not correct. The sensitivity list that you
have for your process is correct (i.e. just rd_clk).

KJ


Reply With Quote
  #4 (permalink)  
Old 03-15-2007, 04:21 AM
Brad Smallridge
Guest
 
Posts: n/a
Default Re: Xilinx Asynchronous FIFO

> Don't bother to try this, it is not correct. The sensitivity list that
> you have for your process is correct (i.e. just rd_clk).


Yeah, you are right. I don't know what I was thinking.

Or maybe I was thinking that:
>rd_en <= not almost_empty;

should not be clocked at all, so that

process(almost_empty)
begin
-- if(rd_clk'event and rd_clk = '1')
rd_en <= not almost_empty;
-- end if;
end process;

is what he should use.

Brad








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
Asynchronous FIFO and almost empty - bug? [email protected] FPGA 9 12-03-2007 09:20 AM
Asynchronous FIFO Latency. RaKa FPGA 1 11-13-2007 04:09 AM
Replacing/emulating an asynchronous FIFO Daniel O'Connor FPGA 5 02-09-2007 05:59 PM
asynchronous FIFO design kelvins FPGA 3 04-10-2006 08:35 PM
Asynchronous FIFO design question [email protected] FPGA 12 03-08-2006 05:32 PM


All times are GMT +1. The time now is 01:43 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