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

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > FPGA

FPGA comp.arch.fpga newsgroup (usenet)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-20-2008, 07:02 PM
[email protected]
Guest
 
Posts: n/a
Default Instantiating an lpm dcfifo in Verilog

Hello, I know many will say this is not an appropriate group to post
such a question, but I wasn't getting any response on the Verilog
group, so please let me apologize. I am new to Verilog and need some
help instantiating a lpm dcfifo in my code. Here is what I have so
far:

FIFIN : lpm_fifo_dc WITH (LPM_WIDTH = 64, LPM_NUMWORDS = 64,
LPM_WIDTHU = 9, RDSYNC_DELAYPIPE = 3, WRSYNC_DELAYPIPE = 3);

FIFIN.aclr = (!rstn);
FIFIN.wrclock = (clk);
FIFIN.wrreq = (wr_fiforeq);
FIFIN.data[31..0] = (dma_wrdata);
FIFIN.rdclock = (clk);
FIFIN.rdreq = (dma1_rddata);
FIFIN.q = (rd_fiforeq);


If anyone has some examples of instantiating a lpm function within
Verilog I would greatly appreciate your help.

Thanks,
joe
Reply With Quote
  #2 (permalink)  
Old 05-21-2008, 12:41 AM
[email protected]
Guest
 
Posts: n/a
Default Re: Instantiating an lpm dcfifo in Verilog

On May 20, 10:02 am, "jjlind...@hotmail.com" <jjlind...@hotmail.com>
wrote:
> Hello, I know many will say this is not an appropriate group to post
> such a question, but I wasn't getting any response on the Verilog
> group, so please let me apologize. I am new to Verilog and need some
> help instantiating a lpm dcfifo in my code. Here is what I have so
> far:
>
> FIFIN : lpm_fifo_dc WITH (LPM_WIDTH = 64, LPM_NUMWORDS = 64,
> LPM_WIDTHU = 9, RDSYNC_DELAYPIPE = 3, WRSYNC_DELAYPIPE = 3);
>
> FIFIN.aclr = (!rstn);
> FIFIN.wrclock = (clk);
> FIFIN.wrreq = (wr_fiforeq);
> FIFIN.data[31..0] = (dma_wrdata);
> FIFIN.rdclock = (clk);
> FIFIN.rdreq = (dma1_rddata);
> FIFIN.q = (rd_fiforeq);
>
> If anyone has some examples of instantiating a lpm function within
> Verilog I would greatly appreciate your help.
>
> Thanks,
> joe


Hello, I believe this works:

dcfifo # (
.intended_device_family ( "Stratix II GX"),
.lpm_hint ( "MAXIMIZE_SPEED=5,"),
.lpm_numwords ( 64),
.lpm_showahead ( "OFF"),
.lpm_type ( "dcfifo"),
.lpm_width ( 64),
.lpm_widthu ( 6),
.overflow_checking ( "ON"),
.rdsync_delaypipe ( 4),
.underflow_checking ( "ON"),
.use_eab ( "ON"),
.write_aclr_synch ( "OFF"),
.wrsync_delaypipe ( 4)
)

dcfifo_component (
.wrclk (wrclk),
.rdreq (rdreq),
.aclr (aclr),
.rdclk (rdclk),
.wrreq (wrreq),
.data (data),
.wrusedw (sub_wire0),
.q (sub_wire1),
.rdusedw (sub_wire2)
// synopsys translate_off
,
.rdempty (),
.rdfull (),
.wrempty (),
.wrfull ()
// synopsys translate_on
);


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
Help instantiating a megacore function [email protected] Verilog 0 05-16-2008 01:45 AM
Instantiating Altera M4K block without MegaWizard RadioShox FPGA 13 10-09-2006 12:03 PM
NIOS II - Instantiating array on SDRAM zg FPGA 1 08-14-2004 02:42 AM
Instantiating subblock signals with VHDL arkaitz FPGA 3 05-18-2004 04:24 AM
What's the rule of instantiating the global buffer bill FPGA 0 03-01-2004 04:09 AM


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