Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SVD Converter

A C++ tool that converts ARM SVD (System View Description) files into C++ headers for the Kvasir register access library.

Usage

To use this library, include it in your project as a git submodule and add the following to your CMakeLists.txt:

add_subdirectory(svd_converter)

Converting SVD Files

svd_convert(my_chip
    SVD_FILE path/to/chip.svd
    OUTPUT_DIRECTORY chips
    GENERATOR kvasir_bit
)

target_link_libraries(${target_name} my_chip)

Command Line Usage

./svd_converter input.svd output_dir kvasir_bit

Generators

  • kvasir_bit - Generates Kvasir register access headers
  • json - Outputs structured JSON representation
  • custom_template - Uses custom inja templates

Custom Template Example

svd_convert(my_chip
    SVD_FILE chip.svd
    OUTPUT_DIRECTORY output
    GENERATOR custom_template
    GENERATOR_ARGS templates/ hpp
)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages