Forum Discussion
Altera_Forum
Honored Contributor
11 years ago --- Quote Start --- just register them directly:
signal rd_r : std_logic_vector(1 downto 0);
signal serial_rx_r : std_logic_vector(1 downto 0);
process(clk)
begin
if rising_edge(clk) then
serial_rx_r <= serial_rx_r(0) & serial_rx;
rd_r <= rd_r(0) & rd;
end if;
end if;
Then use rd_r(1) instead of the origional input "rd" and the same for serial_rx --- Quote End --- I know it is a lot of questions but: I noted that you coded inside the reset process. I am doing this "shifting register" in another process where I've implemented the FSM. I have a process for clock and reset, and another process for FSM. Should I implement the double register in the clock/reset process? Not in the FSM process? This is causing to me some confusion.