File: ctrlport.vh

package info (click to toggle)
uhd 4.8.0.0%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 183,172 kB
  • sloc: cpp: 279,415; python: 109,850; ansic: 103,348; vhdl: 57,230; tcl: 20,007; xml: 8,581; makefile: 2,863; sh: 2,797; pascal: 230; javascript: 120; csh: 94; asm: 20; perl: 11
file content (31 lines) | stat: -rw-r--r-- 1,025 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//
// 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. 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_PORTID_W   = 10;
localparam CTRLPORT_REM_EPID_W = 16;
localparam CTRLPORT_BYTE_EN_W  =  4;
localparam CTRLPORT_TIME_W     = 64;

//---------------------------------------------------------------
// Status values
//---------------------------------------------------------------
localparam [1:0] CTRL_STS_OKAY    = 2'b00;
localparam [1:0] CTRL_STS_CMDERR  = 2'b01;
localparam [1:0] CTRL_STS_TSERR   = 2'b10;
localparam [1:0] CTRL_STS_WARNING = 2'b11;