/* Description : free memory that used by waveform file, after that, waveform data cannot be used until init_waveform function has been called. This function should be called when unload module. Input : None Output : None Return : None  */
void free_waveform(void)
/* Description : free memory that used by waveform file, after that, waveform data cannot be used until init_waveform function has been called. This function should be called when unload module. Input : None Output : None Return : None  */
void free_waveform(void)
{
    if (g_waveform_file.p_wf_vaddr != NULL)   {
        vfree(g_waveform_file.p_wf_vaddr);
        g_waveform_file.p_wf_vaddr = NULL;
    }
    g_waveform_file.load_flag = 0;
    return;
}