And another open FPGA debug IP joins my rapidly growing suite. These are all por...

@azonenberg@ioc.exchange

And another open FPGA debug IP joins my rapidly growing suite.

These are all portable systemverilog and will run on anything, but the immediate motivation is making up for Efinix's rather lackluster debug tools.

The general concept is basically "CoreSight / ADIv5 for FPGAs". You have a generic transport (so far only UART is implemented) that provides read/write access to an internal APB bus with debug IPs hanging off it.

The debug bridge points to a ROM table that has a list of debug IPs with types and base addresses, then each debug block has a type-specific set of registers for interfacing to your RTL.

So far I have a GPIO block with 32 bidirectional IOs (my pre-existing APB GPIO just wrapped up with a scopehal driver) and a VIO with 8 inputs and 8 outputs of parameterizable width, up to 64 bits currently supported in software (limited by ngscopeclient's digital scalar data type being a uint64) and 256 in hardware.

No tcl, no automagic code generation, no vendor IPs or primitives. Just portable systemverilog.