Commit 1317a0a7 authored by Dimitris Lampridis's avatar Dimitris Lampridis

make DMA optional

parent 72adf76d
This diff is collapsed.
...@@ -55,6 +55,7 @@ package gn4124_core_pkg is ...@@ -55,6 +55,7 @@ package gn4124_core_pkg is
component xwb_gn4124_core is component xwb_gn4124_core is
generic ( generic (
g_WITH_DMA : boolean := TRUE;
g_WBM_TO_WB_FIFO_SIZE : positive := 128; g_WBM_TO_WB_FIFO_SIZE : positive := 128;
g_WBM_TO_WB_FIFO_FULL_THRES : positive := 110; g_WBM_TO_WB_FIFO_FULL_THRES : positive := 110;
g_WBM_FROM_WB_FIFO_SIZE : positive := 128; g_WBM_FROM_WB_FIFO_SIZE : positive := 128;
...@@ -115,6 +116,7 @@ package gn4124_core_pkg is ...@@ -115,6 +116,7 @@ package gn4124_core_pkg is
----------------------------------------------------------------------------- -----------------------------------------------------------------------------
component gn4124_core component gn4124_core
generic ( generic (
g_WITH_DMA : boolean := TRUE;
g_WBM_TO_WB_FIFO_SIZE : positive := 128; g_WBM_TO_WB_FIFO_SIZE : positive := 128;
g_WBM_TO_WB_FIFO_FULL_THRES : positive := 110; g_WBM_TO_WB_FIFO_FULL_THRES : positive := 110;
g_WBM_FROM_WB_FIFO_SIZE : positive := 128; g_WBM_FROM_WB_FIFO_SIZE : positive := 128;
......
...@@ -32,6 +32,8 @@ use work.wishbone_pkg.all; ...@@ -32,6 +32,8 @@ use work.wishbone_pkg.all;
entity xwb_gn4124_core is entity xwb_gn4124_core is
generic ( generic (
-- If TRUE, enable the DMA interface
g_WITH_DMA : boolean := TRUE;
-- Tunable size and threshold for all async FIFOs. -- Tunable size and threshold for all async FIFOs.
-- If not sure, leave the defaults. -- If not sure, leave the defaults.
g_WBM_TO_WB_FIFO_SIZE : positive := 128; g_WBM_TO_WB_FIFO_SIZE : positive := 128;
...@@ -188,6 +190,7 @@ begin ...@@ -188,6 +190,7 @@ begin
cmp_wrapped_gn4124 : gn4124_core cmp_wrapped_gn4124 : gn4124_core
generic map ( generic map (
g_WITH_DMA => g_WITH_DMA,
g_WBM_TO_WB_FIFO_SIZE => g_WBM_TO_WB_FIFO_SIZE, g_WBM_TO_WB_FIFO_SIZE => g_WBM_TO_WB_FIFO_SIZE,
g_WBM_TO_WB_FIFO_FULL_THRES => g_WBM_TO_WB_FIFO_FULL_THRES, g_WBM_TO_WB_FIFO_FULL_THRES => g_WBM_TO_WB_FIFO_FULL_THRES,
g_WBM_FROM_WB_FIFO_SIZE => g_WBM_FROM_WB_FIFO_SIZE, g_WBM_FROM_WB_FIFO_SIZE => g_WBM_FROM_WB_FIFO_SIZE,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment