PeakRDL icon indicating copy to clipboard operation
PeakRDL copied to clipboard

[FEATURE] Enable Pre-registered User-Defined Properties via the TOML Config

Open allRisc opened this issue 3 months ago • 0 comments

Is this related to a PeakRDL sub-command? No

Describe the problem/limitation you think should be addressed It would be convenient to enable registering customer User-Defined Properties Classes (as shown here). This would enable common UDPs to be shared in a local Python package.

Describe the solution you'd like Create a configuration udp under [peakrdl] section in the configuration TOML. This configuration could be a list of python class types that are added to the rdlc such as below:

[peakrdl]

udp = [
    "my_udp:MyUDPDefinition"
]

Describe alternatives you've considered Create a custom plugin which includes them under the udp_definitions class variable. However, this doesn't enable them to be shared across all of the various tools to enable direct use when the UDP is not necessary.

allRisc avatar Sep 03 '25 23:09 allRisc