Re: [myhdl-list] Starting with MyHDL and trying to do my Cordic Module
Brought to you by:
jandecaluwe
From: Christopher F. <chr...@gm...> - 2014-07-04 11:24:16
|
When you are using the "tuple of ints" they cannot be used directly in an expression - you can do the following: c_gain = gains[int(num_iteracao)] tmp_mul_gain_imag[:] = (c_gain * imag_reg) << 16 tmp_mul_gain_real[:] = (c_gain * tmp_real) << 16 You will have to do something similar with the angles as well. This will get you past the first set of errors, I didn't verify that the testbench still worked with the changes. This is an example of a simple FIR (sum of products) where the coefficients (h) tuple of ints needs to be separately referenced: https://github.com/cfelton/alt.hdl/blob/master/examples/ex4_mathsop/myhdl/sop1.py Regards, Chris On Thu, Jul 3, 2014 at 4:58 PM, André Prado <and...@gm...> wrote: > Hello everyone, > > I am trying to start with MyHDL! I have FPGA design experience with VHDL > in the old school style. > > I am trying to implement my Cordic module which works in VHDL (Converts > from REAL/IMAG to MAG/ANG) > > However I am getting this error when I try to convert to VHDL: > > KeyError: 'real_reg' and a long traceback list error > > The module is not 100% functional yet, It's the first time I am doing and > I confess I am struggling with this different paradigm, It's not VHDL and > it's not Matlab, it's somewhere in the middle hah. > > > This is my testbench: http://pastebin.com/zqRQxbGL > > This is my Cordic module at the moment: http://pastebin.com/tRU85uwe > > The testbench seems to be OK but I can't generate the VHDL, > > Thank you very much; > > > > > -- > Atenciosamente/Regards > André Castelan Prado > > > ------------------------------------------------------------------------------ > Open source business process management suite built on Java and Eclipse > Turn processes into business applications with Bonita BPM Community Edition > Quickly connect people, data, and systems into organized workflows > Winner of BOSSIE, CODIE, OW2 and Gartner awards > http://p.sf.net/sfu/Bonitasoft > _______________________________________________ > myhdl-list mailing list > myh...@li... > https://lists.sourceforge.net/lists/listinfo/myhdl-list > > |