ContributionsMost RecentMost LikesSolutionsEPCS access using interrupt in Nios-II Hi, I have custom board with Cyclone-IV device EP4CE55F23I8L. I used Quartus Prime 16.1 standard edition. Presently I have NIOS-II program for access non-volatile EPCS data using NIOS-II EPCS Controller core HAL Drivers by using polling method. But now I have another program where this polling method disturbs other NIOS-II Functionality. Therefore I want to access EPCS Controller core by interrupt method. Please share some examples of interrupt method for accessing EPCS Controller core or some documents which can guide the same. Thanks Regards, Nandish Jasani. Re: SGDMA - TSEMAC - SGDMA Loopback problem. TSEMAC internal loopback. Hi, I am replying late, busy with another work, I have done signal taping or Debugging TSEMAC. I have attached word file with four images of TSEMAC signal tap. 1) Image1: TSEMAC Signals before Nios-II Application code. 2) Image2: TSEMAC Signals with Nios-II Application code running. It seems that TX-SGDMA is not working. It also shown that there no event occurs in eop and sop. 3) Image4: TSEMAC Signals show event occurs in TXD[3..0] and TX_ENABLE event occurs. But at the same time there is no event occurs in eop and sop. Why TSEMAC sends data as TX SGDMA is not working? 4) Image3: TSEMAC signals shows tx_ready from TSEMAC is deasserted and TSEMAC now stop working. So from above observation, there is something problem of TXSGDMA. Can you please share any code example of SGDMA-TSEMAC-SGDMA which is proven? So I can check with my code. Also please share your opinion by seeing attached image, if require letme know if any more information require in signal taping. Regards, Nandish Jasani. Re: SGDMA - TSEMAC - SGDMA Loopback problem. TSEMAC internal loopback. Hi, You correctly summarize TSEMAC Problems. I have Cyclone-IV E device EP4CE55F23I8L and i used Quartus Primer version 16.1.0 SJ Standard Edition. Please let me know if any bug in this software version. Yes i am doing signal tap for Avalon Rx and Tx activity. I will try to get what type to error i found. Once i received error i will inform you that which type of error it is. TSE IP itself calculate CRC in my case. Presently i am trying debug. Thanks and Regards, Nandish Jasani. Re: SGDMA - TSEMAC - SGDMA Loopback problem. TSEMAC internal loopback. Hey Thanks for your reply and sorry for late reply. I have attached TSE IP Qsys settings. I had tried 32 bits FIFO, but still problem persist. Actually in my code i am checking TX and Rx status counters. So following is problem i found. 1) Sometimes TX OK Counter increments but TXOctet transmit value shows less and random from my set value of 1514 bytes. If transmit frame is ok then why its shows TX Octet transmitted value less. 2) Same frame is received success fully with RXoctetreceived byte is equal to Tx octet byte transmitted. But sometimes rxframecheckerror shows, as this is internal loopback then why framecheck error shows? 3) Recevied frame is also wrong from what i transmitted. All bytes are shows wrong including MAC Destination and Source address. I think you are right, there is something problem with internal FIFO. I will try what you suggest. And also check my TSE IP setting, if something wrong, please suggest to correct it. Have you check my C code? is there any thing wrong in it? Thanks Nandish Jasani. SGDMA - TSEMAC - SGDMA Loopback problem. TSEMAC internal loopback. Hi, I made the program of TSEMAC in internal loopback mode. I use TSEMAC IP in opencore plus. I made the program to transfer frame from Tx_SGDMA to TSEMAC and internal loop back to Rx SGDMA to frame buffer. But it won't work. In the program i used printf for verifying description address allocation, TSEMAC Initailiation register value, etc. For TSEMAC and SGDMA Qsys setting, i have attached snapshot for the same. I have also attached the Nios-II program. I used 8-Bit FIFO with 2048 Depth in TSEMAC. According to my observation, FIFO in TSEMAC is creating problem, I check and found Tx_SGDMA transfer frame to TSEMAC by checking number of bytes transferred field in descriptor. But TSEMAC is not initiating transmission. I set FIFO in store and forward mode. Please help to solve this loopback failure. Thanks and Regards, Nandish Jasani.