Design documentation: AsciiDoc conversion (#2399)

This commit is contained in:
slgth 2024-07-25 17:18:27 +02:00 committed by GitHub
parent fd489a16fb
commit e9648eaf8c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
159 changed files with 19544 additions and 7229 deletions

View file

@ -79,3 +79,29 @@ def writeout_parameter_table(fileout, parameters, module):
fout.write(f" * - {name}\n")
fout.write(f" - {parameters[name].description}\n")
fout.write(f" - {parameters[name].value}\n")
def writeout_parameter_table_adoc(fileout, parameters, module):
with open(fileout, "w") as fout:
fout.write("////\n")
fout.write(" Copyright 2024 Thales DIS France SAS\n")
fout.write(
' Licensed under the Solderpad Hardware License, Version 2.1 (the "License");\n'
)
fout.write(
" you may not use this file except in compliance with the License.\n"
)
fout.write(" SPDX-License-Identifier: Apache-2.0 WITH SHL-2.1\n")
fout.write(
" You may obtain a copy of the License at https://solderpad.org/licenses/\n\n"
)
fout.write(" Original Author: Jean-Roch COULON - Thales\n")
fout.write("////\n\n")
fout.write(f"[[{module}_PARAMETERS]]\n\n")
fout.write(f".{module} parameter configuration\n")
fout.write("|===\n")
fout.write("|Name | description | description\n\n")
for name in parameters:
fout.write(f"|{name} | {parameters[name].description} | {parameters[name].value}\n")
fout.write("|===\n")