Skip to content

Commit c8be168

Browse files
committed
axi_pulse_gen: Use set_ip_version_from_file
Signed-off-by: Jorge Marques <jorge.marques@analog.com>
1 parent 6a3bd84 commit c8be168

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

library/axi_pulse_gen/axi_pulse_gen_ip.tcl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ adi_ip_files axi_pulse_gen [list \
2121

2222
adi_ip_properties axi_pulse_gen
2323
adi_ip_ttcl axi_pulse_gen "axi_pulse_gen_constr.ttcl"
24+
adi_set_ip_version_from_file "axi_pulse_gen.v"
2425

2526
adi_ip_add_core_dependencies [list \
2627
analog.com:$VIVADO_IP_LIBRARY:util_cdc:1.0 \

library/axi_pulse_gen/axi_pulse_gen_ltt.tcl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ set ip $::ipl::ip
1111

1212
set ip [ipl::add_ports_from_module -ip $ip -mod_data $mod_data]
1313

14+
set version [ipl::set_ip_version_from_file -file "axi_pulse_gen.v"]
15+
1416
set ip [ipl::general \
15-
-vlnv "analog.com:ip:axi_pulse_gen:1.0" \
17+
-vlnv "analog.com:ip:axi_pulse_gen:$version" \
1618
-display_name "ADI AXI Pulse generator" \
1719
-supported_products {*} \
1820
-supported_platforms {esi radiant} \

0 commit comments

Comments
 (0)