Guest
Hi all,
I am trying to create a counter of say 10 bits, where only some of
these bits are used in counting. These bits will be indicated by a
second 10bit signal.
So for example if that 10-bit control signal is 0000110011 then the
count would be
0000000000
0000000001
0000000010
0000000011
0000010000
0000010001
0000010010
.
.
.
0000110011
My idea is a single bit ripple carry adder structure where multiplexers
are used to by-pass specific adders so that the carry is only fed to
the right ones. I am looking for a more elegant VHDL-style description.
I'd appreciate the help.
I am trying to create a counter of say 10 bits, where only some of
these bits are used in counting. These bits will be indicated by a
second 10bit signal.
So for example if that 10-bit control signal is 0000110011 then the
count would be
0000000000
0000000001
0000000010
0000000011
0000010000
0000010001
0000010010
.
.
.
0000110011
My idea is a single bit ripple carry adder structure where multiplexers
are used to by-pass specific adders so that the carry is only fed to
the right ones. I am looking for a more elegant VHDL-style description.
I'd appreciate the help.