First u need to create a block which generates the required signal. Signals can be sin wave(which can be generated using lookup tables or Cordic method), ramp signal, or you can search the internet for the popular tones and their generation equation. The previous link shared by udayan92 is helpful.
Afterwards a proper testbench is needed to for testing. Do you have a board that has a built in DAC or audio codec to hear the signal?
If you have matlab, I think u can write an equation for the required signal and pass it to the speaker.