Skip to content

Commit 8f313fa

Browse files
library/axi_ltc2387: Remove GUI parameters
Signed-off-by: Iulia Moldovan <Iulia.Moldovan@analog.com>
1 parent c683fa9 commit 8f313fa

File tree

2 files changed

+7
-48
lines changed

2 files changed

+7
-48
lines changed

library/axi_ltc2387/axi_ltc2387_channel.v

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,13 @@ module axi_ltc2387_channel #(
101101

102102
assign adc_pn_err_s = adc_pn_err;
103103

104-
// expected pattern
104+
// expected patterns:
105+
// 18-bit, one-lane: 10 1000 0001 1111 1100
106+
// 16-bit, one-lane: 10 1000 0001 1111 11
107+
// 18-bit, two-lane: 11 0011 0000 1111 1100
108+
// 16-bit, one-lane: 11 0011 0000 1111 11
109+
// basically, the 16-bit variant doesn't have the LSBs 00
110+
// so we can sum this up as the 16-bit expected pattern + 2 zeroes for the 18-bit one
105111

106112
generate
107113
if (TWOLANES == 1) begin

library/axi_ltc2387/axi_ltc2387_ip.tcl

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -30,50 +30,3 @@ adi_ip_files axi_ltc2387 [list \
3030
"axi_ltc2387.v" ]
3131

3232
adi_ip_properties axi_ltc2387
33-
34-
set cc [ipx::current_core]
35-
set page0 [ipgui::get_pagespec -name "Page 0" -component $cc]
36-
37-
ipx::infer_bus_interface ref_clk xilinx.com:signal:clock_rtl:1.0 $cc
38-
ipx::infer_bus_interface dco_p xilinx.com:signal:clock_rtl:1.0 $cc
39-
ipx::infer_bus_interface dco_n xilinx.com:signal:clock_rtl:1.0 $cc
40-
41-
ipgui::add_static_text -name {Warning} -component $cc -parent $page0 -text {In one-lane mode, only 18-bit resolution is supported!}
42-
43-
ipx::add_user_parameter ADC_RES $cc
44-
set_property value_resolve_type user [ipx::get_user_parameters ADC_RES -of_objects $cc]
45-
ipgui::add_param -name "ADC_RES" -component $cc -parent $page0
46-
set_property -dict [list \
47-
"display_name" "ADC_RES" \
48-
"layout" "horizontal" \
49-
"tooltip" "ADC resolution" \
50-
"widget" "radioGroup" \
51-
] [ipgui::get_guiparamspec -name "ADC_RES" -component $cc]
52-
53-
set_property -dict [list \
54-
"value" "18" \
55-
"value_format" "long" \
56-
"value_validation_type" "list" \
57-
"value_validation_list" "18 16" \
58-
] [ipx::get_user_parameters ADC_RES -of_objects $cc]
59-
60-
ipx::add_user_parameter TWOLANES $cc
61-
set_property value_resolve_type user [ipx::get_user_parameters TWOLANES -of_objects $cc]
62-
ipgui::add_param -name "TWOLANES" -component $cc -parent $page0
63-
set_property -dict [list \
64-
"display_name" "TWOLANES" \
65-
"layout" "horizontal" \
66-
"tooltip" "Two-lane mode (1) or one-lane mode (0)" \
67-
"widget" "radioGroup" \
68-
] [ipgui::get_guiparamspec -name "TWOLANES" -component $cc]
69-
70-
set_property -dict [list \
71-
"value" "1" \
72-
"value_format" "long" \
73-
"value_validation_type" "list" \
74-
"value_validation_list" "1 0" \
75-
] [ipx::get_user_parameters TWOLANES -of_objects $cc]
76-
77-
ipx::create_xgui_files $cc
78-
ipx::update_checksums $cc
79-
ipx::save_core $cc

0 commit comments

Comments
 (0)