-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
generating headers from neorv32.svd #595
base: main
Are you sure you want to change the base?
Conversation
there are definitely some "wrong" values still sourced in right now, i'm looking for general approval of the approach -- after which i'll take this PR a few steps further.... |
Hey there! This looks really promising! Unfortunately, my Python capabilities are quite limited, so it'll take a while for me to understand your script 😉 I see a general problem here. The current C and header files use Doxygen comments for generating the online software framework documentation at https://stnolting.github.io/neorv32/sw/files.html. How would we generate those comments from the SVD file? I also think that would be a nice feature if the automatic conversion could generate an individual header file for each module (like it is done manually now). I think this would be much cleaner. What do you think? |
my python skills are also quite limited; i only picked python because i found other as for the doxygen comments, it's a straightforward exercise to generate these as well.... the |
the individual header files would continue to exist in this approach -- they would still need to define the functional APIs implemented in the corresponding C files.... but since these API defintions are NOT sourced from the while it is possible to mix "automatically-generated" and "manually-maintained" code in a single file, it's not a best-practice.... the generated |
I Think I am pretty old-school here. I like bash scripts and good old makefiles 😅 But Python is also just fine.
That would be great! Btw, have you tested the auto-generated header file for completeness? I think some defines might be missing (e.g. pre-defined bit patters). You could also define Line 30 in d0cd94a
|
Hey @biosbob! This PR has been pending for way too long... sorry for that 🙈 How about refreshing this? I think it would be really handy if we could provide a simple script that turns all the header files into a single SVD file - automatically. If the impact on the header files is low (which it seems to be) and if we keep the manually-drafted SVD file for now I would be totally fine with this. ;) |
for some background, see #590