Copyright | (c) David Cox 2021 |
---|---|
License | BSD 3-Clause |
Maintainer | standardsemiconductor@gmail.com |
Safe Haskell | None |
Language | Haskell2010 |
RGB hard IP primitive from Lattice Ice Technology Library https://github.com/standardsemiconductor/VELDT-info/blob/master/SBTICETechnologyLibrary201708.pdf
Documentation
:: String | currentMode - Parameter values: "0b0" = Full Current Mode (Default), "0b1" = Half Current Mode. |
-> String | rgb0Current |
-> String | rgb1Current |
-> String | rgb2Current |
-> Signal dom Bit | curren - enable the mixed signal control block to supply reference current to the IR drivers. When it is not enabled (CURREN=0), no current is supplied, and the IR drivers are powered down. Enabling the mixed signal control block takes 100us to reach a stable reference current value. |
-> Signal dom Bit | rgbleden - enable the SB_RGB_DRV primitive. Active High. |
-> Signal dom Bit | rgb0Pwm - input data to drive RGB0 LED pin. This input is usually driven from the SB_LEDD_IP. |
-> Signal dom Bit | rgb1Pwm - input data to drive RGB1 LED pin. This input is usually driven from the SB_LEDD_IP. |
-> Signal dom Bit | rgb2Pwm - input data to drive RGB2 LED pin. This input is usually driven from teh SB_LEDD_IP. |
-> Signal dom (Bit, Bit, Bit) | (RGB0 LED output, RGB1 LED output, RGB2 LED output) |
SB_RGBA_DRV primitive is the RGB LED drive module which contains 3 dedicated open drain I/O pins for RGB LED outputs. Each of the RGB LED output is bonded out together with an SB_IO_OD primitive to the package pin. User can either use SB_RGB_DRV primitive or the SB_IO_OD primitive to drive the package pin, but not both.
The primitive allows configuration of each of the 3 RGB LED outputs individually. When the RGBx_CURRENT parameter of RGBx output is set to "0b000000", then SB_IO_OD can be used to drive the package pin. "0b000001" = 4mA for Full Mode; 2mA for Half Mode. "0b000011" = 8mA for Full Mode; 4mA for Half Mode. "0b000111" = 12mA for Full Mode; 6mA for Half Mode. "0b001111" = 16mA for Full Mode; 8mA for Half Mode. "0b011111" = 20mA for Full Mode; 10mA for Half Mode. "0b111111" = 24mA for Full Mode; 12mA for Half Mode.