Altera_Forum
Honored Contributor
20 years ago_regs.h files...
Hi All,
I wondering how I want to access my custom hardware and create this _regs.h file. For information, my custom hardware using 128-bit Avalon bus and I need 128-bit register as the interface to the hardware. # define IORD_ALTERA_AVALON_PWM_CLOCK_DIVIDER(base) IORD(base, 0) # define IOWR_ALTERA_AVALON_PWM_CLOCK_DIVIDER(base, data) c# define ALTERA_AVALON_PWM_CLOCK_DIVIDER_MSK (0xFFFFFFFF)# define ALTERA_AVALON_PWM_CLOCK_DIVIDER_OFST (0) Above is the example from PWM tutorial. what the meaning of 0 in the IORD(base, 0) and IORD(base, 0). Is'nt the offset for the register? If I design with 128-bit register, so what the value for this? Still 0 or other value? Thank you...