Altera_Forum
Honored Contributor
15 years agoa bug of switch?
Hi,
I'm implementing a data path with a switch of VIP. From the VIP user guide, it mentioned that the status of switch can be read from its status register, when switch is running, it reads a 0 from bit0, otherwise it reads a 1, but in fact the status register is always read 0, no matter I stop or start the switch. I program in the way below. IOWR(ALT_VIP_SWI_0_BASE, 0x00, 0x00); tmp = IORD(ALT_VIP_SWI_0_BASE, 0x01); IOWR(ALT_VIP_SWI_0_BASE, 0x00, 0x01); tmp = IORD(ALT_VIP_SWI_0_BASE, 0x01); Thanks for reply!