From 630648d5b027437ebac89b84884db615544467a2 Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Sat, 11 Jun 2022 22:58:26 -0700 Subject: [PATCH] Fix default parameter values Signed-off-by: Alex Forencich --- rtl/dma_if_pcie.v | 2 +- rtl/dma_if_pcie_rd.v | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rtl/dma_if_pcie.v b/rtl/dma_if_pcie.v index f9b84c94a..6f6f507c6 100644 --- a/rtl/dma_if_pcie.v +++ b/rtl/dma_if_pcie.v @@ -54,7 +54,7 @@ module dma_if_pcie # // RAM segment count parameter RAM_SEG_COUNT = TLP_SEG_COUNT*2, // RAM segment data width - parameter RAM_SEG_DATA_WIDTH = (TLP_SEG_COUNT*TLP_SEG_DATA_WIDTH)*2/RAM_SEG_COUNT, + parameter RAM_SEG_DATA_WIDTH = TLP_DATA_WIDTH*2/RAM_SEG_COUNT, // RAM segment byte enable width parameter RAM_SEG_BE_WIDTH = RAM_SEG_DATA_WIDTH/8, // RAM segment address width diff --git a/rtl/dma_if_pcie_rd.v b/rtl/dma_if_pcie_rd.v index fef123803..d5167a492 100644 --- a/rtl/dma_if_pcie_rd.v +++ b/rtl/dma_if_pcie_rd.v @@ -52,7 +52,7 @@ module dma_if_pcie_rd # // RAM segment count parameter RAM_SEG_COUNT = TLP_SEG_COUNT*2, // RAM segment data width - parameter RAM_SEG_DATA_WIDTH = (TLP_SEG_COUNT*TLP_SEG_DATA_WIDTH)*2/RAM_SEG_COUNT, + parameter RAM_SEG_DATA_WIDTH = TLP_DATA_WIDTH*2/RAM_SEG_COUNT, // RAM segment byte enable width parameter RAM_SEG_BE_WIDTH = RAM_SEG_DATA_WIDTH/8, // RAM segment address width