Entity: edma_ctrl

Diagram

AW PW ID clk nreset dma_en chainmode manualmode mastermode [31:0] count [15:0] curr_descr [15:0] next_descr reg_wait_in access_in wait_in fetch_access [PW-1:0] fetch_packet [3:0] dma_state update update2d master_active

Description

#############################################################################

Purpose: DMA sequencer

#############################################################################

Author: Andreas Olofsson

License: MIT (see below) #

#############################################################################

Generics

Generic name Type Value Description
AW 32 address width
PW 2*AW+40 fetch packet width
ID 4'b0000 group id for DMA regs [10:8]

Ports

Port name Direction Type Description
clk input main clock
nreset input async active low reset
dma_en input dma is enabled
chainmode input chainmode configuration
manualmode input descriptor fetch
mastermode input dma configured in mastermode
count input [31:0] current transfer count
curr_descr input [15:0]
next_descr input [15:0]
fetch_access output fetch descriptor
fetch_packet output [PW-1:0] fetch packet
reg_wait_in input register access wait
access_in input slave access
wait_in input master/slave transfer stall
dma_state output [3:0] state of dma
update output update registers
update2d output dma currently in outerloop (2D)
master_active output master is active

Signals

Name Type Description
dma_state reg [3:0] ########################################################################### # BODY ###########################################################################
descr wire [15:0]
fetch_addr wire [15:0]
srcaddr_out wire [AW-1:0]
reg_addr wire [4:0]
dma_error wire
incount_zero wire
outcount_zero wire

Processes

Type: always

Instantiations

Description
address of first reg to fetch

State machines

undefined