在我做DMA过程中,我增加了一个SRAM_16Bits_512K(sram_0),两个on_chip memory(ram)(一个做为dma的write_buffer,一个做为read_buffer),但在编译的时候出现了下面两个错误:
Error: Can't open AHDL Include File memmodes.inc Error: Node instance "sram" instantiates undefined entity "altdpram"
在c:/altera/quartus51/libraries/megafunctions/altdpram.tdf中第一句是:
INCLUDE "memmodes.inc"; % Constants defining RAM mode flags %
在c:/altera/quartus51/libraries/megafunctions/lpm_ram_dp.tdf程序如下
INCLUDE "altdpram.inc"; INCLUDE "lpm_mux.inc"; INCLUDE "lpm_decode.inc";
CONSTANT NO_FILE = "UNUSED";
PARAMETERS ( LPM_WIDTH, LPM_WIDTHAD, LPM_NUMWORDS = 2^LPM_WIDTHAD, LPM_INDATA = "REGISTERED", LPM_RDADDRESS_CONTROL = "REGISTERED", LPM_WRADDRESS_CONTROL = "REGISTERED", LPM_OUTDATA = "REGISTERED", LPM_FILE = NO_FILE, USE_EAB = "ON", DEVICE_FAMILY );
INCLUDE "aglobal51.inc"; OPTIONS TREAT_DEFAULT_VALUE_AS_UNUSED = ON;
CONSTANT NUMWORDS = (LPM_NUMWORDS == 0) ? 2^LPM_WIDTHAD : LPM_NUMWORDS; CONSTANT RA_REG = (LPM_RDADDRESS_CONTROL == "REGISTERED") ? "OUTCLOCK" : "UNREGISTERED"; CONSTANT WA_REG = (LPM_WRADDRESS_CONTROL == "REGISTERED") ? "INCLOCK" : "UNREGISTERED"; CONSTANT D_REG = (LPM_INDATA == "REGISTERED") ? "INCLOCK" : "UNREGISTERED"; CONSTANT Q_REG = (LPM_OUTDATA == "REGISTERED") ? "OUTCLOCK" : "UNREGISTERED";
SUBDESIGN lpm_ram_dp ( data[LPM_WIDTH-1..0] : INPUT; rdaddress[LPM_WIDTHAD-1..0] : INPUT = GND; wraddress[LPM_WIDTHAD-1..0] : INPUT = GND; rdclock : INPUT = VCC; rdclken : INPUT = VCC; wrclock : INPUT = VCC; wrclken : INPUT = VCC; rden : INPUT = VCC; wren : INPUT; q[LPM_WIDTH-1..0] : OUTPUT; )
|