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.

32 lines
706 B
Verilog

module music_top(
input wire sys_clk ,
input wire sys_rst_n ,
output wire beep
);
wire pwm;
freq_select freq_select_inst(
.sys_clk (sys_clk),
.sys_rst_n (sys_rst_n),
.pwm (pwm)
);
pwm_beep pwm_beep_inst(
.sys_clk (sys_clk),
.sys_rst_n (sys_rst_n),
.pwm (pwm),
.beep (beep)
);
// defparam freq_select_inst.MAX = 100;//100 * 34 * 20 = 68000ns
// defparam freq_select_inst.DO = 80,
// freq_select_inst.RE = 60,
// freq_select_inst.MI = 50,
// freq_select_inst.FA = 40,
// freq_select_inst.SO = 30,
// freq_select_inst.LA = 20,
// freq_select_inst.XI = 10;
endmodule