Altera_Forum
Honored Contributor
15 years agohow to read data from FIFO in SOPC
hi:
I have make a custom component which is added into my SOPC system,the component mainly consist of a FIFO (quartusII megacore ) ,the FIFO signals are as below: FIFO this_fifo(.aclr(reset_n), .data(active_data), .rdclk(clk_50M), .rdreq(sl_read & sl_chipselect), .wrclk(clk_27M), .wrreq(start ), .q(sl_readdata), .rdusedw(rdusedw), .wrusedw(wrusedw) ); the aim of the SOPC component(avalon slave component) is to translate the a large number of digital video data to SDRAM ,in NiosII eclipse, I write a instruction to read data from the SOPC component: IORD_ALTERA_AVALON_PIO_DATA(COMPONENT_BASE),but the wave is wrong through signaltapII ,the readdata is always zero,and sl_chipselect and sl_read are zero too,the data seems cannot be read out from FIFO,and the wave does'nt conform to the standard wave of avalon slave conponent I post the hdl code and signaltap window as attarchments.please give me some hints. thanks for your replay, I am very urge for the task!!~