Forum Discussion
Altera_Forum
Honored Contributor
13 years agomartinboy, if I understand your question(s) correctly, the answer is "it doesn't work like that".
You don't "get the address of register" and then use that information to program a port of the TSE MAC. There is no C/C++ equivalent of "int foo; printf("%x", &foo);" If your objective is to initialize the MAC ADDRESS of the TSE MAC IP block, then you need to drive it's Avalon-MM control port interface with multiple transactions to perform writes to the relevant addresses. Some useful documents for you would be: http://www.altera.com/literature/ug/ug_ethernet.pdf (the ethernet controller) http://www.altera.com/literature/manual/mnl_avalon_spec.pdf (how to drive the Avalon-MM)