go_vpi
This is a quick example on how to build & run VPI modules (with GHDL) using Golang programming language.
Info
You can generate the .vpi
module using go build -buildmode c-shared -o app.vpi go_vpi.go
and then run the app.vpi
however you like. In this repository I’m using GHDL
.
Requirements
Test
Either run compile.sh
or run every command individually.
[roby@roby-thonkpad go_vpi] $ ./compile.sh
loading VPI module 'app.vpi'
hi from go!
VPI module loaded!
TODO
- Example on how to run functions from the
vpi_user.h
interface.