de10-nano icon indicating copy to clipboard operation
de10-nano copied to clipboard

Avalon Simulation idea with cocotb

Open amstan opened this issue 3 years ago • 1 comments

I noticed that you didn't have much luck with Simulation/Verification beyond using low level verilator code.

I found using cocotb's AvalonMemory class seems to do the trick for emulating some kind of memory that your avalon master implemented in verilog will talk to. Cocotb can use verlator in the background, so in theory it shouldn't be too hard to switch.

amstan avatar Jan 13 '22 00:01 amstan

Thanks for sharing, I have not used cocotb before and will try and learn more about it.

The ideal way I feel is to use the Avalon BFM (Bus Functional Model) since that is maintained by Intel. Not sure if I'll ever get around to that though :).

zangman avatar Jan 14 '22 02:01 zangman