Forum Discussion
Altera_Forum
Honored Contributor
17 years agoI tried with following code to align the word but its not working. I have taken "ready" signal to increment the address of the ram. Could you suggest any modifications?
Data_align : process (iRxClk,inUserReset) -- variable count: integer:=1; begin if(inUserReset='0') then rx_channel_data_align <= "0"; elsif(iRxClk'event and iRxClk='1') then if (rx_channel_data_align = "1") then rx_channel_data_align <= "0"; end if; if(rx_dpa_locked="1") then if (rx_out = "0100110101") then rx_channel_data_align <= "0"; ready<='1'; else rx_channel_data_align <= "1"; end if; end if; end if; end process Data_align;