https://github.com/fjullien/jtag_vpi/blob/master/jtag_vpi.h

After a chat with @skristiansson on irc, I dropped this patch and I'll include part of in in https://github.com/openrisc/orpsoc-cores/tree/master/cores/verilator_tb_utils