Using internal libraries in VHDL need to look at actual contents of files in install directory, located at ./lscc/iCEcube2.2016.02/vhdl/sb_ice_syn_vital.vhd
. This contains the compiler prototypes.
might need to add:
library sb_ice40_components_syn;
use sb_ice40_components_syn.components.all;
in order to get things to work.
Also might need to declare components manually.
Verilog Library description:
(
SB_RGB_DRV RGB_DRIVER (ENABLE_LED),
.RGBLEDEN(RGB0),
.RGB0PWM(RGB1),
.RGB1PWM(RGB2),
.RGB2PWM(led_power_up),
.RGBPU(LED0),
.RGB0(LED1),
.RGB1(LED2)
.RGB2);
defparam RGB_DRIVER.RGB0_CURRENT = "0b111111";
defparam RGB_DRIVER.RGB1_CURRENT = "0b111111";
defparam RGB_DRIVER.RGB2_CURRENT = "0b111111";
VHDL component:
component SB_RGB_DRV is
generic (
: string := "0b000000";
RGB0_CURRENT : string := "0b000000";
RGB1_CURRENT : string := "0b000000");
RGB2_CURRENT port (RGBLEDEN, RGBPU, RGB0PWM, RGB1PWM, RGB2PWM: in std_logic;
, RGB1, RGB2: out std_logic);
RGB0end component;
Contributing, info