Forum Discussion
Altera_Forum
Honored Contributor
8 years agoThe reason for the always_ff block not working is because you'v used the bit-wise AND (&) operator and not the logical AND (&&). Change the '&' to '&&' and try. It will trigger this time.
/*this is the part that doesn't work
always_ff @(posedge oneSecondEnable) begin
if (rollHourTens ==2 & rollHourOnes==4) begin <------ Change this to logical && from the bitwise &
reset;
end
end
*/