Re: [myhdl-list] myhdl with cython?
Brought to you by:
jandecaluwe
From: David B. <da...@be...> - 2016-01-26 14:55:41
|
Just checked and it seems that it improves performance by roughly 8 times! That is indeed massive and I think I'm around the times I get with modelsim. belohrad@beesknees:~/git/didt/MyHDL/FIR$ time pypy ./FIR_tb.py Working Loaded 891 coefficients Done real 0m19.081s user 0m16.208s sys 0m0.640s belohrad@beesknees:~/git/didt/MyHDL/FIR$ time python ./FIR_tb.py Working Loaded 891 coefficients Done real 2m21.629s user 2m17.020s sys 0m1.476s belohrad@beesknees:~/git/didt/MyHDL/FIR$ .d. Christopher Felton <chr...@gm...> writes: > On 1/26/2016 2:13 AM, David Belohrad wrote: >> i've been fiddling with myhdl for about a week or so. I've tried to >> do some real stuff I do at work using myhdl. As a part of the project >> involves FIR filtering, I have used the example found on Christopher >> Felton's page (https://bitbucket.org/cfelton/examples) and hacked >> away m_firfilt entity using my own coefficients. Now, my filter has >> 891 taps and I've tried to simulate using a testbench how it reacts >> on unit-amplitude (it is a bandpass) input signal. >> >> It works great, at the same time it takes 'ages'. Simulation of such >> filter with roughly 5000 clock cycles takes almost 2 minutes. 4 times >> longer than I do with modelsim (from mentor). > > If you haven't seen this page it has some useful information: > http://www.myhdl.org/docs/performance.html > > >> >> So I wanted to check, whether it is feasible to use cython for these >> things. Following >> http://docs.cython.org/src/tutorial/cython_tutorial.html I hae >> created the setup and compiled in-the module using build_ext >> --inplace. >> > > I have not tried cython but I won't be surprised that > it would fail. It seems reasonable that you could > maybe compile only the function > > As far as the error posted, it seems the cython changed > the function somehow but that is just a guess. > > Regards, > Chris > > > ------------------------------------------------------------------------------ > Site24x7 APM Insight: Get Deep Visibility into Application Performance > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > Monitor end-to-end web transactions and take corrective actions now > Troubleshoot faster and improve end-user experience. Signup Now! > http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 > _______________________________________________ > myhdl-list mailing list > myh...@li... > https://lists.sourceforge.net/lists/listinfo/myhdl-list |