<div id="textstyle_0" style="font-size: 14px">自己画的BF518F的板子,通过EBIU以异步存储访问FPGA内部自己设计的256字节双口RAM,接口信号用了下面的信号线:
A[19:1],D[15:0],AMS[3-0],ABE[1:0],ARE,AWE,
其中数据线D[15:0]采用245驱动,AMS[3-0],ARE,AWE均有上拉电阻。
写了个测试程序
/*******************************************************************
*??global variables and defines
*******************************************************************/
#define pDebugLed??(volatile unsigned short *)0x20000000
//#define START_ADDR?? 0xFF800000 /* start address on EZ-Board */
/*******************************************************************
*?? Function:????Init_EBIU
*?? Description: This function initializes EBIU interface.
*******************************************************************/
void Init_EBIU(void);
int main( void )
{
int i;
int DelayValue=5000000;
/* Begin adding your custom code here */
Init_EBIU();
while(1)
{
??????*pDebugLed = 0x0000;
????????for(i=0;i