Forum Discussion
Altera_Forum
Honored Contributor
16 years agoI can't solve the wrong with a stop watch desiging
I was designing a stop watch this week,but get some troubles. There are four keys---reset,stop,minset(minute set),and secset(second set) in the watch.The reset and stop fuctions are right,but the ...
Altera_Forum
Honored Contributor
16 years agoIn Quartus synthesis, the said always@(sclk) block works as a simple conditional assignment:
assign ssclk=(keyclk)?0:sclk; But keyclk must be added to the sensitivity list to get the same result in other tools, too. I don't understand the purpose of the operation, however. Regarding the always @(posedge keyclk or posedge ssclk) block, my first comment wasn't exact. keyclk is an asynchronous reset, in so far it's legal. But you can't have expressions like j<=j+33'd100; in the asynchronous reset part, because you can't build a counter from latches. I fear, you're missing a clear concept of the overall design.