qingcong
Newbie level 4
Hi all, I will try to explain my problem in a way that makes sense.
I'm trying to write a counter in verilog. There will be a non-periodic pulse that triggers the counter to reset to 0 and start counting again. This is all standard stuff I think. The part that's throwing me off is that when the non-periodic pulse comes in, I also need to write the counter value to an array. I want to write the value that it was on before it reset to 0. Any suggestions or code samples are welcome. Thanks.
I'm trying to write a counter in verilog. There will be a non-periodic pulse that triggers the counter to reset to 0 and start counting again. This is all standard stuff I think. The part that's throwing me off is that when the non-periodic pulse comes in, I also need to write the counter value to an array. I want to write the value that it was on before it reset to 0. Any suggestions or code samples are welcome. Thanks.