Can concurrent statements be synchronous?
I have a when-else statement like the following and I want to make it execute at the rising edge of the clock:
Actually they can. You have to have 1 signal creating the async logic, and another signal to register it. You can do the following to produce a flip flip:
d <= '1' when (sig2 = '1') else '0';
q <= d when rising_edge(clk); --creates a register.
Actually they can. You have to have 1 signal creating the async logic, and another signal to register it. You can do the following to produce a flip flip:
d <= '1' when (sig2 = '1') else '0';
q <= d when rising_edge(clk); --creates a register.