On 6/7/2018 11:46 AM, mngr wrote:
> Hi everybody,
>
> I am trying to replicate the mesa drivers, but using a Lattice FPGA, since
> there is an open source toolchain for them.
> I want to do something like the 7i76, maybe 7i76E if managing the ethernet
> does not consume too much logic elements.
>
> I have seen mksocfpga, and I have searched for a vhd module that control
> the position and gives steps and direction to the motor.
> Is there a module like that?
Yes, see the qcounter*.vhd files:
https://github.com/machinekit/mksocfpga/tree/master/HW/hm2
> My idea for a first implementation is to use a Raspberry with an ico-Board
> on top of it, and connect them via SPI, what do you think about it?
I'd start with the VHDL source for one of the SPI connected Mesa
boards (like the 7i90) and try to get that to compile on the Lattice
parts. If you don't understand some of the HDL code (even if you know
VHDL, it can be kind of confusing the way it's instantiated), just ask
your questions here. There are a couple of folks here familiar with
the hm2 VHDL source.
--
Charles Steinkuehler
cha...@steinkuehler.net