4 Replies Latest reply on May 31, 2016 6:20 AM by userc_39650

    FX3 SlaveFifo Flag don't work

      Hi.

         

      Now I am trying to implement Slavefifo Bulk In mode woth FPGA and FX3 Kit.

         

      I'm followed the AN65974 example code.

         

      In my case, I use 8bit data width. and use 100Mhz pclk from FPGA into FX3 boards.

         

       

         

      The Problem is the slavefifo does not work.

         

      So I need help with any hint. Please. Does anyone know how to fix?

         

       

         

      -FPGA code ------------------------------------

         


          
      always @(posedge pclk or negedge rst)
      begin
          if(!rst) begin
              
          slcs_n<=1;
          slwr_n<=1;
          sloe_n<=1;
          slrd_n<=1;
          pktend_n<=1;
           
          end else begin
             
          slcs_n<=0;
          slwr_n<= 0
          sloe_n<=1;
          slrd_n<=1;
          pktend_n<=1;
          
          end
      end    

         


      always @(posedge pclk or negedge rst)
      begin
          if(!rst) begin
      dq <= 0;     
          end else begin
      dq <= dq+1;
          end
      end    

         

      endmodule

         

       

         

      -Firmware code--------

         

      I 've attached the Firmware code in here.

         

      Basically, I followed as follow concept. Please check the Images and firmware code.

         

       

         

       

         

      BULK IN transfer 
      BULK IN transfer failed with Error Code:997

         

       

         

      What am I supposed to fix my problem to work?

         

      I've already double checked PCLK = 100Mhz, dq is working normaly into the FX3 board.

        • 1. Re: FX3 SlaveFifo Flag don't work

          Hi,

             

          How long are you transferring the data? Have you stopped transferring as soon as the buffer is filled, by monitoring the flags? If not it will result in PIB Errors getting triggered.

             

          Please take a chipscope trace of Master signals and ensure that they are fine.

             

          Regards,

             

          -Madhu Sudhan

          • 2. Re: FX3 SlaveFifo Flag don't work
                    I don't understand it, should I have to stop the transfering the data to fx3 when the fifo is filled? In my case, the flag does not work.   
            • 3. Re: FX3 SlaveFifo Flag don't work
                      HI I also have a problem. I just want to transfer the data that generated by FPGA to PC. But the USB CINTROL CENTER receives the wrong data . TX_data is ascending series . but RX_data as following: 7fa1 7fa2 7fa3 7fa4 7fa5 7fa6 7fa7 7fa8 7fa9 7faa 7fab 7fac 7fad 7fae 7faf 7fb0 7fb1 7fb2 7fb3 7fb4 7fb5 7fb6 7fb7 7fb8 7fb9 7fba 7fbb 7fbc 7fbd 7fbe 7fbf 7fc0 7fc1 7fc2 7fc3 7fc4 7fc5 7fc6 7fc7 7fc8 7fc9 7fca 7fcb 7fcc 7fcd 7fce 7fcf 7fd0 7fd1 7fd2 7fd3 7fd4 7fd5 7fd6 7fd7 7fd8 7fd9 7fda 7fdb 7fdc 7fdd 7fde 7fdf 7fe0 7fe1 7fe2 7fe3 7fe4 7fe5 7fe6 7fe7 7fe8 7fe9 7fea 7feb 7fec 7fed 7fee 7fef 7ff0 7ff1 7ff2 7ff3 7ff4 7ff5 7ff6 7ff7 7ff8 7ff9 7ffa 7ffb 7ffc 7ffd 7ffe 7fff c000 c001 c002 c003 c004 c005 c006 it isn't always continuous. That's why?   
              • 4. Re: FX3 SlaveFifo Flag don't work

                   My  firmware code and the data received by USB CONTROL CENTER as follows.