Avalon Interface contents
1. Gii thiu v Avalon Bus
2. Clock Interfaces
3. Avalon Memory-Mapped Interfaces
4. Interrupt Interfaces
5. Avalon Memory-Mapped Tristate Interfaces
6. Avalon Streaming Interfaces
7. Conduit Interfaces
I. Gii thiu v Avalon Bus
Avalon Bus là mt h thng giao tiếp đơn gin được Altera
thiết kế nhm giúp người hc v FPGA d dàng kết ni các thiết b
ca h thng được thiết kế trong FPGA. Avalon là môt thành phn
không th thiếu trong các h thng tích hp trên mt chip kh trình (
SOPC)
Avalon được thiết kế để có th hot động 2 môi trường là môi
trường truyn tc độ cao, và môi trường ng dng ánh x b nh
tc độ thp hơn.
Tùy vào mi ng dng, mi thành phn khác nhau mà bn thiết
kế trong FPGA mà bn phi chn mi interface khác nhau ca
Avalon. Có 6 interface như sau:
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 pincount 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
II. Clock Interfaces
Dung để định nghĩa ( to ra) tín hiu clock và reset c dng cho
các thiết b. mt thiết b thường có th có mt hay nhiu clock input,
nhưng mà hiếm khi có clock output. PLL là đin hình ca mt thiết b
va có clock input và output.
clock output ch bao gm các tind hiu clock ch không bao
gm tín hiu reset.
III. Avalon Memory-Mapped Interfaces (Avalon-MM)
Avalon-MM interfaces được s dng trong read/write d liu
ca các thành phn master và slave trong h thng ánh x b nh.
Nhng thành phn này bao gm b vi x li, microprocessors,
memories, UARTs, timers, và có master and slave interfaces kết ni
bi mt h thng. Avalon-MM có thế mô t mt cách đa dng các
thiết b khác nhau, t SRAM có chu kì read/write đơn gin đến phc
tp.
Hình sau đây mô t mt h thng Avalon-MM
a. Slave
Avalon-MM Slave Port Signals
Signal Type Width Dir Description
Read 1 In Đk đọc d liu
Write 1 In Đk ghi d liu
Address 1-32 In Địa ch offset
Readdata 8,16,32,
64,
128,256,
Out D liu đáp ng quá trình đọc
512
1024
Writedata 8,16,32,
64,
128,256,
512
1024
In D liu đáp ng quá trình ghi
Byteenable 1,2,4,8,
16, 32,
64, 128
In Xác định byte cn truyn hay
đọc trong quá trình ghi hay đọc
d liu
1111 write full 32 bits
0011 writes lower 2
bytes
1100 writes upper 2
bytes
0001 writes byte 0 only
0010 write byte 1 only
0100 write byte 2 only
1000 write byte 3 only
Begintransfer 1 In S dng trong quá trình truyn
dư liu bt chp lnh
waitraquest và vá tín hiu khác
Waitrequest 1 Out Biu th khi slave không th đáp
ng tác v được yêu cu
readdatavalid 1 out Xác định quá trình đọc bt đầu
Burstcount 1-32 In Đếm s lân truyn khi
beginbursttransfer 1 In Bt đầu truyn 1 khi
readyfordata 1 Out Sn sang nhn
dataavailable 1 Out Sn sang đọc
resetrequest 1 Out Reset
Slave Timing
Avalon MM là mt giao th truyn đồng b nên tt c các thành phn
trong h thng đều phi đòng b theo h thng.
Slave Transfers
Đây là sơ đồ tín hiu truyn d liu s dng tin hiu điu khin waitquest
Đây là sơ đồ tín hiu ca quá trình truyn d liu ko s dng tín hiu
waitrequest mà s dng chu kì writeWaitTime = 2 and readWaitTime = 1.