
6 May
2013
6 May
'13
4:50 p.m.
Hi Wolfgang,
...
We strictly discourage using a notation of base address plus offset, and require to use proper C structs instead, especially because this allows type checking by the compiler.
I am very well aware of that.
You had the this, and now attempt to throw it away. This makes no sense.
In fact it does. We have FPGAs that are memory mapped and others that are not. They must be accessed by the same drivers. So the alternative would be to create FPGA instances at address NULL and getting the register offesets by casting pointers to u16. Not very nice either.
Cheers Dirk