可编程实验板EPM1270T144C5蜂鸣器音调频率选择

always@(tone)
 begin
    case(tone)
    3'd1 : time_end=10'd1911 ;//L1
    3'd2 : time_end=10'd1702 ;//L2
    3'd3 : time_end=10'd1517 ;//L3
    3'd4 : time_end=10'd1432 ;//L4
    3'd5 : time_end=10'd1276;//L5
    3'd6 : time_end=10'd1136;//L6
    3'd7 : time_end=10'd1012;//L7
    3'd1 : time_end=10'd955 ;//M1
    3'd2 : time_end=10'd851 ;//M2
    3'd3 : time_end=10'd758 ;//M3
    3'd4 : time_end=10'd716 ;//M4
    3'd5 : time_end=10'd638 ;//M5
    3'd6 : time_end=10'd568 ;//M6
    3'd7 : time_end=10'd506 ;//M7
    3'd1 : time_end=10'd478 ;//H1
    3'd2 : time_end=10'd426 ;//H2
    3'd3 : time_end=10'd379 ;//H3
    3'd4 : time_end=10'd368 ;//H4
    3'd5 : time_end=10'd319 ;//H5
    3'd6 : time_end=10'd284 ;//H6
    3'd7 : time_end=10'd253 ;//H7
        endcase
 end 
原文地址:https://www.cnblogs.com/RDJLM/p/12075661.html