_florent_ changed the topic of #litex to: LiteX FPGA SoC builder and Cores / Github : https://github.com/enjoy-digital, https://github.com/litex-hub / Logs: https://libera.irclog.whitequark.org/litex
tpb has quit [Remote host closed the connection]
tpb has joined #litex
slagernate has quit [Ping timeout: 252 seconds]
genpaku has quit [Remote host closed the connection]
genpaku has joined #litex
<tpw_rules> anybody seen quartus complain about invalid PLL settings? seems something is wrong with the calculator
slagernate has joined #litex
TMM_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM_ has joined #litex
Degi has quit [Ping timeout: 246 seconds]
Degi has joined #litex
minute has quit [Ping timeout: 268 seconds]
minute has joined #litex
pbsds has quit [Ping timeout: 252 seconds]
pbsds has joined #litex
pbsds has quit [Ping timeout: 268 seconds]
<tpw_rules> how are the framebuffer colors supposed to be encoded? i've somehow got r and b swapped. but the colorbars look right
<tpw_rules> in both rgb888 and rgb565 modes
<tpw_rules> yeah these are definitely backwards
Guest13 has joined #litex
<slagernate> gatecat: would you happen to have your build script handy? You mentioned picorv32 was working for you
FabM has joined #litex
FabM has quit [Changing host]
FabM has joined #litex
<_florent_> slagernate as suggested by gatecat, can you just test the litex_sim command? If working, this will rule out a RISC-V toolchain issue
<_florent_> slagernate: you just need to install Verilator for this
<tnt> _florent_: ah nice (for ddr4) I might have a look next week. I'll see if I can generate a mig controller for my board.
<slagernate> _florent_: Sorry, I was a little confused (I thought I had to somehow specify my specific CPU configuration when running litex_sim). I've just ran it and it is booting well
Guest13 has quit [Quit: Client closed]
<slagernate> I.e. I am getting the BIOS output expected in https://github.com/enjoy-digital/litex/wiki/Installation
<slagernate> It seems DavidCorrigan is no longer able to build for his board as well (CrosslinkNX Evaluation Board): https://github.com/enjoy-digital/litex/issues/1441#issuecomment-1263126036  ... He was one of the first to get it working on the CrosslinkNX platform.
<slagernate> So it would seem the bios is not compatible with the crosslinknx platform/target anymore. David brings up that bisecting the old bios code would likely be the fastest way to narrow down the bug
<tnt> slagernate: did you try to build the older version ?
giggiu16 has joined #litex
<giggiu16> _florent_: thanks for your response, I have actually followed the guide and also the linked example and it seems to somewhat work. What I'm missing is the part where I can explicitly control clock and signals from submodules of the SoC (example: https://github.com/enjoy-digital/litex/blob/master/test/test_spi.py#L19)
_franck_ has quit [Ping timeout: 252 seconds]
_franck_4 has joined #litex
giggiu16 has quit [Ping timeout: 252 seconds]
<Melkhior> @tpw_rules: if the colors are displayed properly, then they are in the right order ;-)
<Melkhior> Between the way the host write to the memory, the memory is being read in the FIFO, how the FIFO output is decoded, etc., it's not obvious to figure out which bits will become what ; I've had to deal with that in my 'extended' version of the LItex FB: https://github.com/rdolbeau/NuBusFPGA/blob/d0d98f13900e6c19f28e0a76bf8fff20a5e923f4/nubus-to-ztex-gateware/goblin_fb.py#L173
giggiu16 has joined #litex
likewise has joined #litex
giggiu16 has quit [Ping timeout: 252 seconds]
Brinx has quit [Remote host closed the connection]
Brinx has joined #litex
Brinx has quit [Remote host closed the connection]
Brinx has joined #litex
Brinx has quit [Remote host closed the connection]
Brinx has joined #litex
giggiu16 has joined #litex
giggiu16 has quit [Client Quit]
giggiu16 has joined #litex
<tpw_rules> Melkhior: the problem is the colorbar module displays the wrong colors if the framebuffer displays the right colors
<tpw_rules> and if i swap red and blue in my PHY, then the colorbar displays the right colors and the framebuffer displays the wrong colors.
<Melkhior> @tpw_rules then I'd say the colorbar module has an issue...
<Melkhior> I admint I only cared for what Linux displays when using the FB when I originally tried the LItex FB :-)
<tpw_rules> but the code in there is very straightforward
<Melkhior> it is my firm opinion than endianess is _never_ straightforward :-)
<tpw_rules> yeah but there's no endianness in the colorbar code. it's just like source.r.eq(0xff) # red
<Melkhior> ouch
<Melkhior> I don't know, seems weird
<Melkhior> if when you write 0xff to red you get blue, then I guess maybe it's backward later on ? and the FB code is backward to accomdate that other backward-ness ?
<Melkhior> My version only worked through trial-and-error, not "this is how it should be" ...
<tpw_rules> https://github.com/enjoy-digital/litex/blob/a7cc1af41640f505bacafceb87019dbbe7bdee3a/litex/soc/cores/video.py#L850 this is wrong too. blue goes in channel 0 and red goes in channel 2
<tpw_rules> did you use litex's hdmi phy?
<Melkhior> this would explain that ... if both HDMI and FB are reversed, it all works out in the end
<Melkhior> yes I use the LItex HDMI PHY
<tpw_rules> unless you try to use the colorbars to test your color!
<tpw_rules> then yeah your framebuffer reads are probably backwards too
<Melkhior> also the VGA PHY, vaguely remember a discrepancy, but I'm not sure
<Melkhior> X11 can accommodate both r8g8b8 and b8g8r8 and I changed it at some point while tracking down issues in my Xrender code
<tpw_rules> so now it's triple backwards for you :)
<tpw_rules> well i will try to submit a PR this weekend to get everything straightened out but i don't have any hdmi boards to test with
<Melkhior> yes, at least... the host are big-endians (sparc or mac68k), but NuBus is LE (SBus is BE), then Wishbone ...
<Melkhior> it's even more of a mess than a straightforward SoC
<Melkhior> mmmmm
<Melkhior> someone agrees with you!
<tpw_rules> funny that that doesn't update the framebuffer code
<Melkhior> might have tested only with the colorbar :-)
<tpw_rules> also i guess github's search index didn't catch that yet
giggiu16 has quit [Quit: Client closed]
<tpw_rules> thanks for finding that. saves me a bit of work
<Melkhior> no problem
<Melkhior> if you want extra features, my variant of the FB is ugly but you get a CLUT for indexed modes, switchable depth (for MacOS/68k), optional hardware cursor (for X11 in NetBSD/sparc), and recently I added windowboxed resolution (so you can use a resolution lower than the output resolution, useful in MacOS for old software which don't like high resolution)
<Melkhior> (the acceleration stuff is not technically part of the FB)
<trabucayre> this fix is to correct relation channel id <-> color according to DVI specs
<trabucayre> tpw_rules: https://glenwing.github.io/docs/DVI-1.0.pdf fig. 3.2 p.26
<tpw_rules> trabucayre: yeah, your fix is correct
<trabucayre> and no I've tested with the video terminal : https://twitter.com/GwenhaelG/status/1565053922812755969/photo/1
<trabucayre> :)
<tpw_rules> no what?
<trabucayre> Melkhior> might have tested only with the colorbar :-)
<tpw_rules> i mean my problem is with the framebuffer. the video terminal has that kind of ambiguous green. i think it would be hard to tell the red and blue were swapped
<trabucayre> maybe another swap before video phy ? ( -1 x -1 = 1)
<tpw_rules> did you test with the framebuffer? there is another swap in there that needs to be done
<tpw_rules> or just the terminal?
<trabucayre> not checked if framebuffer is used
<trabucayre> but i think so
FabM has quit [Quit: Leaving]
Brinx has quit [Remote host closed the connection]
Brinx has joined #litex
Brinx has quit [Ping timeout: 246 seconds]
<tpw_rules> anybody used quartus PLLs with litex? it seems to be generating slightly bad frequencies that make quartus barf
TMM_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM_ has joined #litex
<minute> i am hitting a regression (checked against backups) in vexriscv that makes ohci unusable and introduces some other instability (oopses and segfaults). i want to return to an earlier state, but SpinalHDL and VexRiscv git submodule versions are not pinned in pythondata-cpu-vexriscv-smp, is that correct?
<tpw_rules> i mean being submodules they are inherently pinned by the version of the pythondata-cpu-vexriscv-smp itself, right?
<zyp> right
<zyp> so you should be able to do a bisect on the pythondata repo
<minute> ah yeah
<minute> btw, to try naxriscv i would basically just replace vexriscv occurences in make.py (of linux-on-litex-vexriscv), or is it more complicated?
<minute> with pythondata-cpu-vexriscv_smp @ 60c32b141906ea4b8ba6ec19c66a321a1477e55c everything is fine, no random oops in a bridge driver and no usb errors
<minute> @ 4306ae2eb5464bc37d14eff9a3c051d7b0c17d0d does not build
<minute> [error] /home/mntmn/code/litex/pythondata-cpu-vexriscv-smp/pythondata_cpu_vexriscv_smp/verilog/ext/SpinalHDL/lib/src/main/scala/spinal/lib/bus/bmb/BmbInterconnectGenerator.scala:173:61: reference to Lock is ambiguous;
<minute> etc
<slagernate> tnt: will try sometime tonight
likewise has quit [Quit: Client closed]
zjason` has joined #litex
zjason has quit [Ping timeout: 268 seconds]
<slagernate> tnt: (in ~5 hours)
<slagernate> minute:sick
ewen has joined #litex
nelgau_ has quit [Remote host closed the connection]
nelgau has joined #litex
ewen has quit [Ping timeout: 244 seconds]
slagernate has quit [Ping timeout: 252 seconds]