Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20688 Discussions

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

Altera_Forum
Honored Contributor II
1,266 Views

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 

 

 

error : Error (10028): Can't resolve multiple constant drivers for net "cnt_m[3]" at timeinterrupt.v(42)
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
253 Views

Is there any othere code in the program where the cnt_m writed? I think the problem is that you change the cnt_m value in different always blocks.

0 Kudos
Altera_Forum
Honored Contributor II
253 Views

yes ... thanks for your answer...  

i have used it in another always blocks
0 Kudos
Altera_Forum
Honored Contributor II
253 Views

You're welcome ;)

0 Kudos
Reply