VHDL Generic Counter with Clocked Rise OutPut

Moderator (Company: Titel) #6301043
Rate this post
• ▲ useful
▼ not useful
Alexander S. wrote:
> design of Generic Counter with Clocked Rise OutPut.
All in all I see a very laborious way to generate a clock enable. Whats 
the advantage prior to a simple counter?

One word to this:
1
GENERIC (DivideRange  : integer);
2
:
3
signal ClockDivider, DividerFactor : integer range 0 to DivideRange;
4
:
5
begin
6
:
7
       DividerFactor <= DivideRange - 1;
8
:
9
       ClockDivider <= ClockDivider + 1 mod DividerFactor;
As "mod" implements a divider, this design will lead to extensive logic 
with some values for "DivideRange". Because only values in (2**x+1) will 
be easily synthesizable.
OP (Company: Home) #6301102
Rate this post
• ▲ useful
▼ not useful
Lothar M. wrote:
> As "mod" implements a divider, this design will lead to extensive logic
> with some values for "DivideRange". Because only values in (2**x+1) will


> be easily synthesizable.

-----------
https://www.ics.uci.edu/~jmoorkan/vhdlref/vhdl_golden_reference_guide.pdf

The
VHDL
Golden
Reference
Guide

Page 80 :

Operator

Synthesis

 The operators / mod ... ** are not synthesizable

 Regards Alex.

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [vhdl]VHDL-Code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.