Design of AMBA AXI4-Lite For Effective ReadWrite Transactions With A Customized Memory
Design of AMBA AXI4-Lite For Effective ReadWrite Transactions With A Customized Memory
Sainath Chaithanya et al., International Journal on Emerging Technologies 11(1): 396-402(2020) 396
The Advanced high-performance bus dedicated to high- II. LITERATURE SURVEY
performance designs which carries numerous bus
master agents of high clock frequencies outfitted for The discourse will be carried out on the critical works
burst and split transfers for wider data (64/128 bits) bus and contributions made by various researchers, on
configurations. employment of on chip bus protocols as an interface for
different applications continuing with, projecting the
present work i.e. Design and interface of AXI4-Lite
Master core with a customized Memory.
Survey on AMBA Buses: In System on Chip (SoC)
design various components of computer or other
electronic sub-systems are mounted onto a single chip.
The Notorious Advanced Microcontroller Bus
Architecture (AMBA) treated as an active agent in
dispensing constructive framework in SoC designs,
contributes for the digital glue that binds IP process
together adequately. Some of the previous works which
are relevant and carry basic information for the present
work is depicted.
In the Design of AHB Based Memory Controller having
main memories i.e., SRAM and ROM are treated as
AHB slaves in multi- master and multi- slave
communication model where the AMBA AHB is acting
as central multiplexer interconnector, in which master’s
drive out the address and control signals indicating the
type of transfer, arbiter takes care of granting bus to
master, a decoder for selecting appropriate signals from
the slave. In general master generates the data and
control signals but these cannot directly communicate
with any generic memory, hence data processed
through slave then through slave interface, a FIFO is
employed for data/control buffering for information to get
Fig. 2. AMBA system bus in SoC [17]. preserved. Further data is communicated through RAM
or ROM for read/write transactions.
Very popular AHB or ASB slaves are peripheral Bridge, The work also substantiates a memory controller
APB or any memory interfaces. However some low- responsible for all timings, commands, featured with a
bandwidth peripherals will rest on the APB side, A look ahead functionality where the arbitrator can notify
Bridge regularly engaged for connecting the low upcoming commands, ready for execution [5].
bandwidth designs with a high-performance system bus Scheming of AMBA ASB APB Bridge, A 32 bit AMBA
as shown in Fig. 2. Bridge provides an interface between the ASB and the
Fig. 3 below exhibits hypothetical SoC’s holding APB. The wait states are inserted for burst of read/write
functional blocks that are interconnected using a flavor transfers where the ASB must wait for the signals of
of an Advanced Microcontroller Bus Architecture APB ultimately latencies are created. The bridge is
(AMBA) [2], supporting single-cycle data transfers along meant to respond for transaction requests from the
with multiple masters for bus arbitration. currently enabled ASB master
The ASB transactions are converted into APB
transactions asynchronously as the APB peripherals do
not need a clock input that is the APB access is timed
with a strobe signal generated by the ASB to APB
bridge interface [6].
The modern SoC’s capes multi-core clusters,
sophisticated peripherals for which the present AHB
protocol supporting low complexity shared buses,
cannot keep up with the requirements of today's high
speed SoC, with certain more impediments in protocol
i.e., the AHB has only one outstanding transaction, no
full-duplex mode, single channel-shared bus which
directed to employee AXI bus. A comparison is drawn
with the advanced AXI bus more realistically, by
Fig. 3. Typical SoC [13]. determining how the five-channels in the bus operate
independently along with handshaking concept [7].
The recent period of AMBA - AXI, The Advanced Portraying the significance of AMBA AXI4 bus which is
Extensible interface a point to point interconnect offers best in terms of throughput, latency, high-
services for high bandwidth and low latencies, performances/frequencies systems is utilized with either
succeeding the constraints of a shared bus protocol in single or multiple channels, where the interconnect
terms of the number of agents. Improvement from AHB block encapsulates the arbiter, decoder, and
in offering multiple outstanding data transfers with multiplexers.
separate read and write paths of different bus widths,
pipe-lined burst data transfers [16].
Sainath Chaithanya et al., International Journal on Emerging Technologies 11(1): 396-402(2020) 397
The arbiter meant for monitoring the priority to AXI4-Lite specification includes a subset of AXI4 for
access/release the bus to one of the multiple masters communication with simple control registers whose Key
which initiates transactions simultaneously, by functionalities are
arbitration algorithm. The decoder decodes the address — All transactions are of burst length 1 [11]
and control, sent by master and passes the transaction — All data accesses use the full width of the data bus
to sit in one out of 16 slaves for simple and burst mode — AXI4-Lite supports a data bus width of 32/64-bit
read/write operations [8]. — All accesses are Non-modifiable, Non-bufferable
Current task: Due to the increased customer demands — Exclusive accesses are not supported [10]
design complexity of system on chip (SOC) increases — AXI4-Lite supports multiple outstanding transactions
day by day. Hence there is always a productivity gap [12], but a slave can restrict this by the appropriate use
and right protocol is chosen for the respective of the handshake signals
applications. To Improve interconnect performance, The current task “Design and interface of AXI4-Lite
Improve Quality of Service, Reduces wiring congestion Master core with a customized Memory” in which READ
migration is necessary from AXI4 to AXI4-Lite which operation of AXI4-Lite takes place from Slave to Master
allows the processor or masters to access the and the WRITE operation takes from Master to Slave
registers(small and mini peripherals) we prefer AXI4- i.e., a customized Memory file.
Lite. And also taking the aid of above references and The AXI4 [4] specifications and the bus stipulate an
having an eye, a scenario arises where the Master interface between a single AXI master and a single AXI
agent frequently want to access information that might slave, familiarly called an Interconnect block as shown
be in small for which it uses a simple registers like in Fig. 5, where IP cores exchange information.
cache to interact, an effective and proper bus interface Both AXI4 and AXI4-Lite interfaces wrap five distinct
have to be picked for satisfying the need. This had transaction channels in its architecture:
motivated the work “Design and interface of AXI4-Lite (i) Write Address Channel
Master core with a customized Memory” and been (ii) Write Data Channel
developed in Verilog HDL [15]. (iii) Write Response Channel
AXI4-Lite READ operation takes place from Slave to (iv) Read Address Channel
Master and the WRITE operation takes places from (v) Read Data Channel.
Master to Slave. Current task emphasizing design of
interface for AXI4-Lite Master core with a customized
Memory, the work is detailed in further sessions.
III. AMBA AXI4
The Fourth generation AMBA 4.0, released in 2010,
came up with two types of AXI4 interface which are
namely AXI4 memory map (AXI4 or AXI4-lite) and AXI4-
stream.
• AXI4— provides a burst of up to 256 data transfer
cycles with just a single address phase.
• AXI4-Lite— is a light-weight, uncomplicated, low-
throughput single-bit memory map transaction.
• AXI4-Stream— supports high-speed streaming data. It
eliminates the requirement for an address phase and
allows unlimited data burst size [18]. Fig. 5. Interconnect Architecture of AXI4-Lite.
AXI4
Interconnection As mentioned, the protocol includes five different
channels that accommodate several sets of signals
AXI4 AXI4
shown in Table 1 for facilitating the data transfers
Stream Memory map between the devices, the detailed description about the
transaction channels with its associated signals can be
AXI full found in reference [16].
AXI Lite
(Burst support)
Sainath Chaithanya et al., International Journal on Emerging Technologies 11(1): 396-402(2020) 398
IV. WORKING METHODOLOGY — If there is a valid address it Signals ARVALID will
high. The address from the Master remains stable until
AXI4-Lite Master creates instructions on the AXI4-Lite the RREADY signal is high.
bus. The important tasks or functions carried out by the
— Memory gives acknowledgment to Master by
master are as follows: asserting ARREADY, indicating that it accepts the
— During write operation initially Master will send address, followed by placing the data on a data bus.
AWVALID Signal with logic high indicating that there is
write transaction ready. It sends the particular address
by using AWADDR signal to a customized Memory (16 -
32’bit registers) to where it wants to write the data, the
address from the Master remains stable until the
AWREADY is high. The number of transfers in a burst is
given by the AWLEN signal. The AWSIZE highlights the
size of each transaction, 32 bits, which has its own ID
that will be sent through the AWID to the slave.
— Slave memory gives acknowledgment to Master by
asserting AWREADY indicating that it accepts the
address.
— The Master sends the data to a particular address in
Memory using a data bus through the write data
channel.
—When valid data is present in data bus then the
WVALID signal goes high.
—WREADY signal goes high indicating that memory
accepts the data. Fig. 7. AXI4-Lite architecture during read operation.
—If the transaction is last in a burst then it is defined by When valid data present in data bus then RVALID
WLAST signal. In AXI4-Lite it has one data transfer Signal goes high indicating that master accepts the data
transaction per burst, and reads the data which is present in the data bus
—In the response channel, there will be two signals
BVALID and BREADY. BVALID signal will be high as a V. RESULT ANALYSIS
token for successful completion of data received during The entire design is simulated by ISim Simulator. The
a write operation. The BREADY signal will be high when conversion of RTL to Netlist synthesis is carried by
Master wants to accept valid signal which indicates the Xilinx ISE 14.4 and is represented in the following Figs.
acknowledgment from the Master to the Customized 8, 9, 10 and 11.
slave Memory.
Sainath Chaithanya et al., International Journal on Emerging Technologies 11(1): 396-402(2020) 399
Fig. 9. Internal schematic of master.
Sainath Chaithanya et al., International Journal on Emerging Technologies 11(1): 396-402(2020) 400
VI. DISCUSSION ON SIMULATION RESULTS During READ Operation:
— In READ Operation Master will send a particular
During READ Operation: address location from where it would like to read the
— During WRITE Operation Master sends a particular
data i.e., ‘d13. Whenever an address is present in the
address (in this case it is decimal 13) to a slave data read address channel then ARVALID Signal will be high.
file. If the address is present in the write address — The address from the Master remains stable until the
channel then AWVALID Signal will be high. RREADY is high. Memory gives acknowledgment to
— Slave data file/Memory acknowledges to Master by Master by asserting ARREADY indicating that it accepts
asserting AWREADY indicating that it accepts the the address.
address. The address from the Master remains stable — The Memory will receive that Address and puts the
until the AWREADY is high. data i.e., 32‘d26 on the data bus. When valid data is
— Then Master will send the data to a memory file using
present in the data bus then RVALID signal goes high.
a data bus. When valid data is present in data bus then — When the RREADY signal is high, it allows the
the WVALID signal goes high. Master to accept the data (whose timing diagrams are
— When Memory is ready to accept the information it as shown in Fig. 15) which reads from memory file
gives WREADY high then Memory will receive that data shown in Fig. 16.
i.e., 32’d26 present in the data bus. At that particular
address, the data present in Memory can be written
newly or can be overwritten. Figs. 12, 13 are empty
memory file, written memory file respectively and Fig.
14 depicts the simulated timing diagram during the write
operation
How to cite this article: Sainath Chaithanya, A., Sulthana, Sameera, Yamuna, B. and Haritha, Ch (2020). Design of
AMBA AXI4-Lite for Effective Read/Write Transactions with a Customized Memory. International Journal on Emerging
Technologies, 11(1): 396–402.
Sainath Chaithanya et al., International Journal on Emerging Technologies 11(1): 396-402(2020) 402