sordfish / project-clematis

Ideas and test code for Engine control on an FPGA
0 stars 0 forks source link

Collecting reference and learning material #3

Open sordfish opened 4 years ago

sordfish commented 4 years ago

I'd like to get a list together of all the current documentation, guides and example code to learn the basics of FPGAs and how they compare to developing on something like an Arduino.

sordfish commented 4 years ago

https://github.com/trabucayre/litexOnColorlightLab004: basic example of litex on colorLight 5A-75B

sordfish commented 4 years ago

https://github.com/litex-hub/fpga_101 covers some fpga basics and an intro to building a soc.

I think it would be good to expand on the workshops above but to adapt them for ecp5 hardware.

sordfish commented 4 years ago

https://github.com/TomKeddie/prj-colorlight-fpga/wiki is a big collection of links for ColorLight 5A-75B and 5A-75E hardware

sordfish commented 3 years ago

https://gist.github.com/GuzTech/6739255f45bdc8394df5db4c7b4a272f

Gist contains working sdram code for 5A-75B

sordfish commented 3 years ago

https://github.com/litex-hub/litex-boards/commit/dcc65b347df4c3e3334fce2a6723a793f60a69a6

picorv32 with gigabit ethernet. Litex ethernet has udp built in so it can do the full gigabit speed minus protocols

sordfish commented 3 years ago

https://github.com/enjoy-digital/litex/blob/master/litex/soc/cores/cpu/minerva/core.py#L91

How to use verilog code in litex

This could be helpful when writing the soc modules if migen isn't enough and nmigen or another language is a better fit?

sordfish commented 3 years ago

More litex examples https://github.com/icebreaker-fpga/icebreaker-litex-examples

sordfish commented 3 years ago

Nmigen examples from icebreaker

https://github.com/icebreaker-fpga/icebreaker-nmigen-examples

sordfish commented 3 years ago

Esden from 1bitsquared (Icebreaker developer) runs some live streams on twitch and YouTube

https://youtube.com/c/PiotrEsdenTempski/videos

He mentioned not using Litex to reduce complexity and also using nmigen soc to run riscv as litex is still migen based.

sordfish commented 3 years ago

I had a quick Google to see if there were any other similar projects about for inspiration or as a replacement for my efforts as I'm impatient and have too many cars waiting for cost effective GDI engine control 🤣

Nothing else was found but I did spot this article from 2012. It describes how FPGAs would compare to a multi-core microcontroller and on the whole it validates all my current thinking in terms of performance and steps to avoid peripheral interrupts for RTOS and instead data is shared to separate state machines or other independent autonomous hdl (adc, pwm, can, comms)

https://www.eetimes.com/fpga-based-automotive-ecu-design-addresses-autosar-and-iso-26262-standards/