aboutsummaryrefslogtreecommitdiffstats
path: root/fpga/usrp3/top/e31x/e31x_core.v
diff options
context:
space:
mode:
authorWade Fife <wade.fife@ettus.com>2021-12-09 14:30:30 -0600
committerWade Fife <wade.fife@ettus.com>2022-03-29 14:45:04 -0500
commit6f038dc2f69b38e715206b2e700fdd3a1bbc638e (patch)
tree8fb2499be9e9a7acffd5add92a59389f3e6bb2b9 /fpga/usrp3/top/e31x/e31x_core.v
parent61337817eb9c617db37fdbb16fb5f598e15a29a7 (diff)
downloaduhd-6f038dc2f69b38e715206b2e700fdd3a1bbc638e.tar.gz
uhd-6f038dc2f69b38e715206b2e700fdd3a1bbc638e.tar.bz2
uhd-6f038dc2f69b38e715206b2e700fdd3a1bbc638e.zip
fpga: Use PROTOVER and CHDR_W from RFNoC image builder
This updates all RFNoC devices so that they get the RFNoC protocol version and CHDR width in the same way, from the output generated by the RFNoC image builder.
Diffstat (limited to 'fpga/usrp3/top/e31x/e31x_core.v')
-rw-r--r--fpga/usrp3/top/e31x/e31x_core.v7
1 files changed, 4 insertions, 3 deletions
diff --git a/fpga/usrp3/top/e31x/e31x_core.v b/fpga/usrp3/top/e31x/e31x_core.v
index 99675262b..43bb59799 100644
--- a/fpga/usrp3/top/e31x/e31x_core.v
+++ b/fpga/usrp3/top/e31x/e31x_core.v
@@ -26,7 +26,7 @@ module e31x_core #(
parameter NUM_CHANNELS_PER_DBOARD = 2,
parameter FP_GPIO_WIDTH = 8, // Front panel GPIO width
parameter DB_GPIO_WIDTH = 16, // Daughterboard GPIO width
- parameter CHDR_WIDTH = 16'd64 ,
+ parameter CHDR_W = 64,
parameter RFNOC_PROTOVER = {8'd1, 8'd0}
)(
// Clocks and resets
@@ -414,7 +414,7 @@ module e31x_core #(
cp_glob_resp_data <= {16'd0, device_id};
REG_RFNOC_INFO:
- cp_glob_resp_data <= {CHDR_WIDTH[15:0], RFNOC_PROTOVER[15:0]};
+ cp_glob_resp_data <= {CHDR_W[15:0], RFNOC_PROTOVER[15:0]};
REG_COMPAT_NUM:
cp_glob_resp_data <= {COMPAT_MAJOR[15:0], COMPAT_MINOR[15:0]};
@@ -812,7 +812,8 @@ module e31x_core #(
/////////////////////////////////////////////////////////////////////////////
rfnoc_image_core #(
- .PROTOVER(RFNOC_PROTOVER)
+ .CHDR_W (CHDR_W),
+ .PROTOVER (RFNOC_PROTOVER)
) rfnoc_image_core_i (
.chdr_aclk (bus_clk ),
.ctrl_aclk (clk40 ),