zangman / de10-nano

Absolute beginner's guide to the de10-nano
Apache License 2.0
195 stars 44 forks source link

Avalon Simulation idea with cocotb #9

Open amstan opened 2 years ago

amstan commented 2 years ago

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.

zangman commented 2 years ago

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 :).