Skip to content

Commit

Permalink
axi_dac_interpolate: Debug core
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiGrozav committed Oct 10, 2023
1 parent f947f00 commit 2feba8f
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
20 changes: 20 additions & 0 deletions library/axi_dac_interpolate/axi_dac_interpolate_filter.v
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,26 @@ module axi_dac_interpolate_filter #(
assign iqcor_data_in = raw_dma_n ? dac_raw_ch_data : dac_data;
assign iqcor_valid_in = raw_dma_n ? 1'b1 : dac_valid;

int_ila i_ila (
.clk(dac_clk),
.probe0(dac_data),
.probe1(iqcor_data_in ),
.probe2(iqcor_valid_in),
.probe3(dma_valid),
.probe4(dma_valid_adjacent),
.probe5(stop_transfer),
.probe6(flush_dma),
.probe7(raw_dma_n),
.probe8(transfer_sm),
.probe9(dac_int_data),
.probe10(dac_valid_out),
.probe11(reset_filt),
.probe12(filter_mask),
.probe13(transfer_start),
.probe14(trigger),
.probe15(transfer_ready)
);

ad_iqcor #(
.Q_OR_I_N (0),
.DISABLE(CORRECTION_DISABLE),
Expand Down
15 changes: 15 additions & 0 deletions library/axi_dac_interpolate/axi_dac_interpolate_ip.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,21 @@ source ../../scripts/adi_env.tcl
source $ad_hdl_dir/library/scripts/adi_ip_xilinx.tcl

adi_ip_create axi_dac_interpolate
create_ip -name ila -vendor xilinx.com -library ip -version 6.2 -module_name int_ila
set_property -dict [list CONFIG.C_MONITOR_TYPE {Native}] [get_ips int_ila]
set_property -dict [list CONFIG.C_NUM_OF_PROBES {16}] [get_ips int_ila]
set_property -dict [list CONFIG.C_DATA_DEPTH {2048}] [get_ips int_ila]
set_property -dict [list CONFIG.C_TRIGIN_EN {false}] [get_ips int_ila]
set_property -dict [list CONFIG.C_PROBE0_WIDTH {16}] [get_ips int_ila]
set_property -dict [list CONFIG.C_PROBE1_WIDTH {16}] [get_ips int_ila]
set_property -dict [list CONFIG.C_PROBE2_WIDTH {1}] [get_ips int_ila]
set_property -dict [list CONFIG.C_PROBE6_WIDTH {1}] [get_ips int_ila]
set_property -dict [list CONFIG.C_PROBE8_WIDTH {2}] [get_ips int_ila]
set_property -dict [list CONFIG.C_PROBE9_WIDTH {16}] [get_ips int_ila]
set_property -dict [list CONFIG.C_PROBE10_WIDTH {1}] [get_ips int_ila]
set_property -dict [list CONFIG.C_PROBE12_WIDTH {3}] [get_ips int_ila]
set_property -dict [list CONFIG.C_PROBE13_WIDTH {1}] [get_ips int_ila]
generate_target {all} [get_files axi_dac_interpolate.srcs/sources_1/ip/int_ila/int_ila.xci]
adi_ip_files axi_dac_interpolate [list \
"$ad_hdl_dir/library/common/up_xfer_cntrl.v" \
"$ad_hdl_dir/library/common/up_axi.v" \
Expand Down

0 comments on commit 2feba8f

Please sign in to comment.