Skip to content

Commit

Permalink
cn0585: Remove/rename _fmcz folders
Browse files Browse the repository at this point in the history
  • Loading branch information
StancaPop committed Jul 23, 2024
1 parent 191b36e commit 74d3103
Show file tree
Hide file tree
Showing 31 changed files with 60 additions and 42 deletions.
33 changes: 16 additions & 17 deletions CI/scripts_hdl/matlab_processors.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@ proc preprocess_bd {project carrier rxtx} {
puts "Preprocessing $project $carrier $rxtx"

switch $project {
cn0585_fmcz {
cn0585 {
# Disconnect the ADC PACK pins
delete_bd_objs [get_bd_nets axi_ltc2387_0_adc_data]
delete_bd_objs [get_bd_nets axi_ltc2387_1_adc_data]
delete_bd_objs [get_bd_nets axi_ltc2387_2_adc_data]
delete_bd_objs [get_bd_nets axi_ltc2387_3_adc_data]

delete_bd_objs [get_bd_nets axi_ltc2387_0_adc_data]
delete_bd_objs [get_bd_nets axi_ltc2387_1_adc_data]
delete_bd_objs [get_bd_nets axi_ltc2387_2_adc_data]
delete_bd_objs [get_bd_nets axi_ltc2387_3_adc_data]

set sys_cstring "matlab $rxtx"
sysid_gen_sys_init_file $sys_cstring
Expand All @@ -20,21 +19,21 @@ proc preprocess_bd {project carrier rxtx} {
connect_bd_net [get_bd_pins axi_ltc2387_0/adc_valid] [get_bd_pins axi_ltc2387_dma/fifo_wr_en]

if {$rxtx == "rx"} {
connect_bd_net [get_bd_pins axi_ltc2387_0/adc_data] [get_bd_pins axi_ad3552r_0/data_in_a]
connect_bd_net [get_bd_pins axi_ltc2387_0/adc_data] [get_bd_pins axi_ad3552r_0/data_in_a]
connect_bd_net [get_bd_pins axi_ltc2387_1/adc_data] [get_bd_pins axi_ad3552r_0/data_in_b]
connect_bd_net [get_bd_pins axi_ltc2387_2/adc_data] [get_bd_pins axi_ad3552r_1/data_in_a]
connect_bd_net [get_bd_pins axi_ltc2387_3/adc_data] [get_bd_pins axi_ad3552r_1/data_in_b]
}

if {$rxtx == "tx"} {
connect_bd_net [get_bd_pins axi_ltc2387_0/adc_data] [get_bd_pins util_ltc2387_adc_pack/fifo_wr_data_0]
connect_bd_net [get_bd_pins axi_ltc2387_0/adc_data] [get_bd_pins util_ltc2387_adc_pack/fifo_wr_data_0]
connect_bd_net [get_bd_pins axi_ltc2387_1/adc_data] [get_bd_pins util_ltc2387_adc_pack/fifo_wr_data_1]
connect_bd_net [get_bd_pins axi_ltc2387_2/adc_data] [get_bd_pins util_ltc2387_adc_pack/fifo_wr_data_2]
connect_bd_net [get_bd_pins axi_ltc2387_3/adc_data] [get_bd_pins util_ltc2387_adc_pack/fifo_wr_data_3]
connect_bd_net [get_bd_pins axi_ltc2387_0/adc_valid] [get_bd_pins util_ltc2387_adc_pack/fifo_wr_en]
}

if {$rxtx == "tx" || $rxtx == "rxtx"} {
if {$rxtx == "tx" || $rxtx == "rxtx"} {

delete_bd_objs [get_bd_nets axi_ltc2387_0_adc_valid]
delete_bd_objs [get_bd_nets axi_ltc2387_1_adc_valid]
Expand All @@ -45,14 +44,14 @@ proc preprocess_bd {project carrier rxtx} {
connect_bd_net [get_bd_pins axi_ad3552r_0/valid_in_a] [get_bd_pins axi_ad3552r_0/valid_in_b]
connect_bd_net [get_bd_pins axi_ad3552r_0/valid_in_a] [get_bd_pins axi_ad3552r_1/valid_in_a]
connect_bd_net [get_bd_pins axi_ad3552r_0/valid_in_a] [get_bd_pins axi_ad3552r_1/valid_in_b]
}
switch $carrier {
zed {
set_property -dict [list CONFIG.NUM_MI {21}] [get_bd_cells axi_cpu_interconnect]
connect_bd_net [get_bd_pins axi_cpu_interconnect/M20_ACLK] [get_bd_pins axi_clkgen/clk_0]
connect_bd_net [get_bd_pins axi_cpu_interconnect/M20_ARESETN] [get_bd_pins sampling_clk_rstgen/peripheral_aresetn]
}
}
}
switch $carrier {
zed {
set_property -dict [list CONFIG.NUM_MI {21}] [get_bd_cells axi_cpu_interconnect]
connect_bd_net [get_bd_pins axi_cpu_interconnect/M20_ACLK] [get_bd_pins axi_clkgen/clk_0]
connect_bd_net [get_bd_pins axi_cpu_interconnect/M20_ARESETN] [get_bd_pins sampling_clk_rstgen/peripheral_aresetn]
}
}
}
}
}
2 changes: 1 addition & 1 deletion hdl/vendor/AnalogDevices/+AnalogDevices/plugin_rd.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
pname = upper(project);
ppath = project;
if strcmpi(project, 'cn0585')
ppath = 'cn0585_fmcz';
ppath = 'cn0585';
end

% Construct reference design object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ proc preprocess_bd {project carrier rxtx} {
switch $project {
cn0585 {
# Disconnect the ADC PACK pins
delete_bd_objs [get_bd_nets axi_ltc2387_0_adc_data]
delete_bd_objs [get_bd_nets axi_ltc2387_1_adc_data]
delete_bd_objs [get_bd_nets axi_ltc2387_2_adc_data]
delete_bd_objs [get_bd_nets axi_ltc2387_3_adc_data]

delete_bd_objs [get_bd_nets axi_ltc2387_0_adc_data]
delete_bd_objs [get_bd_nets axi_ltc2387_1_adc_data]
delete_bd_objs [get_bd_nets axi_ltc2387_2_adc_data]
delete_bd_objs [get_bd_nets axi_ltc2387_3_adc_data]

set sys_cstring "matlab $rxtx"
sysid_gen_sys_init_file $sys_cstring
Expand All @@ -20,21 +19,21 @@ proc preprocess_bd {project carrier rxtx} {
connect_bd_net [get_bd_pins axi_ltc2387_0/adc_valid] [get_bd_pins axi_ltc2387_dma/fifo_wr_en]

if {$rxtx == "rx"} {
connect_bd_net [get_bd_pins axi_ltc2387_0/adc_data] [get_bd_pins axi_ad3552r_0/data_in_a]
connect_bd_net [get_bd_pins axi_ltc2387_0/adc_data] [get_bd_pins axi_ad3552r_0/data_in_a]
connect_bd_net [get_bd_pins axi_ltc2387_1/adc_data] [get_bd_pins axi_ad3552r_0/data_in_b]
connect_bd_net [get_bd_pins axi_ltc2387_2/adc_data] [get_bd_pins axi_ad3552r_1/data_in_a]
connect_bd_net [get_bd_pins axi_ltc2387_3/adc_data] [get_bd_pins axi_ad3552r_1/data_in_b]
}

if {$rxtx == "tx"} {
connect_bd_net [get_bd_pins axi_ltc2387_0/adc_data] [get_bd_pins util_ltc2387_adc_pack/fifo_wr_data_0]
connect_bd_net [get_bd_pins axi_ltc2387_0/adc_data] [get_bd_pins util_ltc2387_adc_pack/fifo_wr_data_0]
connect_bd_net [get_bd_pins axi_ltc2387_1/adc_data] [get_bd_pins util_ltc2387_adc_pack/fifo_wr_data_1]
connect_bd_net [get_bd_pins axi_ltc2387_2/adc_data] [get_bd_pins util_ltc2387_adc_pack/fifo_wr_data_2]
connect_bd_net [get_bd_pins axi_ltc2387_3/adc_data] [get_bd_pins util_ltc2387_adc_pack/fifo_wr_data_3]
connect_bd_net [get_bd_pins axi_ltc2387_0/adc_valid] [get_bd_pins util_ltc2387_adc_pack/fifo_wr_en]
}

if {$rxtx == "tx" || $rxtx == "rxtx"} {
if {$rxtx == "tx" || $rxtx == "rxtx"} {

delete_bd_objs [get_bd_nets axi_ltc2387_0_adc_valid]
delete_bd_objs [get_bd_nets axi_ltc2387_1_adc_valid]
Expand All @@ -45,14 +44,14 @@ proc preprocess_bd {project carrier rxtx} {
connect_bd_net [get_bd_pins axi_ad3552r_0/valid_in_a] [get_bd_pins axi_ad3552r_0/valid_in_b]
connect_bd_net [get_bd_pins axi_ad3552r_0/valid_in_a] [get_bd_pins axi_ad3552r_1/valid_in_a]
connect_bd_net [get_bd_pins axi_ad3552r_0/valid_in_a] [get_bd_pins axi_ad3552r_1/valid_in_b]
}
switch $carrier {
zed {
set_property -dict [list CONFIG.NUM_MI {21}] [get_bd_cells axi_cpu_interconnect]
connect_bd_net [get_bd_pins axi_cpu_interconnect/M20_ACLK] [get_bd_pins axi_clkgen/clk_0]
connect_bd_net [get_bd_pins axi_cpu_interconnect/M20_ARESETN] [get_bd_pins sampling_clk_rstgen/peripheral_aresetn]
}
}
}
switch $carrier {
zed {
set_property -dict [list CONFIG.NUM_MI {21}] [get_bd_cells axi_cpu_interconnect]
connect_bd_net [get_bd_pins axi_cpu_interconnect/M20_ACLK] [get_bd_pins axi_clkgen/clk_0]
connect_bd_net [get_bd_pins axi_cpu_interconnect/M20_ARESETN] [get_bd_pins sampling_clk_rstgen/peripheral_aresetn]
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -x
cd "$(dirname "$0")"
if [ -z "${HDLBRANCH}" ]; then
HDLBRANCH='cn0585_pr'
HDLBRANCH='main'
fi

# Script is designed to run from specific location
Expand Down
32 changes: 26 additions & 6 deletions test/BSPTestsBase.m
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ function CollectLogs(testCase,cfgb)
disp('Found workflow_task_CreateProject... copying');
movefile('workflow_task_CreateProject.log',[rdn,'_CreateProject_',cfgb.mode,'.log']);
end
system(join(["find '",testCase.Folder,"' -name 'system_top_timing_summary_routed.rpt' | xargs -I '{}' cp {} ."],''));
if exist('system_top_timing_summary_routed.rpt','file')
disp('Found system_top_timing_summary_routed... copying');
movefile('system_top_timing_summary_routed.rpt',[rdn,'_timing_summary_',cfgb.mode,'.rpt']);
end
system(join(["find '",testCase.Folder,"' -name 'workflow_task_BuildFPGABitstream.log' | xargs -I '{}' cp {} ."],''));
if exist('workflow_task_BuildFPGABitstream.log','file')
disp('Found workflow_task_BuildFPGABitstream... copying');
Expand Down Expand Up @@ -109,6 +114,15 @@ function CollectLogs(testCase,cfgb)
'vivado_version',vivado_version,'mode',mode);
cfg = [cfg(:)',{cfg1},{cfg2},{cfg3}];

mode = 'tx_rx';
h2 = str2func([s,'.',variants{k},'.plugin_rd_txrx']);h2 = h2();
ReferenceDesignName = h2.ReferenceDesignName;
vivado_version = h2.SupportedToolVersion{:};
cfg4 = struct('Board',h1,...
'ReferenceDesignName',ReferenceDesignName,...
'vivado_version',vivado_version,'mode',mode);
cfg = [cfg(:)',{cfg1},{cfg2},{cfg4}];

end

end
Expand All @@ -124,7 +138,7 @@ function CollectLogs(testCase,cfgb)
assert(0);
elseif strcmp(s{2},'adrv9361z7035') || ...
strcmp(s{2},'adrv9364z7020')
h = str2func([strjoin(s(1:2),'.'),'.common.plugin_board']);
h = str2func([strjoin(s(1:2),'.'),'.plugin_board']);
else
h = str2func([strjoin(s(1:end-1),'.'),'.plugin_board']);
end
Expand All @@ -138,10 +152,16 @@ function CollectLogs(testCase,cfgb)
end

function setVivadoPath(~,vivado)
if ispc
pathname = ['C:\Xilinx\Vivado\',vivado,'\bin\vivado.bat'];
elseif isunix
pathname = ['/opt/Xilinx/Vivado/',vivado,'/bin/vivado'];
CUSTOM_VIVADO_PATH = getenv('CUSTOM_VIVADO_PATH');
if ~isempty(CUSTOM_VIVADO_PATH)
pathname = CUSTOM_VIVADO_PATH;
fprintf('Using custom Vivado path: %s\n',pathname);
else
if ispc
pathname = ['C:\Xilinx\Vivado\',vivado,'\bin\vivado.bat'];
elseif isunix
pathname = ['/emea/mediadata/opt/Xilinx/Vivado/',vivado,'/bin/vivado'];
end
end
assert(exist(pathname,'file')>0,'Correct version of Vivado is unavailable or in a non-standard location');
hdlsetuptoolpath('ToolName', 'Xilinx Vivado', ...
Expand Down Expand Up @@ -183,4 +203,4 @@ function testMain(testCase, configs, SynthesizeDesign)
end
end
end
end
end
2 changes: 1 addition & 1 deletion test/build_design.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

% Specify the top level project directory
hWC.ProjectFolder = folder;
hWC.ReferenceDesignToolVersion = vivado_version;
hWC.ReferenceDesignToolVersion = '2023.2';
hWC.IgnoreToolVersionMismatch = true;
hWC.AllowUnsupportedToolVersion = true;

Expand Down

0 comments on commit 74d3103

Please sign in to comment.