mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2024-10-01 01:45:38 -04:00
1909833952
Signed-off-by: Joachim Strömbergson <joachim@assured.se>
43 lines
1.2 KiB
Verilog
43 lines
1.2 KiB
Verilog
//======================================================================
|
|
//
|
|
// SB_RGBA_DRV.v
|
|
// -------------
|
|
// Dummy version of the SB_RGBA_DRV hard macro in Lattice iCE40 UP
|
|
// devices. This is just to be able to build the testbench. The only
|
|
// functionality we need is to be able to set the LEDs.
|
|
//
|
|
//
|
|
// Author: Joachim Strombergson
|
|
// Copyright (C) 2023 - Tillitis AB
|
|
// SPDX-License-Identifier: GPL-2.0-only
|
|
//
|
|
//======================================================================
|
|
|
|
`default_nettype none
|
|
|
|
module SB_RGBA_DRV (
|
|
output wire RGB0,
|
|
output wire RGB1,
|
|
output wire RGB2,
|
|
input wire RGBLEDEN,
|
|
input wire RGB0PWM,
|
|
input wire RGB1PWM,
|
|
input wire RGB2PWM,
|
|
input wire CURREN
|
|
);
|
|
|
|
parameter CURRENT_MODE = 1;
|
|
parameter RGB0_CURRENT = 8'h0;
|
|
parameter RGB1_CURRENT = 8'h0;
|
|
parameter RGB2_CURRENT = 8'h0;
|
|
|
|
assign RGB0 = RGB0PWM;
|
|
assign RGB1 = RGB1PWM;
|
|
assign RGB2 = RGB2PWM;
|
|
|
|
endmodule // SB_RGBA_DRV
|
|
|
|
//======================================================================
|
|
// EOF SB_RGBA_DRV.v
|
|
//======================================================================
|