sensille / litehm2

LinuxCNC FPGA board port to LiteX
25 stars 7 forks source link

colorlight #7

Open farex opened 1 year ago

farex commented 1 year ago

Hi, I'm getting the following error when trying to compile the firmware for the 5a75b board ModuleNotFoundError: No module named 'litex.build.vhd2v_converter' there was also an error related to tx_write_only parameter which i fixed Litex is installed and tested, can you please help me

sensille commented 1 year ago

The 5a75 branch is not yet ready. I managed to build an image for my 5a75e, but haven't tested it beyond ping and readhmid yet. But I can provide the missing pieces in litex so you can compile and test it if you're interested. Might take me a few days.

farex commented 12 months ago

Yes sure, I have two 5a75b board to test

sensille commented 12 months ago

Hi, I'm getting the following error when trying to compile the firmware for the 5a75b board ModuleNotFoundError: No module named 'litex.build.vhd2v_converter' there was also an error related to tx_write_only parameter which i fixed Litex is installed and tested, can you please help me

The only patches I have to litex that I'm aware of are in liteeth and litex. I use the cdc_buffered branch from my fork: https://github.com/sensille/liteeth/tree/cdc_buffered and in litex https://github.com/sensille/litex/tree/cdc_buffered. Not sure about the error you get, maybe it is gone when you use litex from my branch. I haven't updated litex in a while. In any case to build it you need a relatively recent version of ghdl installed, containing the fix for https://github.com/ghdl/ghdl/issues/2474. If the build still gives you problems I can give you the commit ids of all litex repos I use.

A problem the build currently has that it sometimes runs into an error like ERROR: Net 'main_hostmot2_hm2_obus[31]' is multiply driven by cell ports TopHostMot2.ahostmot2.ledreg.n1418_q_LUT4_Z.Z and TopHostMot2.ahostmot2.ledreg.n1418_q_TRELLIS_FF_Q.Q

I'm not sure yet what causes this, but as a quick fix I just change the offending line in build/5a75b/gateware/TopHostMot2.v from assign n1419_o = read ? oreg : 1'bz; to assign n1419_o = 1'bz; and build afterwards by running sh build_litehm2.sh in that directory. This issue needs further investigation.

Please let me know if that already helps or if I can assist you further.