Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

what is the problem with this program. only a short program!

always @ (posedge clk or negedge rst_n or posedge alarm) if(!rst_n || alarm) cnt_s <= 7'b0; else if (cnt_s == 7'd60 ) begin cnt_m <= cnt_m + 1 ; cnt_s <= 7'b0 ; end er...