- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
I'm attempting to get a momeory-memory SGDMA desgin working, and I'm having some problems with clearing the interrupt from the SGDMA. The system is roughly as follows:- Arria V SoC with two banks of DDR3, one for the HPS, one for attched to the FPGA.
- SGDMA IP core reading from FPGA DDR3 (avl_0 slave port on UniPHY DDR3 controller) and writing to HPS DDR3 (f2h_sdram0_data a slave port on the multi-master DDR controller in the HPS)
- Linux image running on HPS with custom driver for the SGDMA to provide access to FPGA attached DDR3 to userspace Linux software.
- Built using Quartus 15.1 on windows 7 64-bit
- Builds a descriptor chain in the dedicated onchip memory attached to the sgdma descriptor ports.
- reads the SGDMA status register to confirm it is not BUSY
- Clears any previous completion bits in the status register by writing 1 to the DESCRIPTOR_COMPLETED and CHAIN_COMPLETED bits.
- sets the next_descriptor_pointer register to point at the start of the descriptor chain.
- sets the IE_CHAIN_COMPLETED, IE_GLOBAL and RUN bits in the control register.
- waits for the interrupt to arrive
- checks the status register to ensure DESCRIPTOR_COMPLETED and CHAIN_COMPLETED bits are set and BUSY is not set.
- clears the status register by writing 1 to the DESCRIPTOR_COMPLETED and CHAIN_COMPLETED bits.
- clears the IRQ by writing 1 to CLEAR_INTERRUPT.
- clears the RUN bit in the control register
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Phil ,
Could you share with me your custom linux driver?
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page