Skip to content

Commit

Permalink
adrv2crr_fmcxmwbr1: Merge with xmicrowave
Browse files Browse the repository at this point in the history
  • Loading branch information
StancaPop committed Feb 20, 2024
1 parent 1e4dc51 commit 4b8f3f0
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 263 deletions.
39 changes: 38 additions & 1 deletion projects/adrv9009zu11eg/adrv2crr_fmcxmwbr1/system_project.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,33 @@ source ../../../scripts/adi_env.tcl
source $ad_hdl_dir/projects/scripts/adi_project_xilinx.tcl
source $ad_hdl_dir/projects/scripts/adi_board.tcl

##-----------------------------------------------------------------------------
# IMPORTANT: Set interface mode
#
# The get_env_param procedure retrieves parameter value from the environment if
# exists, other case returns the default value specified in its second parameter
# field.
#
# How to use over-writable parameters from the environment:
#
# e.g.
# make ADI_PRODUCTION = 1
#
# ADI_PRODUCTION - Defines the interface type (XMICROWAVE or FMCXMWBR1)
#
# LEGEND: 0 - XMICROWAVE - uses all the spi lines and gpios
# 1 - FMCXMWBR1 - used for production testing
#
##-----------------------------------------------------------------------------

set intf 0

if {[info exists ::env(ADI_PRODUCTION)]} {
set intf $::env(ADI_PRODUCTION)
} else {
set env(ADI_PRODUCTION) $intf
}

adi_project_create adrv9009zu11eg_fmcxmwbr1 0 [list \
RX_JESD_M [get_env_param RX_JESD_M 8] \
RX_JESD_L [get_env_param RX_JESD_L 4] \
Expand All @@ -20,13 +47,23 @@ adi_project_create adrv9009zu11eg_fmcxmwbr1 0 [list \
] "xczu11eg-ffvf1517-2-i"

adi_project_files adrv9009zu11eg_fmcxmwbr1 [list \
"system_top.v" \
"system_constr.xdc"\
"../common/adrv9009zu11eg_spi.v" \
"../common/adrv9009zu11eg_constr.xdc" \
"../common/adrv2crr_fmc_constr.xdc" \
"$ad_hdl_dir/library/common/ad_iobuf.v" ]

switch $intf {
0 {
adi_project_files adrv9009zu11eg_fmcxmwbr1 [list \
"system_top_xmicrowave.v" ]
}
1 {
adi_project_files adrv9009zu11eg_fmcxmwbr1 [list \
"system_top_fmcxmwbr1.v" ]
}
}

## To improve timing in DDR4 MIG
set_property strategy Performance_ExploreWithRemap [get_runs impl_1]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
//
// 2. An ADI specific BSD license, which can be found in the top level directory
// of this repository (LICENSE_ADIBSD), and also on-line at:
// https://github.com/analogdevicesinc/hdl/blob/main/LICENSE_ADIBSD
// https://github.com/analogdevicesinc/hdl/blob/master/LICENSE_ADIBSD
// This will allow to generate bit files and not release the source code,
// as long as it attaches to an ADI device.
//
Expand Down Expand Up @@ -282,9 +282,9 @@ module system_top (
wire [94:0] gpio_o;
wire [94:0] gpio_t;

wire [63:0] xmicrowave_gpio_i;
wire [63:0] xmicrowave_gpio_o;
wire [63:0] xmicrowave_gpio_t;
wire [63:0] fmcxmwbr1_gpio_i;
wire [63:0] fmcxmwbr1_gpio_o;
wire [63:0] fmcxmwbr1_gpio_t;

wire [2:0] spi_csn;
wire [7:0] spi1_csn;
Expand Down Expand Up @@ -365,14 +365,14 @@ module system_top (
assign gpio_i[31:28] = gpio_o[31:28];
assign gpio_i[21:20] = gpio_o[21:20];

assign xmicrowave_gpio_i[63:16] = xmicrowave_gpio_o[63:16];
assign fmcxmwbr1_gpio_i[63:16] = fmcxmwbr1_gpio_o[63:16];

ad_iobuf #(
.DATA_WIDTH(16)
) i_xmicrowave_iobuf (
.dio_t ({xmicrowave_gpio_t[15:0]}),
.dio_i ({xmicrowave_gpio_o[15:0]}),
.dio_o ({xmicrowave_gpio_i[15:0]}),
) i_fmcxmwbr1_iobuf (
.dio_t ({fmcxmwbr1_gpio_t[15:0]}),
.dio_i ({fmcxmwbr1_gpio_o[15:0]}),
.dio_o ({fmcxmwbr1_gpio_i[15:0]}),
.dio_p ({
dir_gpio7, // 15
dir_gpio6, // 14
Expand Down Expand Up @@ -667,11 +667,11 @@ module system_top (
.iic_1_sda_io (sdaout1),
.iic_2_scl_io (sclout2),
.iic_2_sda_io (sdaout2),
.xmicrowave_gpio0_o(xmicrowave_gpio_o[31:0]),
.xmicrowave_gpio0_t(xmicrowave_gpio_t[31:0]),
.xmicrowave_gpio0_i(xmicrowave_gpio_i[31:0]),
.xmicrowave_gpio1_o(xmicrowave_gpio_o[63:32]),
.xmicrowave_gpio1_t(xmicrowave_gpio_t[63:32]),
.xmicrowave_gpio1_i(xmicrowave_gpio_i[63:32]));
.fmcxmwbr1_gpio0_o(fmcxmwbr1_gpio_o[31:0]),
.fmcxmwbr1_gpio0_t(fmcxmwbr1_gpio_t[31:0]),
.fmcxmwbr1_gpio0_i(fmcxmwbr1_gpio_i[31:0]),
.fmcxmwbr1_gpio1_o(fmcxmwbr1_gpio_o[63:32]),
.fmcxmwbr1_gpio1_t(fmcxmwbr1_gpio_t[63:32]),
.fmcxmwbr1_gpio1_i(fmcxmwbr1_gpio_i[63:32]));

endmodule
35 changes: 0 additions & 35 deletions projects/adrv9009zu11eg/adrv2crr_xmicrowave/Makefile

This file was deleted.

115 changes: 0 additions & 115 deletions projects/adrv9009zu11eg/adrv2crr_xmicrowave/system_bd.tcl

This file was deleted.

64 changes: 0 additions & 64 deletions projects/adrv9009zu11eg/adrv2crr_xmicrowave/system_constr.xdc

This file was deleted.

33 changes: 0 additions & 33 deletions projects/adrv9009zu11eg/adrv2crr_xmicrowave/system_project.tcl

This file was deleted.

0 comments on commit 4b8f3f0

Please sign in to comment.