原创 FPGA读写2PORTRAM过程分析1

2013-1-15 16:34 861 7 7 分类: FPGA/CPLD 文集: FPGA

if(!oPA0)

         begin

                                     data_wr<='h0;//写数据初始化

                                     ioRDY1_SLWRn<='b1;

                                     ioRDY0_SLRDn<='b1;

                                     oPA2_SLOEn<='b1;

                                     oPA4_FIFO0<='b1;

                                     oPA5_FIFO1<='b1;

                                     oe<='b0;

                                     FFlagA<='b0;

                                     sram_d<='h0;

                                     data_wr<='h0;         

                                     sram_a_i<='h1fff;

                                     sram_a_o<='h1fff;

                                     sram_rden<='b0;

                                     sram_wren<='b0;

                                     wr_flag<='b0;

                                     datacnt<='h1fff;

                                     STATE<=IDLE;

         End

OPA0 可以设置为中断输入,信号为电平或者下降沿,从程序看来是低电平触发。

 

24343357_1337669515yGI7.jpg

ioRDY1_SLWRn<='b1;           pin4 output          写SLAVEFIFO 信号

ioRDY0_SLRDn<='b1;           pin5 output          读信号

oPA2_SLOEn<='b1;             pin45                输出使能信号

oPA4_FIFO0<='b1;

oPA5_FIFO1<='b1;

 

  24343357_1337669520O835.jpg

文章评论0条评论)

登录后参与讨论
我要评论
0
7
关闭 站长推荐上一条 /3 下一条