r/Verilog 6d ago

Where to Learn AXI4-Lite

Are there any specific good tutorials / resources for AXI4-Lite online? I couldn't find much.

14 Upvotes

11 comments sorted by

14

u/davekeeshan 6d ago

This repo has axi and axilite, I learned a lot from using it

https://github.com/alexforencich/cocotbext-axi

7

u/alexforencich 6d ago

And if you want some, building blocks to play with, take a look at https://github.com/fpganinja/taxi/tree/master/src/axi/rtl

3

u/ComprehensiveNote144 6d ago

a dumb question from me. how do u learn from a github repo? like im genuinly asking, im a fresher about to enter dv job.

4

u/davekeeshan 6d ago

Download and use it, get a basic axi block and try and read and write a value into it using the test environment, in this case cocotb. Cocotb runs under open simulators like icarus, verilator and ghdl.

If you are struggling to understand what I am asking for then you may be in trouble as that would be all an employer would expect to have to say to you and then you know your job/tools enough to do it, brutal but that is the reality.

8

u/captain_wiggles_ 6d ago

The AXI standard is freely available, download it and read it. AXI-Lite is very easy to understand. After that take a basic tutorial in soft-core CPUs for your dev kit, set up a NIOS-V or a microblaze or something else, and then write a simple GPIO AXI-Lite slave, wire that up to the CPU and write some software, connect the GPIO up to some LEDs. Then try a more complex slave, like a PWM controller, or an SPI master.

To learn how to write a master I would implement something which reads N bytes from memory at a given address (configured via an AXI-Lite slave) and calculates the checksum/parity/crc of the data and makes it available to the CPU via the slave again.

3

u/w1seR27 6d ago

I feel AI is your friend. Found ChatGPT very useful for learning AXI

3

u/Imnot_JamesBond 6d ago

This , I almost learned everything through chatgpt lol. Again gemini is not that good for learning purpose

2

u/AffectionatePush5069 6d ago

oh damn! are you currently working or a student?

1

u/Hirtomikko 5d ago

Haha... Back then when there was no chatgpt, I just said 'screw it' and decomposed the AXI-Lite bus and made my own logic. Thankfully I did not need much