You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
991 B
Coq

5 months ago
module ws2812_circuit(
input sys_clk ,
input sys_rst_n ,
input [3: 0] opcode ,
input [3: 0] data ,
input [1: 0] dev_id ,//
output dout
);
wire [4: 0] bit_num;
wire [6: 0] led_num;
wire [1: 0] frame ;
wire bit ;
ws2812_ctrl ws2812_ctrl_inst(
.sys_clk (sys_clk) ,//50MHz
.sys_rst_n (sys_rst_n) ,//沿
.bit (bit) ,//data_cfgbit
.opcode (opcode) ,
.data (data) ,
.dev_id (dev_id) ,//
.frame (frame) ,
.bit_num (bit_num) ,//bit
.led_num (led_num) ,//led
.dout (dout) //
);
data_cfg data_cfg_inst(
.bit_num (bit_num),
.led_num (led_num),
.frame (frame) ,
.bit (bit)
);
endmodule