timvideos / HDMI2USB-litex-firmware

A version of the HDMI2USB firmware based around LiteX tools produced by @Enjoy-Digital (based on misoc+migen created by @M-Labs)
https://hdmi2usb.tv
BSD 2-Clause "Simplified" License
145 stars 71 forks source link

Replace VHDL jpeg encoder with Verilog version #47

Open mithro opened 9 years ago

mithro commented 9 years ago

Replace the jpeg encoder at https://github.com/timvideos/HDMI2USB-misoc-firmware/tree/master/hdl/encoder/vhdl with cfelton's Verilog version at https://github.com/cfelton/test_jpeg

If https://github.com/timvideos/HDMI2USB-misoc-firmware/issues/46 is also completed then the firmware is completely verilog.

enjoy-digital commented 9 years ago

I tried to use verilog version of the encoder and had issue at synthesis.It should not be that hard to fix, but that has to be fixed.

Also, some parts of the code in the original version are too complicated and not optimized. I've done optimization on the code that have to be applied to the verilog version if we integrate it.

BUF_FIFO should also be refactored to reduce block ram usage. It's not mandatory to store 16 entires lines when changing the order the accesses to the DRAM are done. We can only store 2*16 DRAM bursts.

I'm wondering if the best solution wouldn't be to rewrite the encoder with migen.

mithro commented 9 years ago

Rewriting it in migen would be definitely another option.