Thread: [myhdl-list] VHDL cosimulation
Brought to you by:
jandecaluwe
From: Christopher F. <chr...@gm...> - 2012-09-25 20:15:55
|
> On 9/25/2012 3:02 PM, David Blubaugh wrote: >> Is there a way to call VHDL within a MyHDL script file?? >> >> I want to simulate a preexisting VHDL file within MyHDL !!! >> >> David >> Currently cosimulation with existing VHDL is not supported. But it is possible with a VHDL simulator that supports VPI/VHPI. BOMK modelsim and active-hdl support VHPI. But there hasn't been much effort to test and verify the interfaces. Here are some notes on the GHDL-VHPI interface, http://www.myhdl.org/doku.php/dev:vhdl_cosim. It has been awhile since we last check the GHDL VHPI status. Regards, Chris |
From: Christopher F. <chr...@gm...> - 2012-09-25 20:20:09
|
On 9/25/2012 3:15 PM, Christopher Felton wrote: >>> On 9/25/2012 3:02 PM, David Blubaugh wrote: >>>> Is there a way to call VHDL within a MyHDL script file?? >>>> >>>> I want to simulate a preexisting VHDL file within MyHDL !!! >>>> >>>> David >>>> >> >> Currently cosimulation with existing VHDL is not supported. But it is >> possible with a VHDL simulator that supports VPI/VHPI. BOMK modelsim >> and active-hdl support VHPI. But there hasn't been much effort to test >> and verify the interfaces. >> >> Here are some notes on the GHDL-VHPI interface, >> http://www.myhdl.org/doku.php/dev:vhdl_cosim. It has been awhile since >> we last check the GHDL VHPI status. >> >> Regards, >> Chris >> > > The simulator is MODELSIM / QUESTA which is embedded in Actel Libero !!! > > David There would be some legwork that would have to be done but it *might* be possible. Would you be able/willing to try and put together the VPI/VHPI interface together for modelsim? .chris |
From: David B. <dav...@ya...> - 2012-09-25 20:22:06
|
Sure Whatever is required for mission success !!! david --- On Tue, 9/25/12, Christopher Felton <chr...@gm...> wrote: From: Christopher Felton <chr...@gm...> Subject: Re: [myhdl-list] VHDL cosimulation To: myh...@li... Date: Tuesday, September 25, 2012, 4:19 PM On 9/25/2012 3:15 PM, Christopher Felton wrote: >>> On 9/25/2012 3:02 PM, David Blubaugh wrote: >>>> Is there a way to call VHDL within a MyHDL script file?? >>>> >>>> I want to simulate a preexisting VHDL file within MyHDL !!! >>>> >>>> David >>>> >> >> Currently cosimulation with existing VHDL is not supported. But it is >> possible with a VHDL simulator that supports VPI/VHPI. BOMK modelsim >> and active-hdl support VHPI. But there hasn't been much effort to test >> and verify the interfaces. >> >> Here are some notes on the GHDL-VHPI interface, >> http://www.myhdl.org/doku.php/dev:vhdl_cosim. It has been awhile since >> we last check the GHDL VHPI status. >> >> Regards, >> Chris >> > > The simulator is MODELSIM / QUESTA which is embedded in Actel Libero !!! > > David There would be some legwork that would have to be done but it *might* be possible. Would you be able/willing to try and put together the VPI/VHPI interface together for modelsim? .chris ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ myhdl-list mailing list myh...@li... https://lists.sourceforge.net/lists/listinfo/myhdl-list |
From: Christopher F. <chr...@gm...> - 2012-09-26 22:31:53
|
On 9/25/2012 3:21 PM, David Blubaugh wrote: > Sure > > Whatever is required for mission success !!! > > david > > This task will be involved. After a little digging it doesn't look like Modelsim (mti) supports VHPI. VHPI is the VHDL equivalent to Verilog's VPI. VHPI would be the easiest to develop VHDL cosimulation support. Modelsim has, what they call, FLI [1]. It should be possible to create a FLI dynamic library which can be the glue between MyHDL and the mti VHDL simulator. [1] http://homepages.cae.wisc.edu/~ece554/new_website/ToolDoc/Modelsim_docs/docs/pdf/fli.pdf |
From: David B. <dav...@ya...> - 2012-09-26 22:47:23
|
OK Is that where you want me to start ?? David --- On Wed, 9/26/12, Christopher Felton <chr...@gm...> wrote: From: Christopher Felton <chr...@gm...> Subject: Re: [myhdl-list] VHDL cosimulation To: myh...@li... Date: Wednesday, September 26, 2012, 6:31 PM On 9/25/2012 3:21 PM, David Blubaugh wrote: > Sure > > Whatever is required for mission success !!! > > david > > This task will be involved. After a little digging it doesn't look like Modelsim (mti) supports VHPI. VHPI is the VHDL equivalent to Verilog's VPI. VHPI would be the easiest to develop VHDL cosimulation support. Modelsim has, what they call, FLI [1]. It should be possible to create a FLI dynamic library which can be the glue between MyHDL and the mti VHDL simulator. [1] http://homepages.cae.wisc.edu/~ece554/new_website/ToolDoc/Modelsim_docs/docs/pdf/fli.pdf ------------------------------------------------------------------------------ How fast is your code? 3 out of 4 devs don\\\'t know how their code performs in production. Find out how slow your code is with AppDynamics Lite. http://ad.doubleclick.net/clk;262219672;13503038;z? http://info.appdynamics.com/FreeJavaPerformanceDownload.html _______________________________________________ myhdl-list mailing list myh...@li... https://lists.sourceforge.net/lists/listinfo/myhdl-list |
From: Christopher F. <chr...@gm...> - 2012-09-27 12:20:51
|
>> This task will be involved. After a little digging it doesn't look like >> Modelsim (mti) supports VHPI. VHPI is the VHDL equivalent to Verilog's >> VPI. VHPI would be the easiest to develop VHDL cosimulation support. >> Modelsim has, what they call, FLI [1]. It should be possible to create >> a FLI dynamic library which can be the glue between MyHDL and the mti >> VHDL simulator. > > [1] > http://homepages.cae.wisc.edu/~ece554/new_website/ToolDoc/Modelsim_docs/docs/pdf/fli.pdf > > Is that where you want me to start ?? > > David > Yes, this would be the place to start. The current cosimulation setup is only supported on a "posix" system. BOMK, how it works is that the Python process opens a pipe to the simulator (mti) process. Following this same architecture a similar mti FLI interface can be generated. Looking at one of the current VPI examples (myhdl/cosimulation/modelsim/myhdl_vpi.c) is a good place to start and try to see if it can be mapped to the ModelSim VHDL FLI interface. 1. Review an existing VPI example 2. Review Modelsim FLI 3. Determine if FLI can be implemented similar to existing VPI Regards, Chris |