Nios® II Software Developer Handbook

ID 683525
Date 8/28/2023
Public
Document Table of Contents

16.5.2.20. get_driver

Usage

get_driver <module_name>

Options

  • <module_name>: String with the name of the module instance to query.

Description

Returns the driver name associated with the specified module instance. The format is <driver name> followed by a colon and the version (if provided). Returns the string "none" if there is no driver associated with the specified module instance name.

Examples

  • Example 1:puts [get_driver jtag_uart]

    Returns:

    altera_avalon_jtag_uart_driver:7.2
  • Example 2:puts [get_driver onchip_ram_64_kbytes]

    Returns:

    none