so I’ve come across some old code that I have to replicate, but it won’t compile with the new Xilinx compiler, so I need to figure out exactly what it does. I have something like this:
if rising_edge(clk) then
—do some things
if rising_edge(clk) then
—do some other things
end if
end if
Does it take 2 clock cycles to get to the inner if statement, or is the second if statement simply redundant?
Also, Xilinx gives the error: “Logic for signal is controlled by a clock but does not appear to be a valid sequential description”
Thanks, and any help is appreciated.