Forum Discussion
Altera_Forum
Honored Contributor
12 years agoAccessing inputs and outputs of a custom component
Hello every body; I have created my custom compnent caled "cipher", it takes 2x128 bits input and produce one 128bit ouput, the component definition in system.h is: #define ALT_MODULE_CLAS...
Altera_Forum
Honored Contributor
12 years ago --- Quote Start --- 1-what is the address of the inputs and outputs. --- Quote End --- CIPHER_0_BASE + offset where 'offset' is whatever register addresses you have defined within your custom component (i.e. how you decode the 'address' on the Avalon-MM Slave port) --- Quote Start --- 2-how can i access them if i want to pass and read the inputs and the outputs as 4x4 array. --- Quote End --- You can use IORD/IOWR macros to access the registers you have created one at a time.