2012年8月19日 星期日

Verilog 檔案處理

integer file_handle;                  //file_handle自取

file_handle=$fopen("file_name");//file_name自取

$fwrite=(file_handle,"%b\n ", dout);
         //%b or %h 看想使用者想儲存甚麼樣子的資料格式,而dout是使用者想要儲存的資料
$fclose(file_handle);

沒有留言:

張貼留言