Skip to content

Commit

Permalink
adi_ip_alt: ad_ip_create: Use 'description' for the DISPLAY_NAME propery
Browse files Browse the repository at this point in the history
The DISPLAY_NAME of a module is supposed to be a short human readable
description of the IP core.

Currently this is set to the name of the IP, which already has its own
property called NAME.

This causes Platform Designer to display the descriptive labels if the IP
core basically as "$ip_core_name ($ip_core_name)".

The value that all current user of ad_ip_create pass for the description
parameter matches this criteria (And not so much the requirements for the
actual DESCRIPTION property).

Change things, so that the DISPLAY_NAME property is set to what is
currently passed as the description parameter.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
  • Loading branch information
larsclausen authored and Lars-Peter Clausen committed Aug 27, 2018
1 parent a387018 commit 396fb18
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions library/scripts/adi_ip_alt.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ proc ad_generate_module_inst { inst_name mark source_file target_file } {
###################################################################################################
###################################################################################################

proc ad_ip_create {pname pdesc {pelabfunction ""} {pcomposefunction ""}} {
proc ad_ip_create {pname pdisplay_name {pelabfunction ""} {pcomposefunction ""}} {

set_module_property NAME $pname
set_module_property DESCRIPTION $pdesc
set_module_property DISPLAY_NAME $pdisplay_name
set_module_property DESCRIPTION $pdisplay_name
set_module_property VERSION 1.0
set_module_property GROUP "Analog Devices"
set_module_property DISPLAY_NAME $pname

if {$pelabfunction ne ""} {
set_module_property ELABORATION_CALLBACK $pelabfunction
Expand Down

0 comments on commit 396fb18

Please sign in to comment.