Professional Documents
Culture Documents
module user_command_0100 input. save_ok = ok_code. clear ok_code. case save_ok. when 'BUTTON_EXIT'. leave program. when 'BUTTON_1'. output = 'Button 1'(001). when 'BUTTON_2'. output = 'Button 2'(002). when 'BUTTON_3'. output = 'Button 3'(003). when 'BUTTON_4'. output = 'Button 4'(004). when others. output = save_ok. endcase. endmodule.