Avalon-MM 阿窝龙妹妹应用笔记
Avalon Interface Special http://www.altera.com.cn/literature/manual/mnl_avalon_spec.pdf
Avalon總線是SOPC硬件系統的重要組成部分,了解龍妹妹總線的特點、信號以及傳輸模式等,是構建SOPC硬件系統、開發自定義外設IP的基礎。
Avalon接口規范定義了外設和Avalon開關互聯結構(Avalon Switch Fabric)之間的數據傳輸。
Avalon接口是一種開放標準,使用Avalon接口創建和發布定制外設不需要任何授權。
Avalon接口定義(片選,讀使能,寫使能,地址,數據)
(1)一組信號類型
(2)信號的行為
(3)信號支持的傳輸類型
?
一下是6種不同的接口類型:
■ Avalon Memory Mapped Interface (Avalon-MM)—an address-based read/write interface typical of master–slave connections.
■ Avalon Streaming Interface (Avalon-ST)—an interface that supports the unidirectional flow of data, including multiplexed streams, packets, and DSP data.
■ Avalon Memory Mapped Tristate Interface—an address-based read/write interface to support off-chip peripherals. Multiple peripherals can share data and address buses to reduce the pin count of an FPGA and the number of traces on the PCB.
■ Avalon Clock—an interface that drives or receives clock and reset signals to synchronize interfaces and provide reset connectivity.
■ Avalon Interrupt—an interface that allows components to signal events to other components.
■ Avalon Conduit—an interface that allows signals to be exported out at the top level of an SOPC Builder system where they can be connected to other modules of the design or FPGA pins.
?
?
Avalon端口分為 主端口 和 從端口()
(1)主端口:用于在Avalon總線上發起傳輸的一組信號
(2)從端口:用于響應傳輸請求的一組信號\
在傳輸期間,主端口的控制和數據信號通過Avalon Switch Fabric與從端口進行通信
Avalon Switch Frabic :片上互聯邏輯,將Avalon外設連接在一起,形成較大的系統。
Avalon Memory-Mapped Master(http://www.altera.com.cn/support/examples/nios2/exm-avalon-memory-slave.html#figure1)
Avalon Memory-Mapped Slave(http://www.altera.com.cn/support/examples/nios2/exm-avalon-memory-slave.html)
?
Clock input Signal Types
?
?
基本的信號量:
(1)clk : Avalon 接口同步時鐘
(2)reset_n : 外設復位信號
(3)chipselect : Avalon 從接口的片選信號
(4)address(1~32) : 從Avalon Switch Fabric到Avalon從接口的地址線??稍L問一個字,指定一個字的偏移量到從端口的地址空間。控制最寬位1個字(16bit,超出動態尋址)。address進行譯碼,配置寄存器
但是實際設計中碰到了
實際上,當address為靜態尋址的時候,Address至少是[1:0]的 4的倍數
?
(5)byteenable(0,2,4,8,16) : 允許特殊的字節段,高低字節片選等(長度超過8位時,byteenable有效)
(6)read : 從主端口讀請求信號
(7)readdata (32): 從主端口讀傳輸數據
(8)write : 來自主端口的寫請求
(9)writedata(32): 到Avalon Switch Fabric的寫傳輸數據
等待狀態信號,pepeline信號,突發信號,流控制信號,三態信號,其他信號:Avalon主從端口個不一樣,此處不具體講述,相見文檔
readdata,writedata,可以不用用一個或者兩個1~128(使用動態總線的時候必須8,16,,3,64,128)
?
Avalon 從端口傳輸
(1)從端口讀傳輸:
chipselect :
address :
read :
readdata :
byteenable :
一個周期:
(A)第一個周期開始于clk上升沿
(B)read和address信號有效
(C)從Avalon Switch Fabric 對address譯碼,并設置chipselect有效
(D)clk上升沿標志第一個且是唯一的一個等待周期結束。從端口可在clk上升沿捕獲address,read,chipselect
(E)從端口在第二個周期內返回有效數據
(F)從Avalon Switch Fabric 在clk上升沿捕獲readdata,讀傳輸到此結。下一個周期從此開始
?
?
(2)從端口寫傳輸:
chipselect :
address? :
write :
writedata :
byteenable : 為writedata大于1個字節時候,只寫指定字節提供機制(不使用所有字節段則始終被允許)
一個周期:
(A)寫傳輸開始于clk上升沿
(B)Avalon Switch Fabric 設置 writedata,address,byteenable,write有效
(C)Avalon Switch Favric對address譯碼,并向從端口設置chipselect
(D)從端口的下一個clk上升沿捕獲writedata,address,byteenable,write和chipselect,寫傳輸結束。下一個周期從這里開始
?
Focus on Avalon-MM Slave Transfers
這是不是說slave_writedata必須是8,16,32…位寬的??
?The minimum requirements are readdata for read for a read-only interface or writedata and write for a write-only interface.
等等……
?
?
Memory chip
?
Conduit
?
。。。。還是不懂,發現自己不懂得 越來越多
?
總結
以上是生活随笔為你收集整理的Avalon-MM 阿窝龙妹妹应用笔记的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 对于python中的self,cls,d
- 下一篇: 开源屁屁