Altera_Forum
Honored Contributor
14 years agoNIOS2 to 8 bit MM slave block data transfer -- Help
Hi,
I Have a 8bit addressed , 8bit width FIR IP module which i want to interface with NIOS2. My Module is interfaced with 1. MM Slave Interface 2. Interrupt Sender 3. Clk input. Entity module_fir is PORT( avalon_slave_reset:IN STD_LOGIC; avalon_slave_address:IN STD_LOGIC_VECTOR(7 DOWNTO 0); avalon_slave_chipselect:IN STD_LOGIC; avalon_slave_clk:IN STD_LOGIC; avalon_slave_read:IN STD_LOGIC; avalon_slave_write:IN STD_LOGIC; avalon_slave_writedata:IN STD_LOGIC_VECTOR(7 DOWNTO 0); avalon_slave_readdata:OUT STD_LOGIC_VECTOR(7 DOWNTO 0); avalon_slave_FIR_Completed:OUT STD_LOGIC ); end module_fir; I am using a MM slave interface with Native addressing, which s giving me Address mapped from 0x9000 to 0x93ff to my slave. the Control Register of the my slave needs to be addressed as 0x0111_1100 to start my processing. Though i am trying to write the as IOWR_8DIRECT(FIR_INTERRUPT_0_BASE, 0x1F0, 0x03) ; to receive the value as below, if avalon_slave_address = "01111100" then control_reg_value <= avalon_slave_writedata; data is not received at the HW end. PLease help .