J
Jürgen Böhm
Guest
Hi,
I need to program a VPI interface which allows to write
$put_c_xy (c, x, y)
in a Verilog File and get a character c written at position (x,y) on a
window W which opens automatically at simulator start and closes at
simulator end. I use Icarus Verilog under Linux.
The basic structure of such a program seems (after some reading) clear
to me, especially helpful were the pages
http://www.eda.org/verilog-ams/htmlpages/tc-docs/lrm/2.0/vpiFuncs.html
http://www.eda.org/verilog-ams/htmlpages/tc-docs/lrm/2.0/vpiObjs.html
and
http://vast.uccs.edu/vast/verilogvpi_files/icarus.html
together with the sample program there.
Especially on the last page something nearly identical to my intention
is done, but I would prefer to use a more common widget-framework than
their "highgui". My try was Qt, were I had to do something "forbidden",
namely, put the main QApplication into a secondary thread. This seemed
to work first, but soon let to lots of errors. Did someone manage to get
Qt functioning in a situation as described above? (Providing a window
for character IO, simulating a terminal window?) What about wxWidgets? I
understand that there are VPI wraparounds for non C/C++ languages, but
currently I don't understand how to make them work with Icarus Verilog,
so a solution that keeps in the C/C++ realm would be better for me.
Thanks in advance
Jürgen
--
Jürgen Böhm www.aviduratas.de
"At a time when so many scholars in the world are calculating, is it not
desirable that some, who can, dream ?" R. Thom
I need to program a VPI interface which allows to write
$put_c_xy (c, x, y)
in a Verilog File and get a character c written at position (x,y) on a
window W which opens automatically at simulator start and closes at
simulator end. I use Icarus Verilog under Linux.
The basic structure of such a program seems (after some reading) clear
to me, especially helpful were the pages
http://www.eda.org/verilog-ams/htmlpages/tc-docs/lrm/2.0/vpiFuncs.html
http://www.eda.org/verilog-ams/htmlpages/tc-docs/lrm/2.0/vpiObjs.html
and
http://vast.uccs.edu/vast/verilogvpi_files/icarus.html
together with the sample program there.
Especially on the last page something nearly identical to my intention
is done, but I would prefer to use a more common widget-framework than
their "highgui". My try was Qt, were I had to do something "forbidden",
namely, put the main QApplication into a secondary thread. This seemed
to work first, but soon let to lots of errors. Did someone manage to get
Qt functioning in a situation as described above? (Providing a window
for character IO, simulating a terminal window?) What about wxWidgets? I
understand that there are VPI wraparounds for non C/C++ languages, but
currently I don't understand how to make them work with Icarus Verilog,
so a solution that keeps in the C/C++ realm would be better for me.
Thanks in advance
Jürgen
--
Jürgen Böhm www.aviduratas.de
"At a time when so many scholars in the world are calculating, is it not
desirable that some, who can, dream ?" R. Thom