Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions firmware/firmware-makerpnpcontrolcore/fpga/pins.pcf
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,7 @@ set_io ENCODER_Y[0] F5
set_io ENCODER_Z[2] E2
set_io ENCODER_Z[1] R6
set_io ENCODER_Z[0] F4

### WS2812 outputs
set_io RGB_PORTS M11
set_io RGB_UP_CAM D3
52 changes: 52 additions & 0 deletions firmware/firmware-makerpnpcontrolcore/fpga/src/main/core_top.v
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ module core_top (
output wire FPGA_ACT, // LED 2

output wire BUZZER, // Buzzer
output wire RGB_PORTS,
output wire RGB_UP_CAM,

output wire [15:0] LA_IO,

Expand Down Expand Up @@ -68,6 +70,16 @@ module core_top (
wire [31:0] io_dout;
wire io_we;

wire [5:0] ws0_addr;
wire [31:0] ws0_din;
wire [31:0] ws0_dout;
wire ws0_we;

wire [5:0] ws1_addr;
wire [31:0] ws1_din;
wire [31:0] ws1_dout;
wire ws1_we;

wire [5:0] buzzer_addr;
wire [31:0] buzzer_din;
wire [31:0] buzzer_dout;
Expand Down Expand Up @@ -191,6 +203,36 @@ module core_top (
.debug(encoder_debug)
);

// ----------------------
// WS2812 - on-board LEDs
// ----------------------
ws2812 ws2812_0_inst (
.sys_clk(clk_100),
.reset(reset),

.bus_we(ws0_we),
.bus_addr(ws0_addr),
.bus_din(ws0_din),
.bus_dout(ws0_dout),

.ws_out(RGB_PORTS)
);

// ----------------------
// WS2812 - Up-camera / Head / Work LEDs
// ----------------------
ws2812 ws2812_1_inst (
.sys_clk(clk_100),
.reset(reset),

.bus_we(ws1_we),
.bus_addr(ws1_addr),
.bus_din(ws1_din),
.bus_dout(ws1_dout),

.ws_out(RGB_UP_CAM)
);

// ----------------------
// Instantiate Central Address Decoder
// ----------------------
Expand Down Expand Up @@ -219,6 +261,16 @@ module core_top (
.io_din(io_din),
.io_dout(io_dout),

.ws0_we(ws0_we),
.ws0_addr(ws0_addr),
.ws0_din(ws0_din),
.ws0_dout(ws0_dout),

.ws1_we(ws1_we),
.ws1_addr(ws1_addr),
.ws1_din(ws1_din),
.ws1_dout(ws1_dout),

.buzzer_we(buzzer_we),
.buzzer_addr(buzzer_addr),
.buzzer_din(buzzer_din),
Expand Down
Loading
Loading