PoC.io.PulseWidthModulation

This module generates a pulse width modulated signal, that can be configured in frequency (PWM_FREQ) and modulation granularity (PWM_RESOLUTION).

Entity Declaration:

 1  generic (
 2    CLOCK_FREQ                : FREQ                  := 100 MHz;
 3    PWM_FREQ                  : FREQ                  := 1 kHz;
 4    PWM_RESOLUTION            : positive              := 8
 5  );
 6  port (
 7    Clock       : in  std_logic;
 8    Reset       : in  std_logic;
 9    PWMIn       : in  std_logic_vector(PWM_RESOLUTION - 1 downto 0);
10    PWMOut      : out std_logic
11  );
12end entity;