You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wtf 6d5d5f1f21 latest a2node 2 years ago
..
a2wb.v latest a2node 2 years ago
arb.v latest a2node 2 years ago
bus_wb2.v latest a2node 2 years ago
cmd_a2l2.v latest a2node 2 years ago
cmd_wb.v latest a2node 2 years ago
defs.v latest a2node 2 years ago
readme.md latest a2node 2 years ago
sim_1000_4w.txt latest a2node 2 years ago
smp.v latest a2node 2 years ago
top.v latest a2node 2 years ago

readme.md

A2 Interfaces to WB

  • core interfaces

    • A2I/A2O A2L2 bus

    • Single (combined I/D) w/SMP extensions

    • Dual (separate I/D) WB buses w/SMP extensions

  • bus interfaces

    • single WB

    • dual WB

  • functions

    • queues one or more core commands

    • point of coherncy for larx/stcx, sync, tlbie, etc. for multicores below it (single/mulithread)

    • address compares necessary for ordering/coherency

    • optional mailbox interface for core-core peer and broadcast

    • arbitrates for WB bus(es)

    • gen responses for cores

Possible configurations

  • one core, WB: pass-through with SMP functions

  • one core, A2L2: bridge with SMP functions

  • multi-core: identical or mixed WB1/WB2/A2L2, queueing, arbitration, and SMP functions

syntax check

verilator --lint-only a2wb.v -Wno-LITENDIAN

sim build

verilator --cc --exe --trace -Wno-Litendian -Wno-fatal -I./src top.v tb.cpp
cd obj_dir;make -f Vtop.mk;cd ..
obj_dir/Vtop

synth build (Litex)

  • had to make some source changes for Vivado
rm obj_dir/*
# use sim top so tb.cpp is ok
verilator --cc --exe --trace -Wno-Litendian -Wno-fatal -I./litex/a2node/verilog -I./src top.v tb.cpp uart.cpp
cd obj_dir;make -f Vtop.mk;cd ..
obj_dir/Vtop

gtkwave wtf.vcd wtf.gtkw

vcd2fst wtf.vcd wtf.fst
gtkwave wtf.fst wtf.gtkw