Friday, 2019-12-06

*** tpb has joined #litex00:00
*** nrossi has joined #litex02:40
*** m4ssi has joined #litex08:34
keesjhttps://github.com/gregdavill/litex-hyperram/blob/master/hyperbus.py08:52
tpbTitle: litex-hyperram/hyperbus.py at master · gregdavill/litex-hyperram · GitHub (at github.com)08:52
keesjProvides a standard HyperRAM core that works at 1:1 system clock speeds08:52
*** _whitelogger has quit IRC11:51
*** _whitelogger has joined #litex11:54
*** rohitksingh has quit IRC12:52
*** rohitksingh has joined #litex13:20
*** m4ssi has quit IRC17:07
somlo_florent_: https://github.com/litex-hub/litex-boards/blob/master/litex_boards/partner/targets/trellisboard.py#L157 should probably get the same treatment versa_ecp5 got in commit d91458c (litex-boards)17:58
tpbTitle: litex-boards/trellisboard.py at master · litex-hub/litex-boards · GitHub (at github.com)17:58
_florent_somlo:  indeed, thanks. I'll do that17:59
somlo_florent_: I think that was my mistake originally (sorry about that), so thank you for cleaning up after me :)18:11
_florent_somlo: no problem, that's difficult to think about all cases when adding features18:12
_florent_somlo: i just did a quick fix but will try to improve it18:13
somloI'm still somewhat amazed that I never had to install and use Diamond (so I have a bit of a blind spot when it comes to that)...18:16
somlo_florent_: on an unrelated topic, I'm trying to write a universal "LiteX CSR bus" driver for Linux -- something that knows how to write 8, 16, 32, 64, and 128 bit registers from CPU to hardware preserving the right bit order from MSB to LSB, regardless of cpu endianness, 32 or 64bit alignment, and chunk-size(csr-data-width)18:21
somlofor that, I want to test and double-check my assumptions using the simulator -- is there something there already where I can set up a dummy CSR that simply prints out the value it contains from the perspective of the "hardware" ?18:22
somloso I can actually test if what I'm writing ends up what the hardware thinks it is receiving, and again when I'm reading a register back into the CPU?18:23
somloI'll dig around and figure something out, but if there's a one-liner you can point me at for inspiration, that'd make the process MUCH faster :)18:24
_florent_somlo: sure, you can just use Display with Verilator that is very useful since very similar to a hardware printf18:29
_florent_somlo: for example: https://github.com/enjoy-digital/usb3_pipe/blob/master/sim.py#L18518:29
tpbTitle: usb3_pipe/sim.py at master · enjoy-digital/usb3_pipe · GitHub (at github.com)18:29
somloooh, thanks! (I think you showed this to me once before when I was trying to debug Rocket, back a while ago -- sorry for being thick and not remembering it :)18:30
somloI think I'll just create a bunch of ctrl_scratch like registers of various widths, and tinker with them from the bios prompt with mr and mw :)18:31
_florent_the ctrl scratch register was there for this purpose (be sure for that the software was able to access the CSR correctly), if you think this is not enough we could change/improve it18:37
somloI don't expect anything worth upstreaming into LiteX, just me trying to confirm to myself that I understand how things are scattered/gathered across the register "slices", depending on data-width... I'm usually wrong when I try to guess without testing :)18:40
*** rohitksingh has quit IRC19:59
*** kc8apf has joined #litex20:10
kc8apf_florent_: I see you added a method to add timing constraints for S7PCIEPHY20:10
kc8apfThat resolves the no_clocks issues.  Need to see what my timing report looks like now20:11
_florent_kc8apf: yes i was apply these timing constraints in the others designs but it was missing in the example design20:28
*** nrossi has quit IRC21:02
somloAny suggestions to what'd be the more "mature" Big-Endian CPU option to test with (mor1kx vs. lm32)?21:40
mithrosomlo: ppcbe?22:52
mithrosomlo: Or do you mean in LiteX?22:52
*** rohitksingh has joined #litex23:57

Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!