Forum Discussion
Altera_Forum
Honored Contributor
12 years agoFrom what I take, you're suggesting something like this?
process (Clk, Reset, SPI_Clk) begin
if Reset = '1' then
shift_reg64 <= x"0000000000000000";
elsif rising_edge(Clk) then
if rising_edge(SPI_Clk) then
shift_reg64(63 downto 0) <= shift_reg64(62 downto 0) & SPI_Data;
end if;
end if;
end process;
But this code doesn't compile... Any idea?