05-28-2012 10:55 AM
I am writing a vhdl code, I need to run a counter, I have seen a code segment that increments a 3 bit counter like this
counter <= ext(ext(counter,32) + 1,abs(2-0)+1)
can we write it
counter<= counter+'1' ??
why the ( ext and abs) are used??