Hi,

2014-02-27 23:16 GMT+09:00  <[email protected]>:
> You might like to write your own VHPI module, allowing GHDL to
> talk to other OS things in C. Have a look at some examples at
> http://ygdes.com/GHDL/ and a similar project at
> http://tech.section5.ch/news/?p=124
> Then you can make you C code blocking or not, and design the FSM
> with all the expressive power of VHDL.

FYI, more off-topic.
ive not so noticed about co-sim so far, like GHDL's VHPIDIRECT.
i tried a bit about NVC's foreign attribute w/ tiny example, and it
looks working.

http://hastebin.com/katabeboki.vhdl

hiyuh@jabberwocky ~/git-repos/nvc
 $ NVC_LIBPATH=./lib/std:./lib/ieee:./lib/nvc NVC_CYG_LIB=./src
./src/nvc.exe -a test.vhd
hiyuh@jabberwocky ~/git-repos/nvc
 $ NVC_LIBPATH=./lib/std:./lib/ieee:./lib/nvc NVC_CYG_LIB=./src
./src/nvc.exe -e test
/usr/bin/opt -O2 -o /home/hiyuh/git-repos/nvc/work/_WORK.TEST.final.bc
/home/hiyuh/git-repos/nvc/work/_WORK.TEST.elab.bc
hiyuh@jabberwocky ~/git-repos/nvc
 $ NVC_LIBPATH=./lib/std:./lib/ieee:./lib/nvc NVC_CYG_LIB=./src
./src/nvc.exe -r test
** Note: 0ms+0: Report Note: inf
        Process :test:line_16
        File test.vhd, Line 22
** Note: 0ms+0: Report Note: 2.739632
        Process :test:line_16
        File test.vhd, Line 22
** Note: 0ms+0: Report Note: 2.019418
        Process :test:line_16
        File test.vhd, Line 22
** Note: 0ms+0: Report Note: 1.592315
        Process :test:line_16
        File test.vhd, Line 22
** Note: 0ms+0: Report Note: 1.288023
        Process :test:line_16
        File test.vhd, Line 22
** Note: 0ms+0: Report Note: 1.052949
        Process :test:line_16
        File test.vhd, Line 22
** Note: 0ms+0: Report Note: 0.863074
        Process :test:line_16
        File test.vhd, Line 22
** Note: 0ms+0: Report Note: 0.705476
        Process :test:line_16
        File test.vhd, Line 22
** Note: 0ms+0: Report Note: 0.572365
        Process :test:line_16
        File test.vhd, Line 22
** Note: 0ms+0: Report Note: 0.458655
        Process :test:line_16
        File test.vhd, Line 22
** Note: 0ms+0: Report Note: 0.360829
        Process :test:line_16
        File test.vhd, Line 22
** Note: 0ms+0: Report Note: 0.276341
        Process :test:line_16
        File test.vhd, Line 22
** Note: 0ms+0: Report Note: 0.203281
        Process :test:line_16
        File test.vhd, Line 22
** Note: 0ms+0: Report Note: 0.140175
        Process :test:line_16
        File test.vhd, Line 22
** Note: 0ms+0: Report Note: 0.085859
        Process :test:line_16
        File test.vhd, Line 22
** Note: 0ms+0: Report Note: 0.039391
        Process :test:line_16
        File test.vhd, Line 22

_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss

Reply via email to