make sure timeout doesn't trigger spuriously on reset
This commit is contained in:
		| @@ -25,7 +25,7 @@ class Timer(initCount: Int) extends Module { | |||||||
|     countdown := countdown - UInt(1) |     countdown := countdown - UInt(1) | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   io.timeout := countdown === UInt(0) |   io.timeout := countdown === UInt(0) && active | ||||||
| } | } | ||||||
|  |  | ||||||
| object Timer { | object Timer { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user