D
Denis Gleeson
Guest
Hello All
OK Im a bit confused.
the verilog code
always @(posedge CLK or posedge CLR)
begin
if (CLR)
Q <= 20'b0;
else
if (CE) // Is counter Enabled.
begin
Q<=Q+1;
end
end
produces a ripple counter? Yes, No?
When I look at my simulation results I see glitches in the count output
leading me to assume that I have implemented a ripple counter.
IS it possible to remove the glitches with a synchronous Binary counter?
If yes what is the verilog code?
Ive read about Gray counters but as Im using the counter to step through
SRAM addresses I dont want to loose storage locations in my SRAM just because
my counter doesnt count through all possible binary counts.
Thanks in advance for all suggestions.
Denis
OK Im a bit confused.
the verilog code
always @(posedge CLK or posedge CLR)
begin
if (CLR)
Q <= 20'b0;
else
if (CE) // Is counter Enabled.
begin
Q<=Q+1;
end
end
produces a ripple counter? Yes, No?
When I look at my simulation results I see glitches in the count output
leading me to assume that I have implemented a ripple counter.
IS it possible to remove the glitches with a synchronous Binary counter?
If yes what is the verilog code?
Ive read about Gray counters but as Im using the counter to step through
SRAM addresses I dont want to loose storage locations in my SRAM just because
my counter doesnt count through all possible binary counts.
Thanks in advance for all suggestions.
Denis