Closed IstvanZsSzekely closed 1 month ago
My only concern is that i thought 0xXXXXXXXX
meant unknown reset value for Read and doesn't matter for Write.
And also the formulas should be systemverilog expressions? Because it would be too troublesome creating a "Human readable math to systemverilog" converter.
Regardless what you choose, can you document at https://github.com/analogdevicesinc/hdl/blob/main/docs/user_guide/ip_cores/creating_new_ip.rst?plain=1#L24 http://analogdevicesinc.github.io/hdl/user_guide/ip_cores/creating_new_ip.html#register-map so we reefer to it later on?
My only concern is that i thought
0xXXXXXXXX
meant unknown reset value for Read and doesn't matter for Write.
No default value for the field means that the value is unknown when it is read, so the default value in the SystemVerilog regmap package is set to 'hXXXXXXXX, which is practically the same. I found out that 0xXXXXXXXX is not handled by the HDL parser, and many of our regmap files don't have default values for fields. This is why I removed them.
Regardless what you choose, can you document at https://github.com/analogdevicesinc/hdl/blob/main/docs/user_guide/ip_cores/creating_new_ip.rst?plain=1#L24 http://analogdevicesinc.github.io/hdl/user_guide/ip_cores/creating_new_ip.html#register-map so we reefer to it later on?
I'll update these pages.
And also the formulas should be systemverilog expressions? Because it would be too troublesome creating a "Human readable math to systemverilog" converter.
This is something that I personally forgot. I'll update the all of the regmaps, where the default value has to be calculated and update the package generator as well.
PR Description
Updated regmap files to solve some issues with the regmap generation. Used with this branch from doctools to generate the regmaps.
PR Type
PR Checklist