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.

28 lines
564 B
Verilog

module beep_circuit(
input sys_clk ,
input sys_rst_n ,
input [1: 0] dev_id ,
input [3: 0] opcode ,
input [3: 0] data ,
output beep
);
wire pwm;
freq_select freq_select_inst(
.sys_clk (sys_clk),
.sys_rst_n (sys_rst_n),
.dev_id (dev_id),
.opcode (opcode),
.data (data),
.pwm (pwm)
);
pwm_beep pwm_beep_inst(
.sys_clk (sys_clk),
.sys_rst_n (sys_rst_n),
.pwm (pwm),
.beep (beep)
);
endmodule