Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Driver Sources

The source code for the driver is included with the Vitis Unified Software Platform installation, as well as being available in the Xilinx Github repository. 


Driver Name

Path in Vitis

Path in Github

scugic

<Vitis Install Directory>/data/embedded/XilinxProcessorIPLib/drivers/scugic

https://github.com/Xilinx/embeddedsw/tree/master/XilinxProcessorIPLib/drivers/scugic


Info

Note: To view the sources for a particular release, use the rel-version tag in github.  For example, for the 2020.1 release, the proper version of the code is: https://github.com/Xilinx/embeddedsw/tree/release-2020.1/XilinxProcessorIPLib/drivers/scugic

The driver source code is organized into different folders.  The table below shows the ospipsv driver source organization. 


Directory
Description

doc

Provides the API and data structure details

data

Driver .tcl, .mdd and .mdd yaml file

examples

Example applications that show how to use the driver features

src

Driver source files, make and cmakelists file

Note: The .yaml(in data folder) and CMakeLists.txt(in src folder) files would be used in System Device Tree based flow.

Driver Implementation

For a full list of features supported by this IP, please refer ARM GIC v2 and v3 specifications.

...

Example Applications

Refer to the driver examples directory for various example applications that exercise the different features of the driver. Each application is linked in the table below. The following sections describe the usage and expected output of the various applications.  These example applications can be imported into the Vitis IDE from the Board Support Package  settings tab. 

Links to Examples

Examples Path:

https://github.com/Xilinx/embeddedsw/tree/release-2020.1xlnx_rel_v2023.2/XilinxProcessorIPLib/drivers/scugic/examples


Test Name

Example Source

Description
SCUGIC software generated interrupt example

xscugic_example.c

This example demonstrates triggering of interrupts by simulating software generated interrupt.
SCUGIC self test example

xscugic_tapp_example.c

This examples demonstrates basic initialization of scugic driver
SCUGIC low level example

xscugic_low_level_example.c

This example demonstrates triggering of interrupts by simulating software generated interrupt. It uses low level APIs of scugic driver.

Example Application Usage

SCUGIC software generated interrupt example

...


Expected output
Code Block
themeMidnight
GIC Example Test
Successfully ran GIC example Test

SCUGIC low level example

This example demonstrates triggering of interrupts by simulating software generated interrupt. It uses low level APIs of scugic driver.
Expected Output
Code Block
themeMidnight
Low Level GIC Example Test
Successfully ran Low Level GIC example Test

SCUGIC selftest example

This examples demonstrates basic initialization of scugic driver

Expected Output

Code Block
themeMidnight
Successfully ran Scugic self test Example

Note:

  • Driver examples are not ported to system device tree flow

Changelog

2023.2

https://github.com/Xilinx/embeddedsw/blob/xlnx_rel_v2023.2/doc/ChangeLog#L291

2023.1

...