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