Forum Discussion
Altera_Forum
Honored Contributor
15 years ago> if (q == modulus-1) > q <= 8'd0;
this script should be if( updoun ) begin if( q == (modulus-1) ) q <= 8'h0; end else begin if( q == 8'h0 ) q <= (modulus-1) ; end I think this is obvious too. you haven't written reset logic for negative direction.