Forum Discussion
Altera_Forum
Honored Contributor
16 years agoProblem with a simple bi-direcional counter simulation
Hello this is my code module count_moda
# (parameter modulus = 100)
(
input clk, aclr_n, updown,
output reg q
);
initial q = 0;
always @(posedge clk, negedge aclr_n)
begin
...
Altera_Forum
Honored Contributor
16 years agoYou can't perform the overflow/underflow operation correctly without using the updown input, it seems so obvious...