Re: [myhdl-list] myhdl with cython?
Brought to you by:
jandecaluwe
From: Christopher F. <chr...@gm...> - 2016-01-26 13:13:40
|
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 |