Hello to all, I'm new here and I have some problems with the understanding of a piece of VHDL code and I will be very happy if someone could help me to understand it. I had found a tutorial on internet about how to create a VHDL PWM audio generator, and I don't understand this piece of code:
This is simply incrementing a counter from 0 to "sine _freq". When it reaches "sine_freq" it increments "lut_addr" and resets the counter and starts over again.
My guess is that it iw using "lut_addr" to index data in a lookup (sine) table.