A C++ tool that converts ARM SVD (System View Description) files into C++ headers for the Kvasir register access library.
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)svd_convert(my_chip
SVD_FILE path/to/chip.svd
OUTPUT_DIRECTORY chips
GENERATOR kvasir_bit
)
target_link_libraries(${target_name} my_chip)./svd_converter input.svd output_dir kvasir_bitkvasir_bit- Generates Kvasir register access headersjson- Outputs structured JSON representationcustom_template- Uses custom inja templates
svd_convert(my_chip
SVD_FILE chip.svd
OUTPUT_DIRECTORY output
GENERATOR custom_template
GENERATOR_ARGS templates/ hpp
)