From 845dfd4f8740dab9ce14478e8de1b72e73dd4eba Mon Sep 17 00:00:00 2001 From: Wade Fife Date: Tue, 18 Aug 2020 10:01:47 -0500 Subject: [PATCH] fpga: lib: Add more CtrlPort constants Add some missing CtrlPort signal widths to ctrlport.vh. Original-commit: c9d55d870dbccbc07ca9a7afaf2e0ac64944111c --- lib/rfnoc/core/ctrlport.vh | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/lib/rfnoc/core/ctrlport.vh b/lib/rfnoc/core/ctrlport.vh index 7b5f9fc..814cfae 100644 --- a/lib/rfnoc/core/ctrlport.vh +++ b/lib/rfnoc/core/ctrlport.vh @@ -1,21 +1,26 @@ // -// Copyright 2019 Ettus Research, A National Instruments Company +// Copyright 2020 Ettus Research, A National Instruments Brand // // SPDX-License-Identifier: LGPL-3.0-or-later // // Module: ctrlport.vh -// Description: -// Defines constants for the control port interface. // -// Requires rfnoc_axis_ctrl_utils.vh in same directory to be -// included first. +// Description: +// +// Defines constants for the control port interface. See also +// rfnoc_axis_ctrl_utils.vh for related AXIS-Ctrl definitions. +// //--------------------------------------------------------------- // Signal widths //--------------------------------------------------------------- -localparam CTRLPORT_ADDR_W = 20; -localparam CTRLPORT_DATA_W = 32; -localparam CTRLPORT_STS_W = 2; +localparam CTRLPORT_ADDR_W = 20; +localparam CTRLPORT_DATA_W = 32; +localparam CTRLPORT_STS_W = 2; +localparam CTRLPORT_PORTID_W = 10; +localparam CTRLPORT_REM_EPID_W = 16; +localparam CTRLPORT_BYTE_EN_W = 4; +localparam CTRLPORT_TIME_W = 64; //--------------------------------------------------------------- // Status values