Forum Discussion
Altera_Forum
Honored Contributor
15 years ago --- Quote Start --- I don't know what you mean when you say that the Led lag the rd_led they update together they are in the same IF Statement suppose to be any way that who I see it . --- Quote End --- Because you assign LED to rd_LED, LED takes the old value of rd_LED. Signals are not updated immediatly like variables, they are updated when a process suspends. so whith this code in a clocked process: b <= a; c <= b; this is what happens:
clk _|-|_|-|_|-|_|-|_|-|_|
a 0 1 2 3 4 5
b U 0 1 2 3 4
c U U 0 1 2 3