Forum Discussion
Altera_Forum
Honored Contributor
15 years ago --- Quote Start --- I not familiar with hardware language --- Quote End --- Yes, it's pretty obvious when seeing your code. I guess you'll need a tutorial or textbook. The below construct makes all datax variables undefined and can already explain, why you don't get any output from the design. N is simply ignored, so the code means to put the four signals in a logic chain. The meaningless construct will be discarded by a design compiler.
always @(N)
begin
data1<=data2;
data2<=data3;
data3<=data4;
data4<=data1;
end