Hi sanjana,
as u have solved it, u can just put the way u did to resolve the Exact problem, so that in future others will have some reference when they face the same
i have a question in counter.
in quartusii,the
reg [3:0] a;
a<=a+1 ;
will have a warning:give the 5bit value to the 4 bit variable.
how to cancel the warning? thank you.
I don't have that compiler, but I can make a guess. It may be warning you that a<=a+1 will overflow if "a" equals 15. You may be able to avoid the warning by using a 4-bit 1: a<=a+4'd1;