ZYNQ7 DACHE的重要操作

2021-07-23 15:41:19 字數 556 閱讀 2465

/* flush the srcbuffer before the dma transfer, in case the data cache

* is enabled

*/xil_dcacheflushrange((u32)txpacket, max_pkt_len);

//確保從cache裡面寫回到mm裡

/* invalidate the destbuffer before receiving the data, in case the

* data cache is enabled

*/xil_dcacheinvalidaterange((u32)rxpacket, max_pkt_len);

//此cache區域的資料作廢,再次讀數的話,直接從memory讀取。

其實就是牽扯memory和cache的更細問題:

將cache資料更新到memory,用xil_dcacheflushrange。

將memory的資料更新到cache(當然不是說立即更新,是在後續的訪問中需要的時候更新),用xil_dcacheinvalidaterange。

python比較重要的常見操作

定義乙個字串 a abcd 字串子串查詢 index1 a.find b index2 a.index b 統計字元在字串中出現的次數 count a.count b print count 字串子串替換 ret a.replace b 雙擊666 print ret 字串的分割 字串 列表 ret...

Evm7種重要指令的實現原理

evm7種重要指令的實現原理 evm的所有指令定義都在core vm jump table.go裡實現的,而每個指令對應的操作函式都是在core vm instructions.go裡實現的。如果乙個節點併發呼叫智慧型合約,那麼對memory的操作是否有執行緒安全問題。不會,因為每執行乙個交易,都會...

最重要的7個Drupal核心模板檔案

模板名原始位置 用途html.tpl.php modules system 列印html文件的結構。包括了標記中的內容,如 script和 styles,以及標記中的三個變數 代表所有區域 page top page top區域 page bottom page bottom區域 和 page 代表...