Instant SoC Class Library
3.1
|
Pulse Width Modulation output. More...
Public Member Functions | |
FC_IO_PWM (int width, int pol_on=1) | |
void | Setup (U16 period, TimeUnits tu=TU_clk) |
void | SetOnOff (U16 on, U16 off, U32 channel) |
Pulse Width Modulation output.
Adds to interface:
if width = 1 then
<name> : out std_logic
if width > 1 then
<name> : out std_logic_vector(width-1 downto 0)
where <name> is c++ object name.
Any number of instances are allowed.
This example will give the following result: