Thursday, 2020-09-24

*** tpb has joined #litex00:00
*** jaseg has quit IRC02:43
*** jaseg has joined #litex02:45
*** Degi has quit IRC02:59
*** Degi has joined #litex03:01
*** SpaceCoaster has quit IRC05:25
*** SpaceCoaster has joined #litex05:25
*** m4ssi has joined #litex06:50
*** m4ssi has quit IRC09:37
*** m4ssi has joined #litex09:50
*** CarlFK has joined #litex10:08
lkcldoes anyone know of examples where litex peripherals have been done as verilog?13:59
lkcle.g. some opencores stuff - uart, i2c, or other?13:59
*** feldim2425_ has quit IRC14:13
*** m4ssi has quit IRC16:10
*** feldim2425 has joined #litex16:29
_florent_lkcl: you can look here for I2C, PWM, UART, etc.... https://github.com/enjoy-digital/litex/blob/master/litex/tools/litex_gen.py19:26
tpbTitle: litex/litex_gen.py at master · enjoy-digital/litex · GitHub (at github.com)19:26
_florent_ah, but not sure i understood your question correctly19:27
_florent_if that's the other way (integrating verilog code), i can try to find code19:28
_florent_you can find here an example of I2C core integrated with LiteX: https://github.com/betrusted-io/gateware/blob/master/gateware/i2c/core.py19:30
tpbTitle: gateware/core.py at master · betrusted-io/gateware · GitHub (at github.com)19:30
lkcli need to be able to pull in e.g. opencores 16550 uart written in verilog19:45
lkcland present it as a peripheral that can be added to litex19:45
lkcland richard herveille's opencores RGB/TTL19:45
lkcland i *think*.... that bunnie huang code is exactly it.19:47
lkcleyy it's even richard herveille's i2c opencores rtl :)19:48
lkcl_florent_, thank you.19:52
lkcl_florent_: for ASICs, all tristate signals must not be handled by litex, the "_i", "_o", "_oe" signals must be brought out (individually, explicitly) and wired up directly to IO pad cells.20:30
lkcli have easily been able to do an SDRAMPHY replacement class that handles this:20:30
lkclhttps://git.libre-soc.org/?p=soc.git;a=blob;f=src/soc/litex/florent/ls180soc.py;h=9c7547f7078522cedccb5cc38f2beed6e58b7f6b;hb=HEAD#l12120:30
tpbTitle: git.libre-soc.org Git - soc.git/blob - src/soc/litex/florent/ls180soc.py (at git.libre-soc.org)20:30
lkclsorry, line 16820:31
lkclhttps://git.libre-soc.org/?p=soc.git;a=blob;f=src/soc/litex/florent/ls180soc.py;h=9c7547f7078522cedccb5cc38f2beed6e58b7f6b;hb=HEAD#l16820:31
tpbTitle: git.libre-soc.org Git - soc.git/blob - src/soc/litex/florent/ls180soc.py (at git.libre-soc.org)20:31
lkclhowever, GPIOTristate had to be completely replaced because it does not take a "gpio_phy_cls" parameter20:32
lkclSDCard likewise because that does not take a "sdcard_phy_cls" parameter i had to duplicate very large sections of the code20:32
lkcland SDRPad20:33
lkclspi is good (no Tristate)20:34
lkcluart is good (except i had to duplicate the code in add_uart because, again, you can't pass in your own PHY class)20:35
lkclPWM is good20:35
*** haley has joined #litex20:48
*** haley has quit IRC20:50
*** lf has quit IRC23:21
*** lf has joined #litex23:22

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!