Skip to content
Snippets Groups Projects
Commit c9293f4b authored by Daniel van der Schuur's avatar Daniel van der Schuur
Browse files

-Fixed main execution on include.

parent 43e3c5e4
No related branches found
No related tags found
No related merge requests found
......@@ -208,7 +208,10 @@ def generate_qsys(input_qsys, regs, output_filename):
output_file.close()
# Main
base_qsys_path = 'qsys_input.qsys'
regs = [('reg_my_peripheral', 16384, 3), ('reg_another_peripheral', 17152, 6)]
generate_qsys(base_qsys_path, regs, 'qsys_generated.qsys')
################################################################################
# Example main on execution of this file
################################################################################
if __name__ == '__main__':
base_qsys_path = 'qsys_input.qsys'
regs = [('reg_my_peripheral', 16384, 3), ('reg_another_peripheral', 17152, 6)]
generate_qsys(base_qsys_path, regs, 'qsys_generated.qsys')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment